source: trunk/admin/themes/default/template/element_set_unit.tpl @ 5955

Last change on this file since 5955 was 5955, checked in by nikrou, 10 years ago

Feature 1156 fixed : add privacy level to photo bulk manager in unit mode

  • Property svn:eol-style set to LF
File size: 5.4 KB
Line 
1
2{include file='include/autosize.inc.tpl'}
3{include file='include/datepicker.inc.tpl'}
4
5{known_script id="jquery.fcbkcomplete" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.fcbkcomplete.js"}
6{html_head}
7<script type="text/javascript">
8  var tag_boxes_selector = "";
9{foreach from=$elements item=element name=element}
10  {if $smarty.foreach.element.first}
11  var prefix = "";
12  {else}
13  prefix = ", ";
14  {/if}
15  tag_boxes_selector = tag_boxes_selector + prefix + "#tags-" + {$element.ID};
16{/foreach}
17{literal}
18  $(document).ready(function() {
19    $(tag_boxes_selector).fcbkcomplete({
20      json_url: "admin.php?fckb_tags=1",
21      cache: false,
22      filter_case: false,
23      filter_hide: true,
24      firstselected: true,
25      filter_selected: true,
26      maxitems: 10,
27      newel: true
28    });
29  });
30</script>
31{/literal}
32{/html_head}
33
34<h2>{'Batch management'|@translate}</h2>
35
36<h3>{$CATEGORIES_NAV}</h3>
37
38<p style="text-align:center;">
39  <a href="{$U_GLOBAL_MODE}">{'global mode'|@translate}</a>
40  | {'unit mode'|@translate}
41</p>
42
43<form action="{$F_ACTION}" method="POST">
44<fieldset>
45  <legend>{'Display options'|@translate}</legend>
46  <p>{'elements per page'|@translate} :
47      <a href="{$U_ELEMENTS_PAGE}&amp;display=5">5</a>
48    | <a href="{$U_ELEMENTS_PAGE}&amp;display=10">10</a>
49    | <a href="{$U_ELEMENTS_PAGE}&amp;display=50">50</a>
50    | <a href="{$U_ELEMENTS_PAGE}&amp;display=all">{'all'|@translate}</a>
51  </p>
52
53</fieldset>
54
55{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
56
57{if !empty($elements) }
58<div><input type="hidden" name="element_ids" value="{$ELEMENT_IDS}"></div>
59{foreach from=$elements item=element}
60<fieldset class="elementEdit">
61  <legend>{$element.LEGEND}</legend>
62
63  <a href="{$element.U_EDIT}"><img src="{$element.TN_SRC}" alt="" title="{'Edit all picture informations'|@translate}"></a>
64
65  <table>
66
67    <tr>
68      <td><strong>{'Name'|@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        <label><input type="radio" name="date_creation_action-{$element.ID}" value="unset"> {'unset'|@translate}</label>
81        <label><input type="radio" name="date_creation_action-{$element.ID}" value="set" id="date_creation_action_set-{$element.ID}"> {'set to'|@translate}</label>
82
83        <select id="date_creation_day-{$element.ID}" name="date_creation_day-{$element.ID}">
84                <option value="0">--</option>
85           {section name=day start=1 loop=32}
86             <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$element.DATE_CREATION_DAY}selected="selected"{/if}>{$smarty.section.day.index}</option>
87           {/section}
88        </select>
89        <select id="date_creation_month-{$element.ID}" name="date_creation_month-{$element.ID}">
90          {html_options options=$month_list selected=$element.DATE_CREATION_MONTH}
91        </select>
92        <input id="date_creation_year-{$element.ID}"
93               name="date_creation_year-{$element.ID}"
94               type="text"
95               size="4"
96               maxlength="4"
97               value="{$element.DATE_CREATION_YEAR}">
98        <input id="date_creation_linked_date-{$element.ID}" name="date_creation_linked_date-{$element.ID}" type="hidden" size="10" disabled="disabled">
99        <script type="text/javascript">
100          pwg_initialization_datepicker("#date_creation_day-{$element.ID}", "#date_creation_month-{$element.ID}", "#date_creation_year-{$element.ID}", "#date_creation_linked_date-{$element.ID}", "#date_creation_action_set-{$element.ID}");
101        </script>
102      </td>
103    </tr>
104    <tr>
105      <td><strong>{'Minimum privacy level'|@translate}</strong></td>
106      <td>
107        <label><input type="radio" name="level_action" value="leave" checked="checked">{'leave'|@translate}</label>
108        <label><input type="radio" name="level_action" value="set" id="level_action_set">{'set to'|@translate}</label>
109        <select onchange="document.getElementById('level_action_set').checked = true;" name="level-{$element.ID}" size="1">
110          {html_options options=$level_options selected=$element.LEVEL}
111        </select>
112      </td>
113    </tr>
114
115    <tr>
116      <td><strong>{'Tags'|@translate}</strong></td>
117      <td>
118
119<select id="tags-{$element.ID}" name="tags-{$element.ID}">
120{foreach from=$element.TAGS item=tag}
121  <option value="{$tag.value}" class="selected">{$tag.caption}</option>
122{/foreach}
123</select>
124
125      </td>
126    </tr>
127
128    <tr>
129      <td><strong>{'Description'|@translate}</strong></td>
130      <td><textarea cols="50" rows="5" name="description-{$element.ID}" id="description-{$element.ID}" class="description">{$element.DESCRIPTION}</textarea></td>
131    </tr>
132
133  </table>
134
135</fieldset>
136{/foreach}
137
138<p>
139  <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}>
140  <input class="submit" type="reset" value="{'Reset'|@translate}">
141</p>
142{/if}
143
144</form>
145
146<script type="text/javascript">// <![CDATA[
147{literal}$(document).ready(function() {
148        $(".elementEdit img").fadeTo("slow", 0.6); // Opacity on page load
149        $(".elementEdit img").hover(function(){
150                $(this).fadeTo("slow", 1.0); // Opacity on hover
151        },function(){
152                $(this).fadeTo("slow", 0.6); // Opacity on mouseout
153        });
154});{/literal}
155// ]]>
156</script>
Note: See TracBrowser for help on using the repository browser.