Sha256: c12f9ab8db6e6e8d2630df38bd5987cd21ee729ed0316c1204bc2e8a285d9fb0

Contents?: true

Size: 1.32 KB

Versions: 4

Compression:

Stored size: 1.32 KB

Contents

- @page_title = _('Sign up')

.devise
  .devise__form
    .devise__form__wrapper
      = form_for(resource, as: resource_name, url: user_registration_path) do |f|
        - if resource.errors.any?
          .error
            %h2= format(n_('An error prevented your account from being created:',
                            '%<nb>i errors prevented your account from being created:',
                            resource.errors.count), nb: resource.errors.count)
            %ul
              - resource.errors.full_messages.each do |message|
                %li= message
        .field
          = f.label :username
          .field-input= f.text_field :username, autofocus: true, autocomplete: 'email'
        .field
          = f.label :email
          .field-input= f.email_field :email, autocomplete: 'email'
        .field
          = f.label :password
          .field-input
            = f.password_field :password, autocomplete: 'off'
            - if @minimum_password_length
              .field-hint= format(_('%<number>i characters minimum'), number: @minimum_password_length)
        .field
          = f.label _('Confirmation')
          .field-input= f.password_field :password_confirmation, autocomplete: 'off'

        .actions
          = f.submit _('Sign up'), class: 'btn btn--brand btn--block'

  = render 'elabs/auth/shared/links'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
elabs-4.0.0 app/views/elabs/auth/registrations/new.html.haml
elabs-3.0.0 app/views/elabs/auth/registrations/new.html.haml
elabs-2.0.0 app/views/elabs/auth/registrations/new.html.haml
elabs-2.0.0.pre app/views/elabs/auth/registrations/new.html.haml