Sha256: c57f2a1fe1115280fd8d757fef9a80acb78b89a70562e3a3ef9248c8399abb66
Contents?: true
Size: 1.55 KB
Versions: 6
Compression:
Stored size: 1.55 KB
Contents
<div class="card"> <div class="card-divider"> <h2 class="card-title"><%= t(".title") %></h2> </div> <div class="card-section"> <ul class="no-bullet-indented"> <% form.messages.each do |key, value| %> <% if form.errors.include?(key) %> <li><%= icon "x", class: "text-alert", role: "img", "aria-hidden": true %> <%= form.errors.messages[key][0].html_safe %></li> <% else %> <li><%= icon "check", class: "text-success", role: "img", "aria-hidden": true %> <%= value.html_safe %></li> <% end %> <% end %> </ul> <h4><%= t(".trustees") %></h4> <ul class="no-bullet-indented"> <% if form.participatory_space_trustees.none? %> <li><%= t(".no_trustees") %></li> <% end %> <% form.participatory_space_trustees.map {|trustee| [trustee, form.trustees.none? || form.trustees.include?(trustee)] } .sort_by {|trustee, used| used ? 0 : 1} .each do |trustee, used| %> <li <%= "class=text-muted" if !used %>> <%= icon trustee.public_key ? "check" : "x", class: "text-#{trustee.public_key ? "success": "alert"}", role: "img", "aria-hidden": true %> <%= trustee.user.name || trustee.name %> <%= t(".public_key.#{used}").html_safe %> <% if used %> <%= f.hidden_field :trustee_ids, multiple: true, value: trustee.id %> <% else %> <%= t(".not_used_trustee") %> <% end %> </li> <% end %> </ul> </div> </div>
Version data entries
6 entries across 6 versions & 1 rubygems