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

Revision 28765, 4.0 KB checked in by mistic100, 5 years ago (diff)

feature 3080: add cancel button, one minute granularity, fix missing css

  • 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({
27    showTimepicker: true,
28    cancelButton: '{'Cancel'|translate}'
29  });
30});
31
32{* <!-- THUMBNAILS --> *}
33jQuery("a.preview-box").colorbox();
34}());
35{/footer_script}
36
37<h2>{'Batch Manager'|@translate}</h2>
38
39<form action="{$F_ACTION}" method="POST">
40<fieldset>
41  <legend>{'Display options'|@translate}</legend>
42  <p>{'photos per page'|@translate} :
43      <a href="{$U_ELEMENTS_PAGE}&amp;display=5">5</a>
44    | <a href="{$U_ELEMENTS_PAGE}&amp;display=10">10</a>
45    | <a href="{$U_ELEMENTS_PAGE}&amp;display=50">50</a>
46    | <a href="{$U_ELEMENTS_PAGE}&amp;display=all">{'all'|@translate}</a>
47  </p>
48
49</fieldset>
50
51{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
52
53{if !empty($elements) }
54<div><input type="hidden" name="element_ids" value="{$ELEMENT_IDS}"></div>
55{foreach from=$elements item=element}
56<fieldset class="elementEdit">
57  <legend>{$element.LEGEND}</legend>
58
59  <span class="thumb">
60    <a href="{$element.FILE_SRC}" class="preview-box" title="{$element.LEGEND|@htmlspecialchars}"><img src="{$element.TN_SRC}" alt=""></a>
61    <br/>
62    <a href="{$element.U_EDIT}">{'Edit'|@translate}</a>
63  </span>
64
65  <table>
66
67    <tr>
68      <td><strong>{'Title'|@translate}</strong></td>
69      <td><input type="text" class="large" name="name-{$element.id}" value="{$element.NAME}"></td>
70    </tr>
71
72    <tr>
73      <td><strong>{'Author'|@translate}</strong></td>
74      <td><input type="text" class="large" name="author-{$element.id}" value="{$element.AUTHOR}"></td>
75    </tr>
76
77    <tr>
78      <td><strong>{'Creation date'|@translate}</strong></td>
79      <td>
80        <input type="hidden" name="date_creation-{$element.id}" value="{$element.DATE_CREATION}">
81        <label>
82          <i class="icon-calendar"></i>
83          <input type="text" data-datepicker="date_creation-{$element.id}" data-datepicker-unset="date_creation_unset-{$element.id}" readonly>
84        </label>
85        <a href="#" class="icon-cancel-circled" id="date_creation_unset-{$element.id}">{'unset'|translate}</a>
86      </td>
87    </tr>
88    <tr>
89      <td><strong>{'Who can see this photo?'|@translate}</strong></td>
90      <td>
91        <select name="level-{$element.id}">
92          {html_options options=$level_options selected=$element.LEVEL}
93        </select>
94      </td>
95    </tr>
96
97    <tr>
98      <td><strong>{'Tags'|@translate}</strong></td>
99      <td>
100        <select data-selectize="tags" data-value="{$element.TAGS|@json_encode|escape:html}"
101          placeholder="{'Type in a search term'|translate}"
102          data-create="true" name="tags-{$element.id}[]" multiple style="width:500px;"></select>
103      </td>
104    </tr>
105
106    <tr>
107      <td><strong>{'Description'|@translate}</strong></td>
108      <td><textarea cols="50" rows="5" name="description-{$element.id}" id="description-{$element.id}" class="description">{$element.DESCRIPTION}</textarea></td>
109    </tr>
110
111  </table>
112
113</fieldset>
114{/foreach}
115
116{if !empty($navbar)}{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
117
118<p>
119  <input type="submit" value="{'Submit'|@translate}" name="submit">
120  <input type="reset" value="{'Reset'|@translate}">
121</p>
122{/if}
123
124</form>
Note: See TracBrowser for help on using the repository browser.