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.45 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.44 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.43 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.42 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.41 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.40 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.39 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.38 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.37 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.36 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.35 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.34 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.33 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.32 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.31 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.30 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.29 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.28 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.27 app/views/workarea/admin/content_assets/new.html.haml
workarea-admin-3.4.26 app/views/workarea/admin/content_assets/new.html.haml