openstreetmap-website/app/views/user_blocks/revoke_all.html.erb
Anton Khorev 2a9888a642 Change revoke block buttons to danger style
Because revoke buttons on block show pages are also danger buttons.
2024-04-02 18:39:35 +03:00

24 lines
876 B
Text

<% @title = t ".title", :block_on => @user.display_name %>
<% content_for :heading do %>
<h1><%= t ".heading_html", :block_on => link_to(@user.display_name, @user) %></h1>
<% end %>
<% unless @user.blocks.active.empty? %>
<%= bootstrap_form_for :revoke_all, :url => { :action => "revoke_all" } do |f| %>
<div class="mb-3">
<div class="form-check">
<%= check_box_tag "confirm", "yes", false, { :class => "form-check-input" } %>
<%= label_tag "confirm", t(".confirm",
:active_blocks => t(".active_blocks",
:count => @user.blocks.active.count)), { :class => "form-check-label" } %>
</div>
</div>
<%= f.submit t(".revoke"), :class => "btn btn-danger" %>
<% end %>
<% else %>
<p><%= t ".empty", :name => @user.display_name %></p>
<% end %>