diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-07-17 22:08:34 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-07-17 22:08:34 +0100 |
| commit | 2a7318eca205f40c35c51d3bf7c89dc9f2b635f8 (patch) | |
| tree | 66538a4511781bc5c2b11df804634a525c4e83b5 /app/templates/admin | |
| parent | b067fd2e773409790cb86cff1f799ad1563ea480 (diff) | |
| download | cheatdb-2a7318eca205f40c35c51d3bf7c89dc9f2b635f8.tar.xz | |
Add descriptions to tags, and show in multiselect
Diffstat (limited to 'app/templates/admin')
| -rw-r--r-- | app/templates/admin/tags/edit.html | 1 | ||||
| -rw-r--r-- | app/templates/admin/tags/list.html | 13 |
2 files changed, 11 insertions, 3 deletions
diff --git a/app/templates/admin/tags/edit.html b/app/templates/admin/tags/edit.html index f25312e..bb8d462 100644 --- a/app/templates/admin/tags/edit.html +++ b/app/templates/admin/tags/edit.html @@ -17,6 +17,7 @@ {{ form.hidden_tag() }} {{ render_field(form.title) }} + {{ render_field(form.description) }} {% if tag %} {{ render_field(form.name) }} {% endif %} diff --git a/app/templates/admin/tags/list.html b/app/templates/admin/tags/list.html index 8db66ca..14baf02 100644 --- a/app/templates/admin/tags/list.html +++ b/app/templates/admin/tags/list.html @@ -14,13 +14,16 @@ </p> <div class="list-group"> - <div class="list-group-item"> <div class="row text-muted"> - <div class="col-sm"> + <div class="col-sm-2"> {{ _("Name") }} </div> + <div class="col-sm"> + {{ _("Description") }} + </div> + <span class="col-sm-1 text-center"> {{ _("Views") }} </span> @@ -35,10 +38,14 @@ <a class="list-group-item list-group-item-action" href="{{ url_for('admin.create_edit_tag', name=t.name) }}"> <div class="row"> - <div class="col-sm"> + <div class="col-sm-2"> {{ t.title }} </div> + <div class="col-sm"> + {{ t.description or "" }} + </div> + <div class="col-sm-1 text-center"> {{ t.views }} </div> |
