Sha256: 02ccc525568c342e54ba37d48b2ca14d54effc6fda3af24208e1952e47ef720b
Contents?: true
Size: 1.17 KB
Versions: 9
Compression:
Stored size: 1.17 KB
Contents
<div class="constraints-editor" data-key="<%= key %>"> <div class="callout" style="display:none" data-closable> <p></p> <button class="close-button" aria-label="Dismiss alert" type="button" data-close> <span aria-hidden="true">×</span> </button> </div> <h5><%= t ".title" %></h5> <% if constraints.blank? %> <span class="label warning"><%= t ".always" %></span> <% end %> <ul class="constraints-list<%= " inactive" if constraints&.detect{|c| c.settings["participatory_space_manifest"]=="none" } %>"> <% constraints&.each do |constraint| %> <li> <% constraint.settings.reverse_each do |k, val| %> <span class="label <%= k %> constraint-<%= val %>"><%= translate_constraint_value constraint, k %></span> <% end %> <a href="<%= constraint_path(id: constraint.id, key: key) %>" class="edit-condition"><%= t ".edit" %></a> <%= link_to t(".delete"), constraint_path(id: constraint.id), remote: true, method: :delete %> </li> <% end %> </ul> <a href="<%= new_constraint_path(key: key) %>" class="add-condition" data-open="constraintsModal"><%= t ".add_condition" %></a> </div>
Version data entries
9 entries across 9 versions & 1 rubygems