Sha256: 6809d748a5369bae12313bb47f63de70857d033147a0f7a32a7839e838ec298a

Contents?: true

Size: 1.78 KB

Versions: 28

Compression:

Stored size: 1.78 KB

Contents

- @page_title = t('workarea.admin.segments.edit.page_title', name: @segment.name)

.segment.view
  .view__header
    .grid.grid--center
      .grid__cell.grid__cell--50
        .view__heading
          = link_to_index_for(@segment)
          %h1= link_to @segment.name, url_for(@segment)

  .view__container
    = render_cards_for(@segment, :attributes)

  .view__container.view__container--narrow
    - @segment.errors.full_messages.each do |message|
      = render_message 'error', message

    = form_tag segment_path(@segment), method: 'patch', data: { unsaved_changes: '' } do
      .section
        .property.property--required
          = label_tag 'segment[name]', t('workarea.admin.fields.name'), class: 'property__name'
          = text_field_tag 'segment[name]', @segment.name, class: 'text-box', required: true

        .property
          = label_tag 'segment_tag_list', t('workarea.admin.fields.tags'), class: 'property__name'
          = text_field_tag  'segment[tag_list]', @segment.tag_list, class: 'text-box'
          %span.property__note= t('workarea.admin.form.csv_field_note')

        .grid
          .grid__cell.grid__cell--33.grid__cell--25-at-medium
            .property
              = label_tag 'segment_updated_at', t('workarea.admin.fields.updated_at'), class: 'property__name'
              = local_time(@segment.updated_at)
          .grid__cell.grid__cell--33.grid__cell--25-at-medium
            .property
              = label_tag 'segment_created_at', t('workarea.admin.fields.created_at'), class: 'property__name'
              = local_time(@segment.created_at)

      .workflow-bar
        .grid.grid--auto.grid--right.grid--middle
          .grid__cell= button_tag t('workarea.admin.form.save_changes'), value: 'save_segment', class: 'workflow-bar__button workflow-bar__button--update'

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-admin-3.5.27 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.26 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.25 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.23 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.22 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.21 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.20 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.19 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.18 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.17 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.16 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.15 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.14 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.13 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.12 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.11 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.10 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.9 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.8 app/views/workarea/admin/segments/edit.html.haml
workarea-admin-3.5.7 app/views/workarea/admin/segments/edit.html.haml