Sha256: 87635f25cb3a6680074fcde9508fb434072176d38f9f32236ccc15933a6532ce

Contents?: true

Size: 1.49 KB

Versions: 34

Compression:

Stored size: 1.49 KB

Contents

- @page_title = t('workarea.admin.content_assets.new.page_title')

.view
  .view__header
    .grid.grid--middle.grid--center
      .grid__cell.grid__cell--50
        .view__heading
          = link_to_index_for(@asset)
          %h1= t('workarea.admin.content_assets.new.title')

  .view__container

    - if @asset.errors.present?
      - @asset.errors.full_messages.each do |message|
        = render_message 'error', message

    = form_tag content_assets_path, method: 'post', multipart: true, id: 'asset_form', data: { unsaved_changes: '' } do

      .section

        .property
          = label_tag 'asset_name', t('workarea.admin.fields.name'), class: 'property__name'
          = text_field_tag 'asset[name]', @asset.name, class: 'text-box'

        .property
          = label_tag 'asset[file]', t('workarea.admin.fields.file'), class: 'property__name'
          = file_field_tag 'asset[file]', required: true

        .property
          = label_tag 'asset_tag_list', t('workarea.admin.fields.tags'), class: 'property__name'
          = text_field_tag 'asset[tag_list]', @asset.tag_list, class: 'text-box'
          %span.property__note= t('workarea.admin.content_assets.new.tags_note')

      .workflow-bar
        .grid.grid--auto.grid--right.grid--middle
          .grid__cell= button_tag t('workarea.admin.content_assets.new.create_asset'), value: 'create_asset', class: 'workflow-bar__button workflow-bar__button--create', data: { disable_with: t('workarea.admin.content_assets.new.create_asset_disabled_text') }

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
workarea-admin-3.4.25 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.24 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.23 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.22 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.21 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.20 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.19 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.18 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.17 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.16 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.15 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.14 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.13 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.12 app/views/workarea/admin/content_assets/new.html.haml