Create Post/Tag/Remove module class and route

- Fix tag name parameter in single tag removal link in mod/photos
- Remove "/post" from backend routes as it was preventing sessions from working in this module. No existing module had a route starting with "/post".
This commit is contained in:
Hypolite Petovan 2022-11-01 23:42:20 -04:00
commit e0dc7a471e
5 changed files with 172 additions and 7 deletions

View file

@ -0,0 +1,19 @@
<div class="generic-page-wrapper">
<h3>{{$l10n.header}}</h3>
<p id="tag-remove-desc">{{$l10n.desc}}</p>
<form id="tagrm" action="post/{{$item_id}}/tag/remove?return={{$return}}" method="post">
<ul>
{{foreach $tag_checkboxes as $tag_checkbox}}
<li>
{{include file="field_checkbox.tpl" field=$tag_checkbox}}
</li>
{{/foreach}}
</ul>
<p>
<button type="submit" id="tagrm-submit" class="btn btn-primary" name="submit">{{$l10n.remove}}</button>
<button type="submit" id="tagrm-submit" class="btn" name="cancel">{{$l10n.cancel}}</button>
</p>
</form>
</div>