Skip to content
Snippets Groups Projects
Commit 99b62732 authored by cyroxx's avatar cyroxx
Browse files

add edit link for tags

parent 6af5ea82
No related branches found
No related tags found
No related merge requests found
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
<hr class="hub-spacer"> <hr class="hub-spacer">
{{ tagboxMacro.tagbox(tags) }} {{ tagboxMacro.tagbox(tags, edit_url=url('backoffice:assembly-edit', pk=assembly.id)+'#tags') }}
<hr class="hub-spacer"> <hr class="hub-spacer">
......
{% macro tagbox(tags) -%} {% macro tagbox(tags, edit_url) -%}
<div> <div id="tags">
<h2 class="bg-secondary text-center text-dark m-0 px-3 py-1">{{_("Tags")}}</h2> <div class="bg-secondary text-dark px-3 py-1 d-flex gap-2 align-items-center">
<h2 class="text-center m-0 me-auto">{{_("Tags")}}</h2>
{% if edit_url %}
<a title="Edit tags" href="{{ edit_url }}" class="btn btn-sm btn-primary"><i class="bi bi-pencil-square"></i></a>
{% endif %}
</div>
{% if tags %} {% if tags %}
<ul class="px-3 flex-grow-1 pt-3 pb-2 list-unstyled mb-0 d-flex flex-row flex-wrap align-items-center"> <ul class="px-3 flex-grow-1 pt-3 pb-2 list-unstyled mb-0 d-flex flex-row flex-wrap align-items-center">
{%- for tag in tags %} {%- for tag in tags %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment