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

Revision 28703, 4.7 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/dbselect.inc.tpl'}
3{include file='include/datepicker.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{* <!-- CATEGORIES --> *}
14var categoriesCache = new CategoriesCache({
15  serverKey: '{$CACHE_KEYS.categories}',
16  serverId: '{$CACHE_KEYS._hash}',
17  rootUrl: '{$ROOT_URL}'
18});
19
20categoriesCache.selectize(jQuery('[data-selectize=categories]'));
21
22{* <!-- TAGS --> *}
23var tagsCache = new TagsCache({
24  serverKey: '{$CACHE_KEYS.tags}',
25  serverId: '{$CACHE_KEYS._hash}',
26  rootUrl: '{$ROOT_URL}'
27});
28
29tagsCache.selectize(jQuery('[data-selectize=tags]'), { lang: {
30  'Add': '{'Create'|translate}'
31}});
32
33{* <!-- DATEPICKER --> *}
34jQuery(function(){ {* <!-- onLoad needed to wait localization loads --> *}
35  jQuery('[data-datepicker]').pwgDatepicker({ showTimepicker: true });
36});
37}());
38{/footer_script}
39
40<h2>{$TITLE} &#8250; {'Edit photo'|@translate} {$TABSHEET_TITLE}</h2>
41
42<form action="{$F_ACTION}" method="post" id="catModify">
43
44  <fieldset>
45    <legend>{'Informations'|@translate}</legend>
46
47    <table>
48
49      <tr>
50        <td id="albumThumbnail">
51          <img src="{$TN_SRC}" alt="{'Thumbnail'|@translate}" class="Thumbnail">
52        </td>
53        <td id="albumLinks" style="width:400px;vertical-align:top;">
54          <ul style="padding-left:15px;margin:0;">
55            <li>{$INTRO.file}</li>
56            <li>{$INTRO.add_date}</li>
57            <li>{$INTRO.added_by}</li>
58            <li>{$INTRO.size}</li>
59            <li>{$INTRO.stats}</li>
60            <li>{$INTRO.id}</li>
61          </ul>
62        </td>
63        <td class="photoLinks">
64          <ul>
65          {if isset($U_JUMPTO) }
66            <li><a class="icon-eye" href="{$U_JUMPTO}">{'jump to photo'|@translate} →</a></li>
67          {/if}
68          {if !url_is_remote($PATH)}
69            <li><a class="icon-arrows-cw" href="{$U_SYNC}">{'Synchronize metadata'|@translate}</a></li>
70
71            <li><a class="icon-trash" href="{$U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">{'delete photo'|@translate}</a></li>
72          {/if}
73          </ul>
74        </td>
75      </tr>
76    </table>
77
78  </fieldset>
79
80  <fieldset>
81    <legend>{'Properties'|@translate}</legend>
82
83    <p>
84      <strong>{'Title'|@translate}</strong>
85      <br>
86      <input type="text" class="large" name="name" value="{$NAME|@escape}">
87    </p>
88
89    <p>
90      <strong>{'Author'|@translate}</strong>
91      <br>
92      <input type="text" class="large" name="author" value="{$AUTHOR}">
93    </p>
94
95    <p>
96      <strong>{'Creation date'|@translate}</strong>
97      <br>
98      <input type="hidden" name="date_creation" value="{$DATE_CREATION}">
99      <label>
100        <i class="icon-calendar"></i>
101        <input type="text" data-datepicker="date_creation" data-datepicker-unset="date_creation_unset" readonly>
102      </label>
103      <a href="#" class="icon-cancel-circled" id="date_creation_unset">{'unset'|translate}</a>
104    </p>
105
106    <p>
107      <strong>{'Linked albums'|@translate}</strong>
108      <br>
109      <select data-selectize="categories" data-value="{$associated_albums|@json_encode|escape:html}"
110        placeholder="{'Type in a search term'|translate}"
111        data-default="{$STORAGE_ALBUM}" name="associate[]" multiple style="width:600px;"></select>
112    </p>
113
114    <p>
115      <strong>{'Representation of albums'|@translate}</strong>
116      <br>
117      <select data-selectize="categories" data-value="{$represented_albums|@json_encode|escape:html}"
118        placeholder="{'Type in a search term'|translate}"
119        name="represent[]" multiple style="width:600px;"></select>
120    </p>
121
122    <p>
123      <strong>{'Tags'|@translate}</strong>
124      <br>
125      <select data-selectize="tags" data-value="{$tag_selection|@json_encode|escape:html}"
126        placeholder="{'Type in a search term'|translate}"
127        data-create="true" name="tags[]" multiple style="width:600px;"></select>
128    </p>
129
130    <p>
131      <strong>{'Description'|@translate}</strong>
132      <br>
133      <textarea name="description" id="description" class="description">{$DESCRIPTION}</textarea>
134    </p>
135
136    <p>
137      <strong>{'Who can see this photo?'|@translate}</strong>
138      <br>
139      <select name="level" size="1">
140        {html_options options=$level_options selected=$level_options_selected}
141      </select>
142   </p>
143
144  <p style="margin:40px 0 0 0">
145    <input class="submit" type="submit" value="{'Save Settings'|@translate}" name="submit">
146  </p>
147</fieldset>
148
149</form>
Note: See TracBrowser for help on using the repository browser.