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

Last change on this file since 8128 was 8128, checked in by patdenice, 10 years ago

feature 2060: Remove {$TAG_INPUT_ENABLED} from tpl files.

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