Sha256: d19dbf48f831bd6d648ab9e6a64f9508b25fd69280315ed41f9227e9eb6d6e65
Contents?: true
Size: 1.83 KB
Versions: 22
Compression:
Stored size: 1.83 KB
Contents
- title t('.title', type: @content_type.name.capitalize) - content_for :actions do - if @content_type.localized? = locale_picker_link - if can_edit_public_submission_accounts?(@content_type) = link_to edit_public_submission_accounts_path(current_site, @content_type.slug), class: 'btn btn-primary btn-sm' do i.fa.fa-pencil | = t('.edit_notification_settings') = link_to new_content_entry_path(current_site, @content_type.slug), class: 'btn btn-primary btn-sm' do i.fa.fa-plus | = t('.new') - if @content_type.filter_fields.present? .row .col-md-6 = help @content_type.description .col-md-6 .search-bar = form_tag content_entries_path(current_site, @content_type.slug), method: :get do .form-group = hidden_field_tag :group, params[:group] = hidden_field_tag :where, params[:where] = text_field_tag :q, params[:q], placeholder: t('.search_placeholder'), class: 'form-control' i.fa.fa-search.icon - else = help @content_type.description - if @content_type.groupable? .nav-container ul.nav.nav-tabs role='tablist' li class="#{'active' if params[:group].nil?}" = link_to t('.group_by.all'), content_entries_path(current_site, @content_type.slug, query: params[:query]) - each_content_entry_group(@content_type) do |group| li class="#{'active' if params[:group] == group[:name]}" = link_to group[:name], group[:url] = render 'list', content_type: @content_type, entries: @content_entries - unless empty_collection?(@content_entries) .row .col-md-12 br p.text-right = link_to export_content_entries_path(current_site, @content_type.slug, :csv), class: 'btn btn-primary btn-sm' do i.fa.fa-download | = t('.download')
Version data entries
22 entries across 22 versions & 1 rubygems