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

Last change on this file since 5200 was 5198, checked in by plg, 15 years ago

feature 724: improvement, auto-complete is not case sensitive anymore

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