source: extensions/BatchDownloader/admin/template/config.tpl @ 20372

Revision 20372, 4.4 KB checked in by mistic100, 6 years ago (diff)

add warning about download permissions

Line 
1{combine_css path=$BATCH_DOWNLOAD_PATH|@cat:"admin/template/style.css"}
2
3{combine_script id='jquery.ui.slider' require='jquery.ui' load='footer' path='themes/default/js/ui/jquery.ui.slider.js'}
4{combine_css path="themes/default/js/ui/theme/jquery.ui.slider.css"}
5{combine_script id='jquery.chosen' load='footer' path='themes/default/js/plugins/chosen.jquery.min.js'}
6{combine_css path="themes/default/js/plugins/chosen.css"}
7
8{footer_script}
9jQuery(".chzn-select").chosen();
10
11$("#max_size").slider({ldelim}
12  range: "min",
13  value: {$batch_download.max_size},
14  min: 10,
15  max: {$batch_download.max_size_value},
16  slide: function(event, ui) {ldelim}
17    $("input[name='max_size']").val(ui.value);
18  }
19});
20$("input[name='max_size']").change(function() {ldelim}
21  $("#max_size").slider("value", $(this).val());
22});
23
24$("#max_elements").slider({ldelim}
25  range: "min",
26  value: {$batch_download.max_elements},
27  min: 10,
28  max: {$batch_download.max_elements_value},
29  slide: function(event, ui) {ldelim}
30    $("input[name='max_elements']").val(ui.value);
31  }
32});
33$("input[name='max_elements']").change(function() {ldelim}
34  $("#max_elements").slider("value", $(this).val());
35});
36{/footer_script}
37
38<div class="titrePage">
39        <h2>Batch Downloader</h2>
40</div>
41
42<form method="post" action="" class="properties">
43<fieldset>
44  <legend>{'Download permissions'|@translate}</legend>
45 
46  <ul>
47    <li>
48      <label>
49      {if $group_options}
50        <span class="property">{'User groups'|@translate}</span>
51        <select name="groups[]" data-placeholder="{'Everybody'|@translate}" class="chzn-select" multiple="multiple" style="width:370px;">
52          {html_options options=$group_options selected=$batch_download.groups}
53        </select>
54      {else}
55        {'There is no group in this gallery.'|@translate} <a href="admin.php?page=group_list">{'Group management'|@translate}</a>
56      {/if}
57      </label>
58    </li>
59    <li>
60      <label>
61        <span class="property">{'Privacy level'|@translate}</span>
62        <select name="level">
63          {html_options options=$level_options selected=$batch_download.level}
64        </select>
65      </label>
66    </li>
67    <li>
68      <i>{'Warning: Only registered users can use Batch Downloader.'|@translate}</i>
69    </li>
70  </ul>
71</fieldset>
72
73<fieldset>
74  <legend>{'Archives'|@translate}</legend>
75 
76  <ul>
77    <li style="display:none;">
78      <label>
79        <span class="property">{'Maximum photo size'|@translate}</span>
80        <select name="photo_size">
81          {html_options options=$sizes_options selected=$batch_download.photo_size}
82        </select>
83        NOT IMPLEMENTED
84      </label>
85    </li>
86    <li>
87      <label>
88        <span class="property">{'Delete downloads after'|@translate}</span>
89        <input type="text" name="archive_timeout" value="{$batch_download.archive_timeout}" size="3"> {'hours'|@translate}
90      </label>
91    </li>
92    <li>
93      <label>
94        <span class="property">{'Maximum number of photos per download set'|@translate}</span>
95        <div id="max_elements"></div>
96        <input type="text" name="max_elements" value="{$batch_download.max_elements}" size="5">
97      </label>
98    </li>
99    <li>
100      <label>
101        <span class="property">{'Maximum size of each archive (in Megabytes)'|@translate}</span>
102        <div id="max_size"></div>
103        <input type="text" name="max_size" value="{$batch_download.max_size}" size="5">
104      </label>
105    </li>
106    <li>
107      <label>
108        <span class="property">{'Archive prefix'|@translate}</span>
109        <input type="text" name="archive_prefix" value="{$batch_download.archive_prefix}">
110      </label>
111    </li>
112  {if $use_ziparchive}
113    <li>
114      <label>
115        <span class="property">{'Archive comment'|@translate} :</span><br>
116        <textarea name="archive_comment" rows="5" style="width:450px;">{$batch_download_comment}</textarea>
117      </label>
118      <br>
119      <i>{'Warning: ZipArchive doesn\'t accept special characters like accentuated ones, angle quotes (») and non-latin alphabets.'|@translate}</i>
120    </li>
121  {else}
122    <input type="hidden" name="archive_comment" value="">
123  {/if}
124  </ul>
125</fieldset>
126
127<p class="formButtons"><input type="submit" name="save_config" value="{'Save Settings'|@translate}"></p> 
128
129<fieldset>
130  <legend>{'Environment'|@translate}</legend>
131 
132  <b>PHP</b> {$PHP_VERSION}<br>
133{if $use_ziparchive}
134  <b>ZipArchive</b> {$PHP_VERSION}
135{else}
136  <b>PclZip</b> 2.8.2
137{/if}
138</fieldset>
139 
140</form>
Note: See TracBrowser for help on using the repository browser.