source: extensions/user_tags/template/add_tags.tpl @ 32063

Revision 22062, 1.2 KB checked in by nikrou, 7 years ago (diff)

Admin can allow users to add only existing tags

Line 
1{combine_css path="$T4U_CSS/style.css"}
2{combine_script id="jquery.tokeninput" require="jquery" path="themes/default/js/plugins/jquery.tokeninput.js"}
3{combine_script id="addtags" require="jquery" path="$T4U_JS/jquery.addtags.js"}
4{footer_script require="jquery.tokeninput,addtags"}
5
6var t4u_list_script = '{$T4U_LIST_SCRIPT}';
7var vocab = [];
8vocab['click_to_add_tags'] = "{'Click to add tags'|@translate}";
9vocab['start_to_type'] = "{'Start to type'|@translate}...";
10vocab['no_results'] = "{'No results'|@translate}",
11vocab['searching_text'] = "{'Searching...'|@translate}",
12vocab['new_text'] = " ({'new'|@translate})";
13var t4u_allow_creation = {$T4U_ALLOW_CREATION};
14{/footer_script}
15
16<form style="display:none" name="t4u-update-tags" id="t4u-update-tags" action="{$T4U_UPDATE_SCRIPT}" method="post">
17  <input type="hidden" id="t4u-image-id" name="image_id" value="{$T4U_IMAGE_ID}">
18  <input type="hidden" id="t4u-referer" name="referer" value="{$T4U_REFERER}">
19
20  <select id="t4u-tags" name="tags">
21    {foreach from=$T4U_RELATED_TAGS item=tag key=id}
22    <option value="{$id}">{$tag}</option>
23    {/foreach}
24  </select>
25  <input id="t4u-update" type="submit" disabled="disabled" class="t4u-disabled" value="{'Update tags'|@translate}">
26</form>
Note: See TracBrowser for help on using the repository browser.