Changeset 9510 for extensions/community/admin_permissions.tpl
- Timestamp:
- Mar 4, 2011, 9:18:39 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/community/admin_permissions.tpl
r9500 r9510 2 2 <style> 3 3 form fieldset p {text-align:left;margin:0 0 1.5em 0;line-height:20px;} 4 .permissionActions {text-align:center;height:20px} 5 .permissionActions a:hover {border:none} 6 .permissionActions img {margin-bottom:-2px} 7 .rowSelected {background-color:#C2F5C2 !important} 4 8 </style> 5 9 {/literal} … … 56 60 </div> 57 61 62 {if not isset($edit)} 58 63 <a id="displayForm" href="#">{'Add a permission'|@translate}</a> 64 {/if} 59 65 60 <form method="post" name="add_permission" action="{$F_ADD_ACTION}" class="properties" style="display:none">66 <form method="post" name="add_permission" action="{$F_ADD_ACTION}" class="properties" {if not isset($edit)}style="display:none"{/if}> 61 67 <fieldset> 62 <legend>{ 'Add a permission'|@translate}</legend>68 <legend>{if isset($edit)}{'Edit a permission'|@translate}{else}{'Add a permission'|@translate}{/if}</legend> 63 69 64 70 <p> … … 66 72 <br> 67 73 <select name="who"> 68 <option value="any_visitor">{'any visitor'|@translate}</option> 69 <option value="any_registered_user">{'any registered user'|@translate}</option> 70 <option value="user">{'a specific user'|@translate}</option> 71 <option value="group">{'a group'|@translate}</option> 74 {html_options options=$who_options selected=$who_options_selected} 72 75 </select> 73 76 74 <select name="who_user" style="display:none">77 <select name="who_user" {if not isset($user_options_selected)}style="display:none"{/if}> 75 78 {html_options options=$user_options selected=$user_options_selected} 76 79 </select> 77 80 78 <select name="who_group" style="display:none">81 <select name="who_group" {if not isset($group_options_selected)}style="display:none"{/if}> 79 82 {html_options options=$group_options selected=$group_options_selected} 80 83 </select> … … 85 88 <br> 86 89 <select class="categoryDropDown" name="category"> 87 <option value="0" >{'The whole gallery'|@translate}</option>90 <option value="0" {if not isset($category_options_selected)}selected="selected"{/if}>{'The whole gallery'|@translate}</option> 88 91 <option disabled="disabled">------------</option> 89 92 {html_options options=$category_options selected=$category_options_selected} 90 93 </select> 91 94 <br> 92 <label><input type="checkbox" name="recursive" checked="checked"> {'Apply to sub-albums'|@translate}</label>95 <label><input type="checkbox" name="recursive" {if $recursive}checked="checked"{/if}> {'Apply to sub-albums'|@translate}</label> 93 96 <br> 94 <label><input type="checkbox" name="create_subcategories" > {'ability to create sub-albums'|@translate}</label>97 <label><input type="checkbox" name="create_subcategories" {if $create_subcategories}checked="checked"{/if}> {'ability to create sub-albums'|@translate}</label> 95 98 </p> 96 99 97 100 <p> 98 101 <strong>{'Which level of trust?'|@translate}</strong> 99 <br><label><input type="radio" name="moderate " value="true" checked="checked"> <em>{'low trust'|@translate}</em> : {'uploaded photos must be validated by an administrator'|@translate}</label>100 <br><label><input type="radio" name="moderate " value="false"> <em>{'high trust'|@translate}</em> : {'uploaded photos are directly displayed in the gallery'|@translate}</label>102 <br><label><input type="radio" name="moderated" value="true" {if $moderated}checked="checked"{/if}> <em>{'low trust'|@translate}</em> : {'uploaded photos must be validated by an administrator'|@translate}</label> 103 <br><label><input type="radio" name="moderated" value="false" {if not $moderated}checked="checked"{/if}> <em>{'high trust'|@translate}</em> : {'uploaded photos are directly displayed in the gallery'|@translate}</label> 101 104 </p> 105 106 {if isset($edit)} 107 <input type="hidden" name="edit" value="{$edit}"> 108 {/if} 102 109 103 110 <p style="margin:0;"> 104 <input class="submit" type="submit" name="submit_add" value="{'Add'|@translate}"/> 111 <input class="submit" type="submit" name="submit_add" value="{if isset($edit)}{'Submit'|@translate}{else}{'Add'|@translate}{/if}"/> 112 <a href="{$F_ADD_ACTION}">{'Cancel'|@translate}</a> 105 113 </p> 106 114 </fieldset> … … 116 124 {if not empty($permissions)} 117 125 {foreach from=$permissions item=permission name=permission_loop} 118 <tr class="{if $smarty.foreach.permission_loop.index is odd}row1{else}row2{/if} ">126 <tr class="{if $smarty.foreach.permission_loop.index is odd}row1{else}row2{/if}{if $permission.HIGHLIGHT} rowSelected{/if}"> 119 127 <td>{$permission.WHO}</td> 120 128 <td>{$permission.WHERE}</td> … … 128 136 {/if} 129 137 </td> 130 <td style="text-align:center;"> 138 <td class="permissionActions"> 139 <a href="{$permission.U_EDIT}"> 140 <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/edit_s.png" alt="{'edit'|@translate}" title="{'edit'|@translate}" /> 141 </a> 131 142 <a href="{$permission.U_DELETE}" onclick="return confirm( document.getElementById('btn_delete').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');"> 132 <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" class="button" style="border:none" id="btn_delete" alt="{'delete'|@translate}" title="{'delete'|@translate}" />143 <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" id="btn_delete" alt="{'delete'|@translate}" title="{'Delete permission'|@translate}" /> 133 144 </a> 134 145 </td>
Note: See TracChangeset
for help on using the changeset viewer.