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

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

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

  • Property svn:eol-style set to LF
File size: 5.1 KB
RevLine 
[2632]1
[2641]2{include file='include/autosize.inc.tpl'}
[2632]3{include file='include/datepicker.inc.tpl'}
4
[7995]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 = "";
[5189]8{foreach from=$elements item=element name=element}
[7995]9{if $smarty.foreach.element.first}
10var prefix = "";
11{else}
12prefix = ", ";
13{/if}
14        tag_boxes_selector = tag_boxes_selector + prefix + "#tags-" + {$element.ID};
[5189]15{/foreach}
[5188]16{literal}
[7995]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}
[5188]30
[2531]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
[3182]52{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
[2531]53
54{if !empty($elements) }
[3215]55<div><input type="hidden" name="element_ids" value="{$ELEMENT_IDS}"></div>
[2531]56{foreach from=$elements item=element}
57<fieldset class="elementEdit">
58  <legend>{$element.LEGEND}</legend>
59
[3185]60  <a href="{$element.U_EDIT}"><img src="{$element.TN_SRC}" alt="" title="{'Edit all picture informations'|@translate}"></a>
[2531]61
62  <table>
63
64    <tr>
65      <td><strong>{'Name'|@translate}</strong></td>
[3185]66      <td><input type="text" class="large" name="name-{$element.ID}" value="{$element.NAME}"></td>
[2531]67    </tr>
68
69    <tr>
70      <td><strong>{'Author'|@translate}</strong></td>
[3185]71      <td><input type="text" class="large" name="author-{$element.ID}" value="{$element.AUTHOR}"></td>
[2531]72    </tr>
73
74    <tr>
75      <td><strong>{'Creation date'|@translate}</strong></td>
76      <td>
[3185]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>
[2531]79
[2680]80        <select id="date_creation_day-{$element.ID}" name="date_creation_day-{$element.ID}">
[2531]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>
[2680]86        <select id="date_creation_month-{$element.ID}" name="date_creation_month-{$element.ID}">
[2531]87          {html_options options=$month_list selected=$element.DATE_CREATION_MONTH}
88        </select>
[2680]89        <input id="date_creation_year-{$element.ID}"
[2531]90               name="date_creation_year-{$element.ID}"
91               type="text"
92               size="4"
93               maxlength="4"
[3185]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">
[7995]96        {footer_script}
[2680]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}");
[7995]98        {/footer_script}
[2531]99      </td>
100    </tr>
[5955]101    <tr>
[6025]102      <td><strong>{'Who can see this photo?'|@translate}</strong></td>
[5955]103      <td>
[5956]104        <select name="level-{$element.ID}">
[5955]105          {html_options options=$level_options selected=$element.LEVEL}
106        </select>
107      </td>
108    </tr>
[2531]109
110    <tr>
111      <td><strong>{'Tags'|@translate}</strong></td>
[5188]112      <td>
113
[5189]114<select id="tags-{$element.ID}" name="tags-{$element.ID}">
[5188]115{foreach from=$element.TAGS item=tag}
116  <option value="{$tag.value}" class="selected">{$tag.caption}</option>
117{/foreach}
118</select>
119
120      </td>
[2531]121    </tr>
122
123    <tr>
124      <td><strong>{'Description'|@translate}</strong></td>
[3215]125      <td><textarea cols="50" rows="5" name="description-{$element.ID}" id="description-{$element.ID}" class="description">{$element.DESCRIPTION}</textarea></td>
[2531]126    </tr>
127
128  </table>
129
130</fieldset>
131{/foreach}
132
133<p>
[8128]134  <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit">
[3185]135  <input class="submit" type="reset" value="{'Reset'|@translate}">
[2531]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// ]]>
[3185]151</script>
Note: See TracBrowser for help on using the repository browser.