Sha256: 217c56e48069012b5722d7cba0794939b162f854ad0336595506d74f5965749c

Contents?: true

Size: 1.93 KB

Versions: 62

Compression:

Stored size: 1.93 KB

Contents

- @page_title = t('workarea.admin.tax_categories.edit.title', category: @category.name)

.view
  .view__header
    .grid.grid--middle.grid--right
      .grid__cell.grid__cell--50
        .view__heading
          = link_to_index_for(@category)
          %h1= link_to @category.name, url_for(@category)
      .grid__cell.grid__cell--25
        = render_aux_navigation_for(@category)

  .view__container
    = render_cards_for(@category, :attributes)

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

    = form_tag tax_category_path(@category), method: :patch, id: 'tax_category_form', data: { unsaved_changes: '' } do

      .section

        .property.property--required
          = label_tag 'category_name', t('workarea.admin.tax_categories.fields.name'), class: 'property__name'
          = text_field_tag 'category[name]', @category.name, class: 'text-box text-box--i18n', required: true

        .property.property--required
          = label_tag 'category_code', t('workarea.admin.tax_categories.fields.tax_code'), class: 'property__name'
          = text_field_tag 'category[code]', @category.code, class: 'text-box', required: true

        .grid
          .grid__cell.grid__cell--50.grid__cell--25-at-medium
            .property
              = label_tag 'category_updated_at', t('workarea.admin.fields.updated_at'), class: 'property__name'
              = local_time(@category.updated_at)
          .grid__cell.grid__cell--50.grid__cell--25-at-medium
            .property
              = label_tag 'category_created_at', t('workarea.admin.fields.created_at'), class: 'property__name'
              = local_time(@category.created_at)

      .workflow-bar
        .grid.grid--auto.grid--right.grid--middle
          .grid__cell= button_tag t('workarea.admin.tax_categories.edit.button'), value: 'save_tax_category', class: 'workflow-bar__button workflow-bar__button--update'

Version data entries

62 entries across 62 versions & 1 rubygems

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