aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/AdminTools/template/admin.tpl
blob: b82b3fd24a394ce553f6c55adbfe46675471c49c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{html_style}
.graphicalCheckbox {
  font-size:16px;
  line-height:16px;
}

.graphicalCheckbox + input {
  display:none;
}
{/html_style}

{footer_script}
jQuery('#ato-config input[type=checkbox]').change(function() {
  jQuery(this).prev().toggleClass('icon-check icon-check-empty');
});
jQuery('#ato-config input[type=radio]').change(function() {
  jQuery('#ato-config input[type=radio][name='+ $(this).attr('name') +']').prev().toggleClass('icon-check icon-check-empty');
});
{/footer_script}

<div class="titrePage">
  <h2>Admin Tools</h2>
</div>

<form method="post" action="" class="properties" id="ato-config">
<fieldset>
  <legend>{'Configuration'|translate}</legend>
  <ul>
    <li>
      <label>
        <span class="graphicalCheckbox icon-check{if not $AdminTools.default_open}-empty{/if}"></span>
        <input type="checkbox" name="default_open"{if $AdminTools.default_open} checked="checked"{/if}>
        <b>{'Open toolbar by default'|translate}</b>
      </label>
    </li>
    <li>
      <label>
        <span class="graphicalCheckbox icon-check{if not $AdminTools.public_quick_edit}-empty{/if}"></span>
        <input type="checkbox" name="public_quick_edit"{if $AdminTools.public_quick_edit} checked="checked"{/if}>
        <b>{'Give access to quick edit to photo owners even if they are not admin'|translate}</b>
      </label>
    </li>
    <li>
      <b>{'Closed icon position'|translate} :</b>
      <label>
        <span class="graphicalCheckbox icon-check{if $AdminTools.closed_position!='left'}-empty{/if}"></span>
        <input type="radio" name="closed_position" value="left"{if $AdminTools.closed_position=='left'} checked="checked"{/if}>
        {'left'|translate}
      </label>
      <label>
        <span class="graphicalCheckbox icon-check{if $AdminTools.closed_position!='right'}-empty{/if}"></span>
        <input type="radio" name="closed_position" value="right"{if $AdminTools.closed_position=='right'} checked="checked"{/if}>
        {'right'|translate}
      </label>
    </li>
  </ul>
</fieldset>

<p class="formButtons"><input type="submit" name="save_config" value="{'Save Settings'|translate}"></p>
</form>