source: trunk/themes/smartpocket/admin/admin.tpl @ 25753

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

optimized jQuery (thanks to mistic100)

File size: 1.4 KB
Line 
1{html_style}
2.graphicalCheckbox {
3  font-size:16px;
4  line-height:16px;
5}
6
7input[type=checkbox] {
8  display:none;
9}
10{/html_style}
11
12{footer_script}{literal}
13jQuery(document).ready(function() {
14  jQuery('form li label input[type=checkbox]').change(function() {
15    jQuery(this).prev().toggleClass('icon-check icon-check-empty');
16  });
17});
18{/literal}{/footer_script}
19
20<div class="titrePage">
21  <h2>{'Smartpocket, Configuration Page'|@translate}</h2>
22</div>
23<form method="post" class="properties" action="" ENCTYPE="multipart/form-data" name="form" class="properties">
24<div id="configContent">
25  <fieldset>
26    <legend>{'Slideshow Options'|@translate}</legend>
27    <ul>
28
29      <li><label>
30        <span class="property">{'Loop the slideshow'|translate}</span>&nbsp;
31        <span class="graphicalCheckbox icon-check{if not $options.loop}-empty{/if}">&nbsp;</span>
32        <input type="checkbox" name="loop"{if $options.loop} checked="checked"{/if}>
33      </label></li>
34
35      <li><label>
36        <span class="property">{'Autohide the bar of the slideshow'|translate}</span>&nbsp;
37        <span class="graphicalCheckbox icon-check{if $options.autohide != 5000}-empty{/if}">&nbsp;</span>
38        <input type="checkbox" name="autohide"{if $options.autohide == 5000} checked="checked"{/if}>
39      </label></li>
40
41    </ul>
42  </fieldset>
43</div>
44<p>
45  <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit_smartpocket" />
46</p>
47</form>
Note: See TracBrowser for help on using the repository browser.