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