X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/11a7bf7e0ecaecd3536a666ce3e798d349574903..a155a2fda3e014fee0aa52ca44e7f28cf738b2dd:/app/views/user_blocks/edit.html.erb?ds=inline diff --git a/app/views/user_blocks/edit.html.erb b/app/views/user_blocks/edit.html.erb index aaa2fcaa4..14480eac8 100644 --- a/app/views/user_blocks/edit.html.erb +++ b/app/views/user_blocks/edit.html.erb @@ -21,6 +21,8 @@ <%= f.form_group :needs_view do %> <%= f.check_box :needs_view %> <% end %> + + <%= f.primary %> <% else %>
<% if @user_block.active? %> @@ -32,7 +34,11 @@ <%= hidden_field_tag "user_block_period", 0 %> <%= hidden_field_tag "user_block[needs_view]", false %> - <% end %> - <%= f.primary %> + <% if @user_block.active? %> + <%= f.submit t(".revoke"), :class => "btn btn-danger" %> + <% else %> + <%= f.primary %> + <% end %> + <% end %> <% end %>