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

Version Path
decidim-core-0.20.1 app/views/decidim/scopes/picker.html.erb
decidim-core-0.20.0 app/views/decidim/scopes/picker.html.erb
decidim-core-0.19.1 app/views/decidim/scopes/picker.html.erb
decidim-core-0.18.1 app/views/decidim/scopes/picker.html.erb
decidim-core-0.19.0 app/views/decidim/scopes/picker.html.erb
decidim-core-0.17.2 app/views/decidim/scopes/picker.html.erb
decidim-core-0.18.0 app/views/decidim/scopes/picker.html.erb
decidim-core-0.17.1 app/views/decidim/scopes/picker.html.erb
decidim-core-0.16.1 app/views/decidim/scopes/picker.html.erb
decidim-core-0.17.0 app/views/decidim/scopes/picker.html.erb
decidim-core-0.16.0 app/views/decidim/scopes/picker.html.erb
decidim-core-0.15.2 app/views/decidim/scopes/picker.html.erb
decidim-core-0.15.1 app/views/decidim/scopes/picker.html.erb
decidim-core-0.15.0 app/views/decidim/scopes/picker.html.erb
decidim-core-0.14.4 app/views/decidim/scopes/picker.html.erb
decidim-core-0.14.3 app/views/decidim/scopes/picker.html.erb
decidim-core-0.14.2 app/views/decidim/scopes/picker.html.erb
decidim-core-0.14.1 app/views/decidim/scopes/picker.html.erb
decidim-core-0.13.1 app/views/decidim/scopes/picker.html.erb
decidim-core-0.12.2 app/views/decidim/scopes/picker.html.erb