Localised the group ranks in the group editor.

This commit is contained in:
Azareal 2018-10-02 20:00:52 +10:00
parent a365e42dcf
commit f6ab754743
2 changed files with 10 additions and 5 deletions

View File

@ -684,6 +684,11 @@
"panel_groups_head":"Groups",
"panel_groups_rank_prefix":"Rank ",
"panel_groups_rank_guest":"Guest",
"panel_groups_rank_member":"Member",
"panel_groups_rank_mod":"Mod",
"panel_groups_rank_admin":"Admin",
"panel_groups_rank_banned":"Banned",
"panel_groups_edit_group_button_aria":"Edit Group",
"panel_groups_create_head":"Create Group",
"panel_groups_create_name":"Name",

View File

@ -26,11 +26,11 @@
<div class="formitem formlabel"><a>{{lang "panel_group_type"}}</a></div>
<div class="formitem">
<select name="group-type"{{if .DisableRank}} disabled{{end}}>
<option{{if eq .Rank "Guest"}} selected{{end}} disabled>Guest</option>
<option{{if eq .Rank "Member"}} selected{{end}}>Member</option>
<option{{if eq .Rank "Mod"}} selected{{end}}{{if not .CurrentUser.Perms.EditGroupSuperMod}} disabled{{end}}>Mod</option>
<option{{if eq .Rank "Admin"}} selected{{end}}{{if not .CurrentUser.Perms.EditGroupAdmin}} disabled{{end}}>Admin</option>
<option{{if eq .Rank "Banned"}} selected{{end}}>Banned</option>
<option value="Guest"{{if eq .Rank "Guest"}} selected{{end}} disabled>{{lang "panel_groups_rank_guest"}}</option>
<option value="Member"{{if eq .Rank "Member"}} selected{{end}}>{{lang "panel_groups_rank_member"}}</option>
<option value="Mod"{{if eq .Rank "Mod"}} selected{{end}}{{if not .CurrentUser.Perms.EditGroupSuperMod}} disabled{{end}}>{{lang "panel_groups_rank_mod"}}</option>
<option value="Admin"{{if eq .Rank "Admin"}} selected{{end}}{{if not .CurrentUser.Perms.EditGroupAdmin}} disabled{{end}}>{{lang "panel_groups_rank_admin"}}</option>
<option value="Banned"{{if eq .Rank "Banned"}} selected{{end}}>{{lang "panel_groups_rank_banned"}}</option>
</select>
</div>
</div>{{end}}