Sha256: 2f1a86cfd08e87a37ebcc214998c10ea81f520b52094e844c7f594eb9eef7ff7

Contents?: true

Size: 1.44 KB

Versions: 4

Compression:

Stored size: 1.44 KB

Contents

<button class="close-button" data-close aria-label="Close modal"
        type="button">
  <span aria-hidden="true">&times;</span>
</button>
<div class="reveal__header <%= status.code %>-authorization">
  <h3 class="reveal__title"><%= t ".#{status.code}.title" %></h3>
</div>
<p><%= t ".#{status.code}.explanation", authorization: t("#{status.handler_name}.name", scope: "decidim.authorization_handlers") %></p>
<% if status.data[:extra_explanation] %>
<p><%= t status.data[:extra_explanation][:key], **status.data[:extra_explanation][:params] %></p>
<% end %>
<% if status.data[:fields] %>
<ul>
  <% status.data[:fields].each do |field, value| %>
    <li><strong><%= t ".#{status.code}.invalid_field", field: t("#{status.handler_name}.fields.#{field}", scope: "decidim.authorization_handlers"), value: value ? "(#{value})" : "" %></strong></li>
  <% end %>
</ul>
<% end %>
<div class="row">
  <div class="columns medium-8 medium-offset-2">
    <% if status.data[:action].present? %>
      <%= link_to t(".#{status.code}.#{status.data[:action]}", authorization: t("#{status.handler_name}.name", scope: "decidim.authorization_handlers")), authorize_action_path, class: "button expanded" %>
    <% else %>
      <button class="button expanded" data-close><%= t ".#{status.code}.ok" %></button>
    <% end %>
  </div>
</div>
<% if status.data[:cancel] %>
<div class="text-center">
  <button class="link" data-close><%= t ".#{status.code}.cancel" %></button>
</div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-core-0.14.4 app/views/decidim/authorization_modals/show.html.erb
decidim-core-0.14.3 app/views/decidim/authorization_modals/show.html.erb
decidim-core-0.14.2 app/views/decidim/authorization_modals/show.html.erb
decidim-core-0.14.1 app/views/decidim/authorization_modals/show.html.erb