Sha256: 270b3be2a81447c789b027c656ed4b65da84c783336aa46dfcf7cd55c7390ac6

Contents?: true

Size: 1.02 KB

Versions: 12

Compression:

Stored size: 1.02 KB

Contents

<% content_for(:title) { @title } %>

<div class="auther">
  <div class="body">
    <h1 class="label">Authorization</h1>

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

      <%= content_tag :div, class: %(section #{"error" if @account.error?(:password)}) do %>
        <div class="group">
          <%= form.password_field :password, class: "input", placeholder: "Password" %>
          <small class="message"><%= @account.error_message(:password) %></small>
        </div>
      <% end %>

      <div class="section">
        <%= form.select :name, @account_options, {}, class: "select" %>
      </div>

      <%= form.submit "Login", class: "button" %>
    <% end %>
  </div>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
auther-17.0.0 app/views/auther/session/new.html.erb
auther-16.10.0 app/views/auther/session/new.html.erb
auther-16.9.0 app/views/auther/session/new.html.erb
auther-16.8.0 app/views/auther/session/new.html.erb
auther-16.7.0 app/views/auther/session/new.html.erb
auther-16.6.0 app/views/auther/session/new.html.erb
auther-16.5.0 app/views/auther/session/new.html.erb
auther-16.4.0 app/views/auther/session/new.html.erb
auther-16.3.0 app/views/auther/session/new.html.erb
auther-16.2.0 app/views/auther/session/new.html.erb
auther-16.1.0 app/views/auther/session/new.html.erb
auther-16.0.0 app/views/auther/session/new.html.erb