refactor(member-events): group editor actions in dedicated wrapper
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
{% if isEditor %}
|
{% if isEditor %}
|
||||||
|
<div class="member-events-actions">
|
||||||
<form method="post" style="display:inline;" aria-label="Sichtbarkeit für {{ item.title }} ändern">
|
<form method="post" style="display:inline;" aria-label="Sichtbarkeit für {{ item.title }} ändern">
|
||||||
<input type="hidden" name="REQUEST_TOKEN" value="{{ requestToken }}">
|
<input type="hidden" name="REQUEST_TOKEN" value="{{ requestToken }}">
|
||||||
<input type="hidden" name="action" value="toggle_published">
|
<input type="hidden" name="action" value="toggle_published">
|
||||||
@@ -40,6 +41,7 @@
|
|||||||
<input type="hidden" name="event_id" value="{{ item.id }}">
|
<input type="hidden" name="event_id" value="{{ item.id }}">
|
||||||
<button type="submit" aria-label="{{ item.title }} löschen">Löschen</button>
|
<button type="submit" aria-label="{{ item.title }} löschen">Löschen</button>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@@ -69,6 +71,7 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
{% if isEditor %}
|
{% if isEditor %}
|
||||||
|
<div class="member-events-actions">
|
||||||
<form method="post" style="display:inline;" aria-label="Sichtbarkeit für {{ item.title }} ändern">
|
<form method="post" style="display:inline;" aria-label="Sichtbarkeit für {{ item.title }} ändern">
|
||||||
<input type="hidden" name="REQUEST_TOKEN" value="{{ requestToken }}">
|
<input type="hidden" name="REQUEST_TOKEN" value="{{ requestToken }}">
|
||||||
<input type="hidden" name="action" value="toggle_published">
|
<input type="hidden" name="action" value="toggle_published">
|
||||||
@@ -93,6 +96,7 @@
|
|||||||
<input type="hidden" name="event_id" value="{{ item.id }}">
|
<input type="hidden" name="event_id" value="{{ item.id }}">
|
||||||
<button type="submit" aria-label="{{ item.title }} löschen">Löschen</button>
|
<button type="submit" aria-label="{{ item.title }} löschen">Löschen</button>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user