X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/11a7bf7e0ecaecd3536a666ce3e798d349574903..5bb23f6f5f8fed81f1166a15344e44afa7fbb480:/app/views/user_blocks/edit.html.erb?ds=sidebyside 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 %>