source: trunk/admin/themes/default/template/batch_manager_unit.tpl @ 28703

Revision 28703, 3.9 KB checked in by mistic100, 5 years ago (diff)

add dark selectize theme + "ternary" template modifier

  • Property svn:eol-style set to LF
Line 
1{include file='include/autosize.inc.tpl'}
2{include file='include/datepicker.inc.tpl'}
3{include file='include/colorbox.inc.tpl'}
4
5{combine_script id='LocalStorageCache' load='footer' path='admin/themes/default/js/LocalStorageCache.js'}
6
7{assign var="selectizeTheme" value=($themeconf.name=='roma')|ternary:'dark':'default'}
8{combine_script id='jquery.selectize' load='footer' path='themes/default/js/plugins/selectize.min.js'}
9{combine_css id='jquery.selectize' path="themes/default/js/plugins/selectize.`$selectizeTheme`.css"}
10
11{footer_script}
12(function(){
13{* <!-- TAGS --> *}
14var tagsCache = new TagsCache({
15  serverKey: '{$CACHE_KEYS.tags}',
16  serverId: '{$CACHE_KEYS._hash}',
17  rootUrl: '{$ROOT_URL}'
18});
19
20tagsCache.selectize(jQuery('[data-selectize=tags]'), { lang: {
21  'Add': '{'Create'|translate}'
22}});
23
24{* <!-- DATEPICKER --> *}
25jQuery(function(){ {* <!-- onLoad needed to wait localization loads --> *}
26  jQuery('[data-datepicker]').pwgDatepicker({ showTimepicker: true });
27});
28
29{* <!-- THUMBNAILS --> *}
30jQuery("a.preview-box").colorbox();
31}());
32{/footer_script}
33
34<h2>{'Batch Manager'|@translate}</h2>
35
36<form action="{$F_ACTION}" method="POST">
37<fieldset>
38  <legend>{'Display options'|@translate}</legend>
39  <p>{'photos per page'|@translate} :
40      <a href="{$U_ELEMENTS_PAGE}&amp;display=5">5</a>
41    | <a href="{$U_ELEMENTS_PAGE}&amp;display=10">10</a>
42    | <a href="{$U_ELEMENTS_PAGE}&amp;display=50">50</a>
43    | <a href="{$U_ELEMENTS_PAGE}&amp;display=all">{'all'|@translate}</a>
44  </p>
45
46</fieldset>
47
48{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
49
50{if !empty($elements) }
51<div><input type="hidden" name="element_ids" value="{$ELEMENT_IDS}"></div>
52{foreach from=$elements item=element}
53<fieldset class="elementEdit">
54  <legend>{$element.LEGEND}</legend>
55
56  <span class="thumb">
57    <a href="{$element.FILE_SRC}" class="preview-box" title="{$element.LEGEND|@htmlspecialchars}"><img src="{$element.TN_SRC}" alt=""></a>
58    <br/>
59    <a href="{$element.U_EDIT}">{'Edit'|@translate}</a>
60  </span>
61
62  <table>
63
64    <tr>
65      <td><strong>{'Title'|@translate}</strong></td>
66      <td><input type="text" class="large" name="name-{$element.id}" value="{$element.NAME}"></td>
67    </tr>
68
69    <tr>
70      <td><strong>{'Author'|@translate}</strong></td>
71      <td><input type="text" class="large" name="author-{$element.id}" value="{$element.AUTHOR}"></td>
72    </tr>
73
74    <tr>
75      <td><strong>{'Creation date'|@translate}</strong></td>
76      <td>
77        <input type="hidden" name="date_creation-{$element.id}" value="{$element.DATE_CREATION}">
78        <label>
79          <i class="icon-calendar"></i>
80          <input type="text" data-datepicker="date_creation-{$element.id}" data-datepicker-unset="date_creation_unset-{$element.id}" readonly>
81        </label>
82        <a href="#" class="icon-cancel-circled" id="date_creation_unset-{$element.id}">{'unset'|translate}</a>
83      </td>
84    </tr>
85    <tr>
86      <td><strong>{'Who can see this photo?'|@translate}</strong></td>
87      <td>
88        <select name="level-{$element.id}">
89          {html_options options=$level_options selected=$element.LEVEL}
90        </select>
91      </td>
92    </tr>
93
94    <tr>
95      <td><strong>{'Tags'|@translate}</strong></td>
96      <td>
97        <select data-selectize="tags" data-value="{$element.TAGS|@json_encode|escape:html}"
98          placeholder="{'Type in a search term'|translate}"
99          data-create="true" name="tags-{$element.id}[]" multiple style="width:500px;"></select>
100      </td>
101    </tr>
102
103    <tr>
104      <td><strong>{'Description'|@translate}</strong></td>
105      <td><textarea cols="50" rows="5" name="description-{$element.id}" id="description-{$element.id}" class="description">{$element.DESCRIPTION}</textarea></td>
106    </tr>
107
108  </table>
109
110</fieldset>
111{/foreach}
112
113{if !empty($navbar)}{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
114
115<p>
116  <input type="submit" value="{'Submit'|@translate}" name="submit">
117  <input type="reset" value="{'Reset'|@translate}">
118</p>
119{/if}
120
121</form>
Note: See TracBrowser for help on using the repository browser.