implements user name change requests

This commit is contained in:
albert
2013-03-26 18:13:03 -04:00
parent 7939ce2a98
commit a9be96ce8b
12 changed files with 179 additions and 12 deletions

View File

@@ -33,7 +33,11 @@
</ul>
</section>
<% if CurrentUser.user.is_admin? %>
<% if @change_request.rejected? %>
<section>
<h2>Request was rejected</h2>
</section>
<% elsif CurrentUser.user.is_admin? %>
<section>
<h2>Options</h2>
<%= form_tag(approve_user_name_change_request_path(@change_request)) do %>
@@ -52,5 +56,11 @@
<% end %>
</section>
<% end %>
<section>
<%= form_tag(user_name_change_request_path(@change_request), :method => :delete) do %>
<%= submit_tag "Delete" %>
<% end %>
</section>
</div>