.row
  .small-12.columns== @page.body
.row
  .large-8.large-offset-1.columns
    = form_for @new_supplier do |f|
      = f.row :supplier_name
        .large-4.columns= f.label :supplier_name
        .large-6.columns= f.text_field :supplier_name, autofocus: true
        .large-2.columns= f.error_message :supplier_name
      = f.row :email
        .large-4.columns= f.label :email
        .large-6.columns
          - if @new_supplier.current_employee.present?
            = @new_supplier.current_employee.email
          - else
            = f.email_field :email
        .large-2.columns= f.error_message :email
      - if @new_supplier.current_employee.present?
        .row
          .large-12.columns
            - new_supplier_button_text = t 'new_supplier.already_signed_in_new_restaurant_button_text', supplier: Supplier.model_name.human
            p== t 'new_supplier.employee_already_signed_in', employee: Employee.model_name.human, new_supplier_button: capture(&->{f.submit class: 'button', value: new_supplier_button_text})
      - else
        = f.row :email
          .large-4.columns= f.label :email
          .large-6.columns= f.email_field :email
          .large-2.columns= f.error_message :email
        = f.row :password
          .large-4.columns= f.label :password
          .large-4.columns= f.password_field :password
          .large-4.columns= f.error_message :password
        = f.row :password_confirmation
          .large-4.columns= f.label :password_confirmation
          .large-4.columns= f.password_field :password_confirmation
          .large-4.columns= f.error_message :password_confirmation
        .form-actions
          = f.submit class: 'button'

.row
  .small-12.columns== @page.footer
= render "devise/links", resource_name: :employee
