Sha256: 3e076300992d315e4e86c39c7c6cc21b7310f0c5cd96c20e5408205d9ec39baf

Contents?: true

Size: 1.09 KB

Versions: 6

Compression:

Stored size: 1.09 KB

Contents

- content_for(:title) { @title }

.auther-page
  .auther-content
    h1.auther-title = "Authorization"

    = form_for @account, as: :account, url: "/auther/session", html: {class: "auther-credentials"} do |form|
      div class=%(auther-form-section #{"auther-error" if @account.error?(:login)})
        = form.label :login, "Login:", class: "auther-form-label"
        .auther-form-group
          = form.text_field :login, class: "auther-form-input"
          small.auther-error-message = @account.error_message(:login)

      div class=%(auther-form-section #{"auther-error" if @account.error?(:password)})
        = form.label :password, "Password:", class: "auther-form-label"
        .auther-form-group
          = form.password_field :password, class: "auther-form-input"
          small.auther-error-message = @account.error_message(:password)

      .auther-form-section
        = form.label :name, "Account:", class: "auther-form-select-label"
        .auther-form-group
          = form.select :name, @account_options, {}, class: "auther-form-select"

      = form.submit "Login", class: "auther-button"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
auther-7.1.0 app/views/auther/session/new.html.slim
auther-7.0.0 app/views/auther/session/new.html.slim
auther-6.1.0 app/views/auther/session/new.html.slim
auther-6.0.0 app/views/auther/session/new.html.slim
auther-5.0.1 app/views/auther/session/new.html.slim
auther-5.0.0 app/views/auther/session/new.html.slim