Sha256: 0ff0d0249c36360e0d34278b55746254e74ba326c3ecfd4e16be5c6a7ccf9421
Contents?: true
Size: 1.81 KB
Versions: 7
Compression:
Stored size: 1.81 KB
Contents
<%= plan_filter_form_for filter do |form| %> <div class="filters__section"> <div class="filters__search"> <div class="input-group"> <%= form.search_field :search_text, label: false, class: "input-group-field", placeholder: t(".search") %> <div class="input-group-button"> <button type="submit" class="button button--muted"> <%= icon "magnifying-glass", aria_label: t(".search") %> </button> </div> </div> </div> </div> <% if component_settings.plan_answering_enabled && current_settings.plan_answering_enabled %> <%= form.collection_radio_buttons :state, [["except_rejected", t(".except_rejected")], ["accepted", t(".accepted")], ["evaluating", t(".evaluating")], ["rejected", t(".rejected")], ["all", t(".all")]], :first, :last, legend_title: t(".state") %> <% end %> <% if linked_classes_for(Decidim::Plans::Plan).any? %> <%= form.collection_radio_buttons :related_to, linked_classes_filter_values_for(Decidim::Plans::Plan), :first, :last, legend_title: t(".related_to") %> <% end %> <% if component_settings.scopes_enabled? && current_participatory_space.has_subscopes? %> <%= scopes_picker_filter form, :scope_id %> <% end %> <% if component_settings.categories_enabled? && current_component.categories.any? %> <%= form.categories_select :category_id, current_component.categories, legend_title: t(".category"), disable_parents: false, label: false, prompt: t(".category_prompt") %> <% end %> <% if available_tags.any? %> <%= form.collection_check_boxes :tag_id, available_tags, ->(p) { "#{p.id}" }, ->(p) { translated_attribute(p.name) }, legend_title: t(".tag"), disable_parents: false, label: false, prompt: t(".tag_prompt") %> <% end %> <%= hidden_field_tag :order, order, id: nil, class: "order_filter" %> <% end %>
Version data entries
7 entries across 7 versions & 1 rubygems