Publish workflow is now fully functional.
This commit is contained in:
@@ -6,6 +6,6 @@ Die Redaktion wurden informiert, um deine Veranstaltung zu veröffentlichen.
|
||||
Link zur Veranstaltung:
|
||||
{{ base_url }}{{ event.get_absolute_url }}
|
||||
|
||||
Voraussichtliche Veröffentlichung: {% if planned_publish_date %}{{ planned_publish_date|date:'l, d. F Y' }}{% else %}In wenigen Tagen{% endif %}
|
||||
Voraussichtliche Veröffentlichung: {% if planned_publication_date %}{{ planned_publication_date|date:'l, d. F Y' }}{% else %}In wenigen Tagen{% endif %}
|
||||
-----
|
||||
{{ event.render_as_text }}-----
|
||||
|
||||
@@ -7,7 +7,7 @@ Der folgende Link führt zur Veranstaltung:
|
||||
Über den folgenden Link kannst du die Veranstaltung unmittelbar freigeben:
|
||||
{{ base_url }}{{ accept_url }}
|
||||
|
||||
Veröffentlichung: {% if planned_publish_date %}{{ planned_publish_date|date:'l, d. F Y' }}{% else %}sofort{% endif %}
|
||||
Veröffentlichung: {% if planned_publication_date %}{{ planned_publication_date|date:'l, d. F Y' }}{% else %}sofort{% endif %}
|
||||
{% if internal_note %}Bearbeitungshinweis:
|
||||
{{ internal_note }}
|
||||
{% endif %}-----
|
||||
|
||||
@@ -6,9 +6,9 @@ Die Veranstaltung wurde {% if event.accepted_by %}von {{ event.accepted_by.get_f
|
||||
Der folgende Link führt zur Veranstaltung:
|
||||
{{ base_url }}{{ event.get_absolute_url }}
|
||||
Über den folgenden Link kannst du die Veröffentlichung unmittelbar bestätigen:
|
||||
{{ base_url }}{{ set_published_url }}
|
||||
{{ base_url }}{{ confirm_publication_url }}
|
||||
|
||||
Veröffentlichung: {% if planned_publish_date %}{{ planned_publish_date|date:'l, d. F Y' }}{% else %}sofort{% endif %}
|
||||
Veröffentlichung: {% if planned_publication_date %}{{ planned_publication_date|date:'l, d. F Y' }}{% else %}sofort{% endif %}
|
||||
{% if internal_note %}Bearbeitungshinweis:
|
||||
{{ internal_note }}
|
||||
{% endif %}----- Plain Text -----
|
||||
|
||||
@@ -6,7 +6,7 @@ Die entsprechenden Referenten wurden informiert, um deine Veranstaltung frei zu
|
||||
Link zur Veranstaltung:
|
||||
{{ base_url }}{{ event.get_absolute_url }}
|
||||
|
||||
Voraussichtliche Veröffentlichung: {% if planned_publish_date %}{{ planned_publish_date|date:'l, d. F Y' }}{% else %}In wenigen Tagen{% endif %}
|
||||
Voraussichtliche Veröffentlichung: {% if planned_publication_date %}{{ planned_publication_date|date:'l, d. F Y' }}{% else %}In wenigen Tagen{% endif %}
|
||||
-----
|
||||
{{ event.render_as_text }}-----
|
||||
{% if internal_note %}Bearbeitungshinweis:
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
<span class="label label-info">{% trans 'Ausgelaufen' %}</span>
|
||||
{% elif status == 'published' %}
|
||||
<span class="label label-success">{% trans 'Veröffentlicht' %}</span>
|
||||
{% elif status == 'publishing' %}
|
||||
<span class="label label-warning">{% trans 'Veröffentlichung' %}: {{ event.planned_publication_date|date:'d.m.Y' }}</span>
|
||||
{% elif status == 'accepted' %}
|
||||
<span class="label label-warning">{% trans 'Freigegeben' %}</span>
|
||||
{% elif status == 'submitted' %}
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
<div class="col-sm-4">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<label>{{ form.planned_publish_date.label }}</label>
|
||||
{% if form.planned_publish_date.value %}
|
||||
<p>{{ form.planned_publish_date.value|date:'l, d. F Y' }} ({{ form.planned_publish_issue.value }})</p>
|
||||
<label>{{ form.planned_publication_date.label }}</label>
|
||||
{% if form.planned_publication_date.value %}
|
||||
<p>{{ form.planned_publication_date.value|date:'l, d. F Y' }} ({{ form.planned_publication_issue.value }})</p>
|
||||
{% else %}
|
||||
<p>{% trans 'In wenigen Tagen' %}</p>
|
||||
{% endif %}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="modal-setpublished-dialog" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div id="modal-confirmpublication-dialog" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
@@ -43,7 +43,7 @@
|
||||
</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-success" href="{% url 'dav_events:event_setpublished' event.pk %}">
|
||||
<a class="btn btn-success" href="{% url 'dav_events:event_confirmpublication' event.pk %}">
|
||||
{% bootstrap_icon 'ok' %} 
|
||||
{% trans 'Ja' %}
|
||||
</a>
|
||||
@@ -81,8 +81,8 @@
|
||||
{% endif %}
|
||||
{% if has_permission_publish %}
|
||||
<a class="btn {% if event.get_status == 'accepted' %}btn-success{% else %}btn-default disabled{% endif %}"
|
||||
data-toggle="modal" data-target="#modal-setpublished-dialog">
|
||||
{% if event.published %}
|
||||
data-toggle="modal" data-target="#modal-confirmpublication-dialog">
|
||||
{% if event.publication_confirmed %}
|
||||
{% bootstrap_icon 'check' %} 
|
||||
{% else %}
|
||||
{% bootstrap_icon 'unchecked' %} 
|
||||
@@ -144,7 +144,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
{% if event.published %}
|
||||
{% if event.publication_confirmed %}
|
||||
<span class="text-success">{% bootstrap_icon 'check' %}</span>
|
||||
{% else %}
|
||||
{% bootstrap_icon 'unchecked' %}
|
||||
@@ -152,9 +152,9 @@
|
||||
 <strong>{% trans 'Veröffentlicht' %}:</strong>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
{% if event.published %}
|
||||
{{ event.published_at|date:'l, d. F Y, H:i' }} {% trans 'Uhr' %}<br />
|
||||
{% trans 'von' %} {{ event.published_by.get_full_name }}
|
||||
{% if event.publication_confirmed %}
|
||||
{{ event.publication_confirmed_at|date:'l, d. F Y, H:i' }} {% trans 'Uhr' %}<br />
|
||||
{% trans 'von' %} {{ event.publication_confirmed_by.get_full_name }}
|
||||
{% else %}
|
||||
<br /><br />
|
||||
{% endif %}
|
||||
@@ -163,8 +163,8 @@
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<strong>{% trans 'Veröffentlichen' %}</strong><br />
|
||||
{% if event.planned_publish_date %}
|
||||
{{ event.planned_publish_date|date:'l, d. F Y' }}
|
||||
{% if event.planned_publication_date %}
|
||||
{{ event.planned_publication_date|date:'l, d. F Y' }}
|
||||
{% else %}
|
||||
{% trans 'Unverzüglich' %}
|
||||
{% endif %}
|
||||
|
||||
@@ -65,6 +65,8 @@
|
||||
<span class="label label-info">{% trans 'Ausgelaufen' %}</span>
|
||||
{% elif event.get_status == 'published' %}
|
||||
<span class="label label-success">{% trans 'Veröffentlicht' %}</span>
|
||||
{% elif event.get_status == 'publishing' %}
|
||||
<span class="label label-warning">{% trans 'Veröffentlichung' %}: {{ event.planned_publication_date|date:'d.m.Y' }}</span>
|
||||
{% elif event.get_status == 'accepted' %}
|
||||
<span class="label label-warning">{% trans 'Freigegeben' %}</span>
|
||||
{% elif event.get_status == 'submitted' %}
|
||||
|
||||
@@ -26,10 +26,10 @@
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
{% trans 'Diese Veranstaltung ist bereits ausgelaufen.' %}
|
||||
</div>
|
||||
{% elif event.get_status == 'published' %}
|
||||
{% elif event.get_status == 'published' or event.get_status == 'publishing' %}
|
||||
<div class="alert alert-danger alert-dismissible" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<strong>{% trans 'Achtung!' %}</strong> {% trans 'Diese Veranstaltung wurde bereits veröffentlicht.' %}
|
||||
<strong>{% trans 'Achtung!' %}</strong> {% trans 'Diese Veranstaltung wird/wurde bereits veröffentlicht.' %}
|
||||
{% trans 'Änderungen müssen mit allen Beteiligten abgesprochen werden.' %}
|
||||
</div>
|
||||
{% elif event.get_status == 'accepted' %}
|
||||
|
||||
Reference in New Issue
Block a user