Fix adding / removing photo tags + tagrm delete via GET + Item::update / add Term::deleteAllTags

This commit is contained in:
Jonny Tischbein 2018-10-23 11:40:20 +02:00
parent dbfe5c9d2a
commit fd2e06781d
5 changed files with 81 additions and 28 deletions

View file

@ -51,12 +51,19 @@
{{* Tags and mentions *}}
{{if $tags}}
<div id="photo-tags">{{$tags.1}}</div>
<div id="photo-tags">{{$tags.title}}
{{foreach $tags.tags as $t}}
<span class="category label btn-success sm">
<span class="p-category">{{$t.name}}</span>
{{if $t.removeurl}} (<a href="{{$t.removeurl}}">x</a>) {{/if}}
</span>
{{/foreach}}
</div>
{{/if}}
{{if $tags.2}}
{{if $tags.removeanyurl}}
<div id="tag-remove">
<a href="{{$tags.2}}">{{$tags.3}}</a>
<a href="{{$tags.removeanyurl}}">{{$tags.removetitle}}</a>
</div>
{{/if}}