Sha256: 59e5c197bfff10831fb4e0d2d229b1e8c908136b027a00aacb0b1733eb9c8e48
Contents?: true
Size: 1.29 KB
Versions: 11
Compression:
Stored size: 1.29 KB
Contents
- content_for(:header_title) { "Show handler: #{@handler.name}" } - content_for(:header_right) do = bb_btn [:update_groups_cache, @handler], "Update groups", method: :post, sm: true, icon: "refresh", data: {confirm: "Are you sure?"} = bb_panel "Filter" do = simple_search_form_for @ransack, url: @handler do |f| .row .col-md-4= f.input :name_cont, autofocus: true .col-md-4= f.input :with_translations, label: "With translations", collection: with_translations_collection .col-md-4= f.input :with_missing_translations, label: "Missing translations", collection: with_missing_translations_collection = f.button :submit, "Filter", class: ["btn", "btn-primary"] = bb_panel @handler.name, table: true do %thead %th Group %th.text-right Translations %th.text-right.hidden-xs-down Finished %th.text-right.hidden-md-down Unfinished %tbody - @groups.each do |group| %tr %td= link_to group.name, handler_group_path(@handler, group) %td.text-right= group.handler_translations.count %td.text-right.hidden-xs-down= group.handler_translations.select(&:finished?).length %td.text-right.hidden-md-down= group.handler_translations.select(&:unfinished?).length - if @groups.empty? %tr %td.error{colspan: 4} No groups were found.
Version data entries
11 entries across 11 versions & 1 rubygems