Changeset 25928 for trunk/admin/themes/default
- Timestamp:
- Dec 12, 2013, 10:51:47 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/user_list.tpl
r25844 r25928 25 25 var pwg_token = "{$PWG_TOKEN}"; 26 26 27 var protectedUsers = [{$protected_users}]; 28 var guestUser = {$guest_user}; 29 27 30 var truefalse = { 28 31 true:"{'Yes'|translate}", … … 145 148 var userDetails = '<form>'; 146 149 userDetails += '<div class="userActions">'; 147 userDetails += '<span class="changePasswordDone infos" style="display:none">✔ {/literal}{'Password updated'|translate|escape:javascript}{literal}</span>'; 148 userDetails += '<span class="changePassword" style="display:none">{/literal}{'New password'|translate}{literal} <input type="text"> <a href="#" class="buttonLike updatePassword"><img src="themes/default/images/ajax-loader-small.gif" style="margin-bottom:-1px;margin-left:1px;display:none;"><span class="text">{/literal}{'Submit'|translate|escape:javascript}{literal}</span></a> <a href="#" class="cancel">{/literal}{'Cancel'|translate|escape:javascript}{literal}</a></span>'; 149 userDetails += '<a class="icon-key changePasswordOpen" href="#">{/literal}{'Change password'|translate|escape:javascript}{literal}</a>'; 150 userDetails += '<br><a target="_blank" href="admin.php?page=user_perm&user_id='+userId+'" class="icon-lock">{/literal}{'Permissions'|translate|escape:javascript}{literal}</a>'; 151 userDetails += '<br><span class="userDelete"><img class="loading" src="themes/default/images/ajax-loader-small.gif" style="display:none;"><a href="#" class="icon-trash" data-user_id="'+userId+'">{/literal}{'Delete'|translate|escape:javascript}{literal}</a></span>'; 150 151 if (parseInt(userId) != guestUser) { 152 userDetails += '<span class="changePasswordDone infos" style="display:none">✔ {/literal}{'Password updated'|translate|escape:javascript}{literal}</span>'; 153 userDetails += '<span class="changePassword" style="display:none">{/literal}{'New password'|translate}{literal} <input type="text"> <a href="#" class="buttonLike updatePassword"><img src="themes/default/images/ajax-loader-small.gif" style="margin-bottom:-1px;margin-left:1px;display:none;"><span class="text">{/literal}{'Submit'|translate|escape:javascript}{literal}</span></a> <a href="#" class="cancel">{/literal}{'Cancel'|translate|escape:javascript}{literal}</a></span>'; 154 userDetails += '<a class="icon-key changePasswordOpen" href="#">{/literal}{'Change password'|translate|escape:javascript}{literal}</a>'; 155 userDetails += '<br>'; 156 } 157 158 userDetails += '<a target="_blank" href="admin.php?page=user_perm&user_id='+userId+'" class="icon-lock">{/literal}{'Permissions'|translate|escape:javascript}{literal}</a>'; 159 160 if (protectedUsers.indexOf(parseInt(userId)) == -1) { 161 userDetails += '<br><span class="userDelete"><img class="loading" src="themes/default/images/ajax-loader-small.gif" style="display:none;"><a href="#" class="icon-trash" data-user_id="'+userId+'">{/literal}{'Delete'|translate|escape:javascript}{literal}</a></span>'; 162 } 163 152 164 userDetails += '</div>'; 153 165 154 userDetails += '<span class="changeUsernameOpen"><strong class="username">'+user.username+'</strong> <a href="#" class="icon-pencil">{/literal}{'Change username'|translate|escape:javascript}{literal}</a></span>'; 155 userDetails += '<span class="changeUsername" style="display:none">'; 156 userDetails += '<input type="text"> <a href="#" class="buttonLike updateUsername"><img src="themes/default/images/ajax-loader-small.gif" style="margin-bottom:-1px;margin-left:1px;display:none;"><span class="text">{/literal}{'Submit'|translate}{literal}</span></a> <a href="#" class="cancel">{/literal}{'Cancel'|translate|escape:javascript}{literal}</a>'; 166 userDetails += '<span class="changeUsernameOpen"><strong class="username">'+user.username+'</strong>'; 167 168 if (parseInt(userId) != guestUser) { 169 userDetails += ' <a href="#" class="icon-pencil">{/literal}{'Change username'|translate|escape:javascript}{literal}</a></span>'; 170 userDetails += '<span class="changeUsername" style="display:none">'; 171 userDetails += '<input type="text"> <a href="#" class="buttonLike updateUsername"><img src="themes/default/images/ajax-loader-small.gif" style="margin-bottom:-1px;margin-left:1px;display:none;"><span class="text">{/literal}{'Submit'|translate}{literal}</span></a> <a href="#" class="cancel">{/literal}{'Cancel'|translate|escape:javascript}{literal}</a>'; 172 } 173 157 174 userDetails += '</span>'; 158 175 … … 171 188 172 189 userDetails += '<div class="userProperty"><strong>{/literal}{'Email address'|translate}{literal}</strong>'; 173 userDetails += '<br><input name="email" type="text" value="'+ (user.email||'') +'"></div>'; 190 userDetails += '<br>'; 191 if (parseInt(userId) != guestUser) { 192 userDetails += '<input name="email" type="text" value="'+ (user.email||'') +'">'; 193 } 194 else { 195 userDetails += '{/literal}{'N/A'|translate}{literal}'; 196 } 197 userDetails += '</div>'; 174 198 175 199 userDetails += '<div class="userProperty"><strong>{/literal}{'Status'|translate}{literal}</strong>';
Note: See TracChangeset
for help on using the changeset viewer.