Sha256: 4282107d5bda8b898f8aaf120674c2a181330ae9a35f360d43273e3ead547444
Contents?: true
Size: 1.44 KB
Versions: 28
Compression:
Stored size: 1.44 KB
Contents
<div class="scope-picker picker-header"> <h2 id="data_picker-title"><%= title %></h2> <ul> <% unless root %> <li><a href="<%= scopes_picker_path(**context) %>"><%= t("decidim.scopes.global") %></a></li> <% end %> <% parent_scopes.each do |scope| %> <li><a href="<%= scopes_picker_path(current: scope.id, **context) %>"><%= translated_attribute(scope.name) %></a></li> <% end %> </ul> </div> <div class="scope-picker picker-content"> <div class="picker-scrollable-content"> <% if scopes.any? %> <ul> <% scopes.each do |scope| %> <li><a href="<%= scopes_picker_path(current: scope.id, **context) %>"><%= translated_attribute(scope.name) %></a></li> <% end %> </ul> <% end %> </div> </div> <div class="scope-picker picker-footer"> <div class="buttons button--double"> <% if current || !required %> <a class="button" href="<%= scopes_picker_path(current: current&.id, **context) %>" data-picker-value="<%= current&.id || global_value %>" data-picker-text="<%= scope_name_for_picker(current, t("decidim.scopes.global")) %>" data-picker-choose> <% else %> <a class="button muted"> <% end %> <%= t("decidim.scopes.picker.choose") %> </a> <a class="button clear" data-close aria-label="<%= t("decidim.scopes.picker.cancel") %>"><%= t("decidim.scopes.picker.cancel") %></a> </div> </div>
Version data entries
28 entries across 28 versions & 1 rubygems