source: extensions/Float/admin/admin.tpl @ 22399

Last change on this file since 22399 was 19025, checked in by Miklfe, 12 years ago
File size: 1.7 KB
Line 
1{html_head}
2        <script type="text/javascript" src="themes/Float/admin/js/farbtastic.js" ></script>
3        <script type="text/javascript" src="themes/default/js/ui/minified/jquery.ui.slider.min.js"></script>
4
5    <link rel="stylesheet" href="themes/Float/admin/theme.css" />
6{/html_head}
7       
8       
9       
10<div class="titrePage">
11<h2>Float</h2>
12</div>
13
14<form action="" method="post">
15
16<fieldset>
17        <legend>{'Color of theme'|@translate}</legend>
18          <div id="textcolor">
19          <div class="form-item"><label>Background color:</label><input type="text" name="bg_float" class="colorwell" value="{$selected_bg_float}" /></div>
20          <div class="form-item"><label>Color picture of cardre:</label><input type="text" name="bd_float" class="colorwell" value="{$selected_bd_float}" /></div>
21          <div class="form-item"><label>Color title:</label><input type="text" name="title_float" class="colorwell" value="{$selected_title_float}" /></div>
22          <p><input type="submit" name="default" value="{'Default'|@translate}" ></p>
23          </div>
24
25          <div id="picker"></div>
26</fieldset> 
27{footer_script}{literal}
28  $(document).ready(function() {
29    var f = $.farbtastic('#picker');
30    var p = $('#picker').css('opacity', 1);
31    var selected;
32    $('.colorwell')
33      .each(function () { f.linkTo(this); $(this).css('opacity', 1); })
34      .focus(function() {
35        if (selected) {
36          $(selected).css('opacity', 1).removeClass('colorwell-selected');
37        }
38        f.linkTo(this);
39        p.css('opacity', 1);
40        $(selected = this).css('opacity', 1).addClass('colorwell-selected');
41      });
42  });
43{/literal}{/footer_script}
44<p><input type="submit" name="submit" value="{'Submit'|@translate}">
45</form>
Note: See TracBrowser for help on using the repository browser.