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

Last change on this file since 28703 was 28703, checked in by mistic100, 10 years ago

add dark selectize theme + "ternary" template modifier

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