Sha256: 7798060e2b3353813507f233945142d2ea44d3ac1993b0b8fad94680414c892d

Contents?: true

Size: 1.44 KB

Versions: 6

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

6 entries across 6 versions & 1 rubygems

Version Path
decidim-core-0.10.1 app/views/decidim/scopes/picker.html.erb
decidim-core-0.10.0 app/views/decidim/scopes/picker.html.erb
decidim-core-0.9.3 app/views/decidim/scopes/picker.html.erb
decidim-core-0.9.2 app/views/decidim/scopes/picker.html.erb
decidim-core-0.9.1 app/views/decidim/scopes/picker.html.erb
decidim-core-0.9.0 app/views/decidim/scopes/picker.html.erb