Commit 82dc1a4f authored by Benjamin Hättasch's avatar Benjamin Hättasch

Hide edit links when event is not active

parent 786cc913
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-10-30 17:28+0000\n"
"POT-Creation-Date: 2019-11-12 23:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -40,113 +40,113 @@ msgstr ""
#: templates/AKSubmission/ak_detail.html:8
#: templates/AKSubmission/ak_edit.html:8 templates/AKSubmission/ak_list.html:8
#: templates/AKSubmission/ak_list.html:23
#: templates/AKSubmission/ak_list.html:22
#: templates/AKSubmission/akowner_create_update.html:7
#: templates/AKSubmission/akslot_add_update.html:7
#: templates/AKSubmission/akslot_delete.html:7
#: templates/AKSubmission/submission_overview.html:6
#: templates/AKSubmission/submission_overview.html:24
#: templates/AKSubmission/submission_overview.html:23
#: templates/AKSubmission/submit_new.html:8
#: templates/AKSubmission/submit_new_wish.html:5
msgid "AKs"
msgstr "AKs"
#: templates/AKSubmission/ak_detail.html:8
#: templates/AKSubmission/akslot_delete.html:30
#: templates/AKSubmission/akslot_delete.html:29
#, fuzzy
#| msgid "AKs"
msgid "AK"
msgstr "AKs"
#: templates/AKSubmission/ak_detail.html:13
#: templates/AKSubmission/ak_edit.html:14
#: templates/AKSubmission/ak_list.html:22
#: templates/AKSubmission/ak_list.html:27
#: templates/AKSubmission/akowner_create_update.html:13
#: templates/AKSubmission/akslot_add_update.html:13
#: templates/AKSubmission/akslot_delete.html:13
#: templates/AKSubmission/ak_detail.html:12
#: templates/AKSubmission/ak_edit.html:13
#: templates/AKSubmission/ak_list.html:21
#: templates/AKSubmission/ak_list.html:26
#: templates/AKSubmission/akowner_create_update.html:12
#: templates/AKSubmission/akslot_add_update.html:12
#: templates/AKSubmission/akslot_delete.html:12
#: templates/AKSubmission/submission_overview.html:6
#: templates/AKSubmission/submission_overview.html:20
#: templates/AKSubmission/submit_new.html:19
#: templates/AKSubmission/submit_new_wish.html:10
#: templates/AKSubmission/submission_overview.html:19
#: templates/AKSubmission/submit_new.html:18
#: templates/AKSubmission/submit_new_wish.html:9
msgid "AK Submission"
msgstr "AK-Eintragung"
#: templates/AKSubmission/ak_detail.html:27
#: templates/AKSubmission/ak_detail.html:28
#: templates/AKSubmission/ak_list_table.html:30
msgid "AK Wish"
msgstr "AK-Wunsch"
#: templates/AKSubmission/ak_detail.html:30
#: templates/AKSubmission/ak_detail.html:31
#: templates/AKSubmission/ak_list_table.html:10
msgid "Who?"
msgstr "Wer?"
#: templates/AKSubmission/ak_detail.html:32
#: templates/AKSubmission/ak_detail.html:33
#: templates/AKSubmission/ak_list_table.html:11
msgid "Category"
msgstr "Kategorie"
#: templates/AKSubmission/ak_detail.html:38
#: templates/AKSubmission/ak_detail.html:39
msgid "Present this AK"
msgstr "Diesen AK vorstellen"
#: templates/AKSubmission/ak_detail.html:42
#: templates/AKSubmission/ak_list.html:35
#: templates/AKSubmission/ak_detail.html:43
#: templates/AKSubmission/ak_list.html:34
#: templates/AKSubmission/ak_list_table.html:12
msgid "Tags"
msgstr "Tags"
#: templates/AKSubmission/ak_detail.html:48
#: templates/AKSubmission/ak_detail.html:49
msgid "Reso?"
msgstr "Reso?"
#: templates/AKSubmission/ak_detail.html:54
#: templates/AKSubmission/ak_detail.html:55
msgid "Requirements"
msgstr ""
#: templates/AKSubmission/ak_detail.html:60
#: templates/AKSubmission/ak_detail.html:61
msgid "Conflicting AKs"
msgstr ""
#: templates/AKSubmission/ak_detail.html:66
#: templates/AKSubmission/ak_detail.html:67
msgid "Prerequisite AKs"
msgstr ""
#: templates/AKSubmission/ak_detail.html:80
#: templates/AKSubmission/ak_detail.html:81
msgid "When?"
msgstr "Wann?"
#: templates/AKSubmission/ak_detail.html:81
#: templates/AKSubmission/akslot_delete.html:31
#: templates/AKSubmission/ak_detail.html:82
#: templates/AKSubmission/akslot_delete.html:30
msgid "Duration"
msgstr "Dauer"
#: templates/AKSubmission/ak_detail.html:82
#: templates/AKSubmission/ak_detail.html:83
msgid "Room"
msgstr "Raum"
#: templates/AKSubmission/ak_detail.html:104
#: templates/AKSubmission/ak_detail.html:106
msgid "Add another slot"
msgstr "Einen neuen AK-Slot hinzufügen"
#: templates/AKSubmission/ak_detail.html:108
#: templates/AKSubmission/ak_detail.html:111
msgid "Notes"
msgstr "Notizen"
#: templates/AKSubmission/ak_detail.html:109
#: templates/AKSubmission/ak_detail.html:112
msgid "Track"
msgstr "Track"
#: templates/AKSubmission/ak_edit.html:8 templates/AKSubmission/ak_edit.html:21
#: templates/AKSubmission/ak_edit.html:8 templates/AKSubmission/ak_edit.html:20
msgid "Edit AK"
msgstr "AK bearbeiten"
#: templates/AKSubmission/ak_edit.html:16
#: templates/AKSubmission/ak_edit.html:15
msgid "Edit"
msgstr "Bearbeiten"
#: templates/AKSubmission/ak_list.html:29
#: templates/AKSubmission/ak_list.html:28
msgid "Categories"
msgstr "Kategorie"
......@@ -163,53 +163,53 @@ msgid "Reso"
msgstr "Reso"
#: templates/AKSubmission/akowner_create_update.html:7
#: templates/AKSubmission/akowner_create_update.html:14
#: templates/AKSubmission/akowner_create_update.html:19
#: templates/AKSubmission/akowner_create_update.html:13
#: templates/AKSubmission/akowner_create_update.html:18
msgid "AK Owner"
msgstr "AK-Leitung"
#: templates/AKSubmission/akowner_create_update.html:25
#: templates/AKSubmission/akslot_add_update.html:26
#: templates/AKSubmission/submit_new.html:34
#: templates/AKSubmission/akowner_create_update.html:24
#: templates/AKSubmission/akslot_add_update.html:25
#: templates/AKSubmission/submit_new.html:33
msgid "Reset"
msgstr "Zurücksetzen"
#: templates/AKSubmission/akowner_create_update.html:29
#: templates/AKSubmission/akslot_add_update.html:30
#: templates/AKSubmission/akslot_delete.html:36
#: templates/AKSubmission/submit_new.html:38
#: templates/AKSubmission/akowner_create_update.html:28
#: templates/AKSubmission/akslot_add_update.html:29
#: templates/AKSubmission/akslot_delete.html:35
#: templates/AKSubmission/submit_new.html:37
msgid "Cancel"
msgstr "Abbrechen"
#: templates/AKSubmission/akowner_create_update.html:32
#: templates/AKSubmission/akslot_add_update.html:33
#: templates/AKSubmission/akowner_create_update.html:31
#: templates/AKSubmission/akslot_add_update.html:32
msgid "Continue"
msgstr "Weiter"
#: templates/AKSubmission/akslot_add_update.html:7
#: templates/AKSubmission/akslot_add_update.html:15
#: templates/AKSubmission/akslot_add_update.html:20
#: templates/AKSubmission/akslot_add_update.html:14
#: templates/AKSubmission/akslot_add_update.html:19
#: templates/AKSubmission/akslot_delete.html:7
#: templates/AKSubmission/akslot_delete.html:15
#: templates/AKSubmission/akslot_delete.html:20
#: templates/AKSubmission/akslot_delete.html:14
#: templates/AKSubmission/akslot_delete.html:19
#, fuzzy
#| msgid "Duration(s)"
msgid "AK Duration(s)"
msgstr "Dauer(n)"
#: templates/AKSubmission/akslot_delete.html:25
#: templates/AKSubmission/akslot_delete.html:24
msgid "Do you really want to delete this AK Slot?"
msgstr ""
#: templates/AKSubmission/akslot_delete.html:39
#: templates/AKSubmission/akslot_delete.html:38
msgid "Confirm"
msgstr "Bestätigen"
#: templates/AKSubmission/base_submission.html:8
#: templates/AKSubmission/base_submission.html:12
msgid "Write to organizers of this event for questions and comments"
msgstr "Fragen oder Kommentare? Schreib den Orgas dieses Events eine Mail"
#: templates/AKSubmission/submission_overview.html:28
#: templates/AKSubmission/submission_overview.html:27
msgid ""
"On this page you can see a list of current AKs, change them and add new ones."
msgstr ""
......@@ -218,8 +218,8 @@ msgstr ""
#: templates/AKSubmission/submission_overview.html:34
#: templates/AKSubmission/submit_new_wish.html:5
#: templates/AKSubmission/submit_new_wish.html:11
#: templates/AKSubmission/submit_new_wish.html:15
#: templates/AKSubmission/submit_new_wish.html:10
#: templates/AKSubmission/submit_new_wish.html:14
msgid "New AK Wish"
msgstr "Neuer AK-Wunsch"
......@@ -233,8 +233,8 @@ msgstr "Ich leite bisher keine AKs"
#: templates/AKSubmission/submission_overview.html:49
#: templates/AKSubmission/submit_new.html:8
#: templates/AKSubmission/submit_new.html:21
#: templates/AKSubmission/submit_new.html:28
#: templates/AKSubmission/submit_new.html:20
#: templates/AKSubmission/submit_new.html:27
msgid "New AK"
msgstr "Neuer AK"
......@@ -243,10 +243,14 @@ msgid "Edit Person Info"
msgstr "Personen-Info bearbeiten"
#: templates/AKSubmission/submission_overview.html:62
msgid "This event is not active. You cannot add or change AKs"
msgstr "Dieses Event is nicht aktiv. Es können keine AKs hinzugefügt oder bearbeitet werden"
#: templates/AKSubmission/submission_overview.html:67
msgid "Current AKs"
msgstr "Aktuelle AKs"
#: templates/AKSubmission/submit_new.html:41
#: templates/AKSubmission/submit_new.html:40
msgid "Submit"
msgstr "Eintragen"
......
......@@ -20,7 +20,9 @@
{% if ak.link != "" %}
<a href="{{ ak.link }}" class="btn btn-info">{% fontawesome_icon 'external-link-alt' %}</a>
{% endif %}
<a href="{% url 'submit:ak_edit' event_slug=ak.event.slug pk=ak.pk %}" class="btn btn-success">{% fontawesome_icon 'pencil-alt' %}</a>
{% if ak.event.active %}
<a href="{% url 'submit:ak_edit' event_slug=ak.event.slug pk=ak.pk %}" class="btn btn-success">{% fontawesome_icon 'pencil-alt' %}</a>
{% endif %}
</div>
<h2>{% if ak.wish %}{% trans "AK Wish" %}: {% endif %}{{ ak.name }}</h2>
......@@ -99,9 +101,11 @@
</tbody>
</table>
<div class="">
<a href="{% url 'submit:akslot_add' event_slug=ak.event.slug pk=ak.pk %}" class="btn btn-success">{% fontawesome_icon 'plus' %} {% trans "Add another slot" %}</a>
</div>
{% if ak.event.active %}
<div class="">
<a href="{% url 'submit:akslot_add' event_slug=ak.event.slug pk=ak.pk %}" class="btn btn-success">{% fontawesome_icon 'plus' %} {% trans "Add another slot" %}</a>
</div>
{% endif %}
{% if user.is_authenticated %}
<p style="margin-top: 20px;"><b>{% trans "Notes" %}:</b> {{ ak.notes }}</p>
......
......@@ -39,7 +39,9 @@
{% if ak.link %}
<a href="{{ ak.link }}" class="btn btn-info">{% fontawesome_icon 'external-link-alt' %}</a>
{% endif %}
<a href="{% url 'submit:ak_edit' event_slug=event.slug pk=ak.pk %}" class="btn btn-success">{% fontawesome_icon 'pencil-alt' %}</a>
{% if event.active %}
<a href="{% url 'submit:ak_edit' event_slug=event.slug pk=ak.pk %}" class="btn btn-success">{% fontawesome_icon 'pencil-alt' %}</a>
{% endif %}
</td>
</tr>
<tr>
......
......@@ -26,36 +26,42 @@
{% blocktrans %}On this page you can see a list of current AKs, change them and add new ones.{% endblocktrans %}
<div class="jumbotron" style="margin-top:20px;">
<form method="POST" action="#" class="form-row">
{% csrf_token %}
<a href="{% url 'submit:submit_ak_wish' event_slug=event.slug %}" class="btn btn-info">
{% trans "New AK Wish" %}
</a>
<span style="font-size: 1.5em">
&nbsp;&nbsp; | &nbsp;
<label for="selectOwnerId" class="align-middle d-inline">{% trans "Who" %}:</label>
</span>&nbsp;&nbsp;
<select name="owner_id" id="selectOwnerId" class="">
<option value="-1">{% trans "I do not own AKs yet" %}</option>
{% for owner in existingOwners %}
<option value="{{ owner.pk }}">{{ owner }}</option>
{% endfor %}
</select> &nbsp;&nbsp;
<input
type="submit"
class="btn btn-primary"
value="{% trans "New AK" %}"
formaction="{% url 'submit:akowner_select' event_slug=event.slug %}"
/>&nbsp;&nbsp;
<input
type="submit"
class="btn btn-success"
value="{% trans 'Edit Person Info' %}"
formaction="{% url 'submit:akowner_edit_dispatch' event_slug=event.slug %}"
/>
</form>
</div>
{% if event.active %}
<div class="jumbotron" style="margin-top:20px;">
<form method="POST" action="#" class="form-row">
{% csrf_token %}
<a href="{% url 'submit:submit_ak_wish' event_slug=event.slug %}" class="btn btn-info">
{% trans "New AK Wish" %}
</a>
<span style="font-size: 1.5em">
&nbsp;&nbsp; | &nbsp;
<label for="selectOwnerId" class="align-middle d-inline">{% trans "Who" %}:</label>
</span>&nbsp;&nbsp;
<select name="owner_id" id="selectOwnerId" class="">
<option value="-1">{% trans "I do not own AKs yet" %}</option>
{% for owner in existingOwners %}
<option value="{{ owner.pk }}">{{ owner }}</option>
{% endfor %}
</select> &nbsp;&nbsp;
<input
type="submit"
class="btn btn-primary"
value="{% trans "New AK" %}"
formaction="{% url 'submit:akowner_select' event_slug=event.slug %}"
/>&nbsp;&nbsp;
<input
type="submit"
class="btn btn-success"
value="{% trans 'Edit Person Info' %}"
formaction="{% url 'submit:akowner_edit_dispatch' event_slug=event.slug %}"
/>
</form>
</div>
{% else %}
<div class="alert alert-warning" style="margin-top:20px;margin-bottom: 20px;">
{% trans "This event is not active. You cannot add or change AKs" %}
</div>
{% endif %}
<h2>{% trans "Current AKs" %}</h2>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment