source: trunk/admin/themes/default/template/cat_modify.tpl @ 29619

Last change on this file since 29619 was 29619, checked in by plg, 10 years ago

enlarge album list to 600px

  • Property svn:eol-style set to LF
File size: 4.3 KB
Line 
1{combine_script id='LocalStorageCache' load='footer' path='admin/themes/default/js/LocalStorageCache.js'}
2
3{combine_script id='jquery.selectize' load='footer' path='themes/default/js/plugins/selectize.min.js'}
4{combine_css id='jquery.selectize' path="themes/default/js/plugins/selectize.{$themeconf.colorscheme}.css"}
5
6{footer_script}
7{* <!-- CATEGORIES --> *}
8var categoriesCache = new CategoriesCache({
9  serverKey: '{$CACHE_KEYS.categories}',
10  serverId: '{$CACHE_KEYS._hash}',
11  rootUrl: '{$ROOT_URL}'
12});
13
14categoriesCache.selectize(jQuery('[data-selectize=categories]'), {
15  default: 0,
16  filter: function(categories, options) {
17    // remove itself and children
18    var filtered = jQuery.grep(categories, function(cat) {
19      return !(/\b{$CAT_ID}\b/.test(cat.uppercats));
20    });
21   
22    filtered.push({
23      id: 0,
24      fullname: '------------',
25      global_rank: 0
26    });
27   
28    return filtered;
29  }
30});
31{/footer_script}
32
33
34<div class="titrePage">
35  <h2><span style="letter-spacing:0">{$CATEGORIES_NAV}</span> &#8250; {'Edit album'|@translate} {$TABSHEET_TITLE}</h2>
36</div>
37
38<form action="{$F_ACTION}" method="POST" id="catModify">
39
40<fieldset>
41  <legend>{'Informations'|@translate}</legend>
42
43  <table style="width:100%">
44    <tr>
45      <td id="albumThumbnail">
46{if isset($representant) }
47  {if isset($representant.picture) }
48        <a href="{$representant.picture.URL}"><img src="{$representant.picture.SRC}" alt=""></a>
49  {else}
50        <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_representant_random.png" alt="{'Random photo'|@translate}">
51  {/if}
52
53  {if $representant.ALLOW_SET_RANDOM }
54        <p style="text-align:center;"><input class="submit" type="submit" name="set_random_representant" value="{'Refresh'|@translate}" title="{'Find a new representant by random'|@translate}"></p>
55  {/if}
56
57  {if isset($representant.ALLOW_DELETE) }
58        <p><input class="submit" type="submit" name="delete_representant" value="{'Delete Representant'|@translate}"></p>
59  {/if}
60{/if}
61      </td>
62
63      <td id="albumLinks">
64<p>{$INTRO}</p>
65<ul>
66{if cat_admin_access($CAT_ID)}
67  <li><a class="icon-eye" href="{$U_JUMPTO}">{'jump to album'|@translate} →</a></li>
68{/if}
69
70{if isset($U_MANAGE_ELEMENTS) }
71  <li><a class="icon-picture" href="{$U_MANAGE_ELEMENTS}">{'manage album photos'|@translate}</a></li>
72{/if}
73
74  <li style="text-transform:lowercase;"><a class="icon-plus-circled" href="{$U_ADD_PHOTOS_ALBUM}">{'Add Photos'|translate}</a></li>
75
76  <li><a class="icon-sitemap" href="{$U_CHILDREN}">{'manage sub-albums'|@translate}</a></li>
77
78{if isset($U_SYNC) }
79  <li><a class="icon-exchange" href="{$U_SYNC}">{'Synchronize'|@translate}</a> ({'Directory'|@translate} = {$CAT_FULL_DIR})</li>
80{/if}
81
82{if isset($U_DELETE) }
83  <li><a class="icon-trash" href="{$U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">{'delete album'|@translate}</a></li>
84{/if}
85
86</ul>
87      </td>
88    </tr>
89  </table>
90
91</fieldset>
92
93<fieldset>
94  <legend>{'Properties'|@translate}</legend>
95  <p>
96    <strong>{'Name'|@translate}</strong>
97    <br>
98    <input type="text" class="large" name="name" value="{$CAT_NAME}" maxlength="255">
99  </p>
100
101  <p>
102    <strong>{'Description'|@translate}</strong>
103    <br>
104    <textarea cols="50" rows="5" name="comment" id="comment" class="description">{$CAT_COMMENT}</textarea>
105  </p>
106
107{if isset($parent_category) }
108  <p>
109    <strong>{'Parent album'|@translate}</strong>
110    <br>
111    <select data-selectize="categories" data-value="{$parent_category|@json_encode|escape:html}"
112        name="parent" style="width:600px"></select>
113  </p>
114{/if}
115
116  <p>
117    <strong>{'Lock'|@translate}</strong>
118    <br>
119                {html_radios name='visible' values=['true','true_sub','false'] output=['No'|translate,'No and unlock sub-albums'|translate,'Yes'|translate] selected=$CAT_VISIBLE}
120  </p>
121
122  {if isset($CAT_COMMENTABLE)}
123  <p>
124    <strong>{'Comments'|@translate}</strong>
125    <br>
126                {html_radios name='commentable' values=['false','true'] output=['No'|translate,'Yes'|translate] selected=$CAT_COMMENTABLE}
127    <label id="applytoSubAction">
128      <input type="checkbox" name="apply_commentable_on_sub">
129      {'Apply to sub-albums'|@translate}
130    </label>
131  </p>
132  {/if}
133
134  <p style="margin:0">
135    <input class="submit" type="submit" value="{'Save Settings'|@translate}" name="submit">
136  </p>
137</fieldset>
138
139</form>
Note: See TracBrowser for help on using the repository browser.