source: extensions/PWG_Stuffs/trunk/admin/template/add_module.tpl @ 9737

Revision 9737, 3.4 KB checked in by patdenice, 9 years ago (diff)

Compatible 2.2

Line 
1{include file='include/autosize.inc.tpl'}
2{html_head}{literal}
3<style type="text/css">
4.groups { margin-top:15px; }
5.groups input { margin-right:5px; }
6.groups label { margin-right:10px; display: inline-block; overflow: hidden; white-space: nowrap; line-height:1.3em;}
7.groups div { float:right; width:74%; line-height:1.3em;}
8</style>
9{/literal}{/html_head}
10
11<div class="titrePage">
12  <h2>PWG Stuffs - {$STUFFS_TITLE}</h2>
13</div>
14
15<form method="post" action="" class="properties" ENCTYPE="multipart/form-data">
16<fieldset id="mainConf" >
17  <legend>{'stuffs_module_config'|@translate}</legend>
18        <ul>
19    <li>
20      <span class="property">
21        <label for="module_name">{'stuffs_module_title'|@translate}</label>
22      </span>
23      <textarea rows="2" name="module_name" id="module_name" class="description" style="height:2em; width:500px;">{$MODULE_NAME}</textarea>
24    </li>
25    <li>
26      <span class="property">
27        <label for="module_desc">{'stuffs_desc'|@translate}<br>&nbsp;</label>
28      </span>
29      <input type="text" maxlength="255" value="{$DESC_VALUE}" name="module_desc" id="module_desc" style="width:500px;"/><br><i>{'stuffs_only_for_admin'|@translate}</i>
30    </li>
31    <li>
32      <span class="property">
33        <label for="show_title">{'stuffs_show_title'|@translate}</label>
34      </span>
35      <input type="checkbox" name="show_title" id="show_title" value="1" {if $show_title_CHECKED}checked="checked"{/if}>
36    </li>
37
38    {if isset($level_perm)}
39    <li style="margin-top:15px;">
40      <span class="property">
41        <label for="level">{'Privacy level'|@translate}</label>
42      </span>
43      <select name="level" id="level" size="1">{html_options options=$level_perm selected=$level_selected id=privacy}</select>
44    </li>
45    {/if}
46
47   
48    {if isset($users)}
49    <li class="groups" style="margin-top:15px;">
50      <span class="property">
51        <label for="users">{'stuffs_authorized_users'|@translate}</label>
52      </span>
53      {html_checkboxes options=$users selected=$selected_users name=users}
54    </li>
55    {/if}
56
57    {if isset($groups)}
58    <li class="groups" style="margin-top:15px;">
59      <span class="property">
60        <label for="groups">{'stuffs_authorized_group'|@translate}</label>
61      </span>
62      <div>{html_checkboxes options=$groups selected=$selected_groups name=groups}</div>
63    </li>
64    <li class="groups">
65      <div>
66        <a href="#" onClick="jQuery('input[name^=\'groups\']').attr('checked', 'checked');return false;">{'stuffs_select_all'|@translate}</a> /
67        <a href="#" onClick="jQuery('input[name^=\'groups\']').attr('checked', '');return false;">{'stuffs_unselect_all'|@translate}</a> &nbsp;
68        <i>{'stuffs_guest'|@translate}</i>
69      </div>
70    </li>
71    {/if}
72  </ul>
73</fieldset>
74
75<fieldset id="indexDisplayConf">
76        <legend>{'stuffs_show_module_on'|@translate}</legend>
77  <ul>
78    {foreach from=$display_options key=option item=value}
79    {if $value}
80    <li>
81      <label>
82        <span class="property">{'stuffs_show_'|@cat:$option|@translate}</span>
83        <input type="checkbox" name="{$option}" value="1" {if $selected_options[$option]}checked="checked"{/if}>
84      </label>
85    </li>
86    {/if}
87    {/foreach}
88  </ul>
89</fieldset>
90
91{if not empty($MODULE_OPTIONS)}
92<fieldset>
93        <legend>{'stuffs_module_options'|@translate}</legend>
94        {$MODULE_OPTIONS}
95</fieldset>
96{/if}
97<p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit"/></p>
98</form>
Note: See TracBrowser for help on using the repository browser.