Sha256: 2b55c924f9f0f31c851f0d34f7cffec23873374ef9da58a166e4883bb76e4304

Contents?: true

Size: 1.45 KB

Versions: 62

Compression:

Stored size: 1.45 KB

Contents

- @page_title = t('workarea.admin.help_assets.index.title')

.view
  .view__header
    .view__heading
      = link_to "↑ #{t('workarea.admin.help_assets.index.all_help')}", help_index_path, class: 'view__dashboard-button'
      %h1= t('workarea.admin.help_assets.index.title')
      %strong= t('workarea.admin.help_assets.index.assets', count: @help_assets.total_count)

  .view__container
    = form_tag help_assets_path, method: 'post', multipart: true, data: { unsaved_changes: '' } do
      .property
        = label_tag 'help_asset[file]', t('workarea.admin.help_assets.index.add_an_asset'), class: 'property__name'
        = file_field_tag 'help_asset[file]', required: true
        = button_tag t('workarea.admin.actions.save'), value: 'save_help_asset', class: 'button'

    %table
      %thead
        %tr
          %th= t('workarea.admin.help_assets.index.preview')
          %th= t('workarea.admin.help_assets.index.file')
          %th= t('workarea.admin.help_assets.index.link_copy_and_paste')
      %tbody
        - @help_assets.each do |asset|
          %tr
            %td
              - if !asset.image?
                = t('workarea.admin.help_assets.index.not_applicable')
              - else
                = link_to asset.url do
                  = image_tag asset.url
            %td= asset.file.name
            %td= link_to asset.url, asset.url

    - if @help_assets.total_pages > 1
      = render 'workarea/admin/shared/pagination', collection: @help_assets

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.5.27 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.5.26 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.4.45 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.5.25 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.5.23 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.4.44 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.5.22 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.4.43 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.5.21 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.4.42 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.5.20 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.4.41 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.5.19 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.4.40 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.5.18 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.4.39 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.5.17 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.4.38 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.5.16 app/views/workarea/admin/help_assets/index.html.haml
workarea-admin-3.4.37 app/views/workarea/admin/help_assets/index.html.haml