Sha256: 448507f9cb54f7ff3ab13c2c4dbc5d6ab2abee16ee88d864ca6272854fb98475

Contents?: true

Size: 1.92 KB

Versions: 62

Compression:

Stored size: 1.92 KB

Contents

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

.view
  .view__header
    .view__heading
      %h1= t('workarea.admin.create_users.index.title')

  .view__container.view__container--narrow
    = form_tag new_create_user_path, method: 'get' do
      .section
        .grid.grid--center
          .grid__cell.grid__cell--40-at-medium
            .property.align-center
              = radio_button_tag 'type', 'customer', params[:type] == 'customer' || params[:type].blank?, title: t('workarea.admin.create_users.index.create_a_customer')
              = label_tag 'type_customer', t('workarea.admin.create_users.index.create_a_customer'), class: 'text text--bold'

            .property.align-center
              = radio_button_tag 'type', 'admin', params[:type] == 'admin', title: t('workarea.admin.create_users.index.create_an_administrator')
              = label_tag 'type_admin', t('workarea.admin.create_users.index.create_an_administrator'), class: 'text text--bold'

      .workflow-bar
        .grid.grid--middle
          .grid__cell.grid__cell--20
            - if @user.new_record?
              = link_to t('workarea.admin.form.cancel'), users_path, class: 'workflow-bar__button workflow-bar__button--delete'

          .grid__cell.grid__cell--60
            %ol.workflow-bar__steps
              %li.workflow-bar__step
                %strong 1) #{t('workarea.admin.create_users.workflow_bar.select_type')}
              - if @user.new_record?
                %li.workflow-bar__step 2) #{t('workarea.admin.create_users.workflow_bar.setup')}
              - else
                %li.workflow-bar__step 2) #{link_to t('workarea.admin.create_users.workflow_bar.setup'), new_create_user_path(@user)}

          .grid__cell.grid__cell--20
            .grid.grid--auto.grid--right.grid--middle
              .grid__cell= button_tag "#{t('workarea.admin.create_users.index.continue')} →", value: 'continue', class: 'workflow-bar__button'

Version data entries

62 entries across 62 versions & 1 rubygems

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