|
|
|
@ -73,20 +73,18 @@ |
|
|
|
{% with event=exposition user=user %} |
|
|
|
{% with event=exposition user=user %} |
|
|
|
{% include 'client/includes/visit_button.html' %} |
|
|
|
{% include 'client/includes/visit_button.html' %} |
|
|
|
{% endwith %} |
|
|
|
{% endwith %} |
|
|
|
|
|
|
|
{% include 'client/includes/calendar_button.html' with obj=object %} |
|
|
|
{% with event=exposition user=user %} |
|
|
|
|
|
|
|
{% include 'client/includes/calendar_button.html' %} |
|
|
|
|
|
|
|
{% endwith %} |
|
|
|
|
|
|
|
<div class="{% if request.user.is_authenticated%}note-wrap{% else %}note-wrap-disabled{% endif %}"> |
|
|
|
<div class="{% if request.user.is_authenticated%}note-wrap{% else %}note-wrap-disabled{% endif %}"> |
|
|
|
|
|
|
|
{% with note=object|note_by_user:request.user %} |
|
|
|
|
|
|
|
<a class="button green icon-note {% if note %}active{% endif %} note-button" href="/expo/add-note/{{ obj.url }}/">{% trans 'заметка' %}</a> |
|
|
|
<a class="button green icon-note {% if note %}active{% endif %} note-button" href="/expo/add-note/{{ object.url }}/">{% trans 'заметка' %}</a> |
|
|
|
|
|
|
|
<div class="note-overlay"> |
|
|
|
<div class="note-overlay"> |
|
|
|
<form action=""> |
|
|
|
<form action=""> |
|
|
|
<textarea name="note_text" class="note-text"> {{ note }}</textarea> |
|
|
|
<textarea name="note_text" class="note-text"> {{ note }}</textarea> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
{% endwith %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{% if request.user.is_admin %} |
|
|
|
{% if request.user.is_admin %} |
|
|
|
<a class="button green " href="/admin/exposition/{{ object.url }}/">{% trans 'изменить' %}</a> |
|
|
|
<a class="button green " href="/admin/exposition/{{ object.url }}/">{% trans 'изменить' %}</a> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|