summaryrefslogtreecommitdiff
path: root/app/views/users/edit.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/users/edit.html.erb')
-rw-r--r--app/views/users/edit.html.erb12
1 files changed, 7 insertions, 5 deletions
diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb
index 6a6fe4d..5e63c00 100644
--- a/app/views/users/edit.html.erb
+++ b/app/views/users/edit.html.erb
@@ -28,15 +28,17 @@
</td>
</tr>
<tr>
- <td>Confirmed email address</td>
+ <td>Badge</td>
<td>
- <%= f.select :confirmed, [["No", false], ["Yes", true]], {}, { disabled: !can_edit? } %>
+ <% if current_user.role >= Role.get(:mod) %>
+ <%= f.select :badge, Badge.all %>
+ <% end %>
</td>
</tr>
<tr>
- <td>Donator</td>
+ <td>Confirmed email address</td>
<td>
- <%= f.select :donor, [["No", false], ["Yes", true]], {}, { disabled: !can_edit? } %>
+ <%= f.select :confirmed, [["No", false], ["Yes", true]], {}, { disabled: !can_edit? } %>
</td>
</tr>
<% end %>
@@ -87,4 +89,4 @@
<span class='red-alert'>This user has not confirmed his email!</span>
<% end %>
<% end %>
-<% end %> \ No newline at end of file
+<% end %>