- @page_title = t('workarea.admin.releasables.plan_changes_for', release_name: @release.name) .view.view--mixed-results .view__header .grid.grid--middle.grid--right .grid__cell.grid__cell--50 .view__heading = link_to_index_for(@release) %h1= link_to @release.name, url_for(@release) .grid__cell.grid__cell--25 = render_aux_navigation_for(@release) .view__container = render_cards_for(@release, :plan_changes) .view__container .release-creatable> = link_to create_catalog_categories_path, class: 'release-creatable__icon-set' do = inline_svg('workarea/admin/icons/categories.svg', class: 'release-creatable__type-icon svg-icon svg-icon--extra-large') = inline_svg('workarea/admin/icons/add_circle.svg', class: 'release-creatable__add-icon svg-icon svg-icon--small svg-icon--green') = link_to t('workarea.admin.releasables.creatable.add_category'), create_catalog_categories_path, id: 'add_category', class: 'button button--create' .release-creatable> = link_to create_catalog_products_path, class: 'release-creatable__icon-set' do = inline_svg('workarea/admin/icons/products.svg', class: 'release-creatable__type-icon svg-icon svg-icon--extra-large') = inline_svg('workarea/admin/icons/add_circle.svg', class: 'release-creatable__add-icon svg-icon svg-icon--small svg-icon--green') = link_to t('workarea.admin.releasables.creatable.add_product'), create_catalog_products_path, id: 'add_product', class: 'button button--create' .release-creatable> = link_to create_content_pages_path, class: 'release-creatable__icon-set' do = inline_svg('workarea/admin/icons/pages.svg', class: 'release-creatable__type-icon svg-icon svg-icon--extra-large') = inline_svg('workarea/admin/icons/add_circle.svg', class: 'release-creatable__add-icon svg-icon svg-icon--small svg-icon--green') = link_to t('workarea.admin.releasables.creatable.add_page'), create_content_pages_path, id: 'add_page', class: 'button button--create' .release-creatable> = link_to create_pricing_discounts_path, class: 'release-creatable__icon-set' do = inline_svg('workarea/admin/icons/pricing_discount.svg', class: 'release-creatable__type-icon svg-icon svg-icon--extra-large') = inline_svg('workarea/admin/icons/add_circle.svg', class: 'release-creatable__add-icon svg-icon svg-icon--small svg-icon--green') = link_to t('workarea.admin.releasables.creatable.add_discount'), create_pricing_discounts_path, id: 'add_discount', class: 'button button--create' .view__container .section %h2.view__heading = t('workarea.admin.releasables.or_find_something_to_release') .browsing-controls.browsing-controls--with-divider.browsing-controls--center{ class: ('browsing-controls--filters-displayed' unless @search.toggle_facets?) } = form_tag release_releasables_path(@release), method: 'get', id: 'releasable_search_form', class: 'browsing-controls__form' do = facet_hidden_inputs(@search.facets) .browsing-controls__sort .property.property--inline = label_tag 'sort', t('workarea.admin.search.sort_by'), class: 'property__name' = select_tag :sort, options_for_select(@search.sorts, selected: @search.sort), data: { form_submitting_control: '' } .browsing-controls__search .search-form = text_field_tag :q, params[:q], class: 'search-form__input', id: 'search_products', title: t('workarea.admin.search.keywords'), placeholder: t('workarea.admin.search.keywords') = submit_tag 'search_releasables', class: 'search-form__button' - if @search.facets.present? - @search.facets.each do |facet| = render "workarea/admin/facets/#{facet.type}", facet: facet - if @search.toggle_facets? .browsing-controls__toggle-filters %button.text-button{ type: 'button', data: { toggle_filters: '' } }= t('workarea.admin.search.show_filters') = render 'workarea/admin/facets/applied', search: @search, reset_path: release_releasables_path(@release) - if @search.results.any? .grid.grid--auto.grid--flush.grid--center - @search.results.each do |result| .grid__cell= render_summary_for(result) - if @search.results.total_pages > 1 = render 'workarea/admin/shared/pagination', collection: @search.results