Sha256: 748a2b303d4a6538ab51ca9ce643adbd12db1056f35a101a8567601d02b66a26
Contents?: true
Size: 1.67 KB
Versions: 8
Compression:
Stored size: 1.67 KB
Contents
- content_for(:title) { @title } - error_keys = @account_presenter.errors.keys - login_error = error_keys.include?(:login) - password_error = error_keys.include?(:password) - name_error = error_keys.include?(:name) .authorization = form_for @account_presenter, as: :account, url: "/auther/session" do |form| .small-12 .row h1.authorization-label = @label .row .small-8 .row = content_tag :div, class: render_foundation_error(login_error, classes: %w(small-6 columns)) = form.label :login, "Login:", class: "inline right" = content_tag :div, class: render_foundation_error(login_error, classes: %w(small-6 columns)) = form.text_field :login = content_tag(:small, @account_presenter.errors.full_messages.first, class: "error") if login_error .row .small-8 .row = content_tag :div, class: render_foundation_error(password_error, classes: %w(small-6 columns)) = form.label :password, "Password:", class: "inline right" = content_tag :div, class: render_foundation_error(password_error, classes: %w(small-6 columns)) = form.password_field :password = content_tag(:small, @account_presenter.errors.full_messages.first, class: "error") if password_error .row .small-8 .row .small-6.columns = form.label :name, "Account:", class: "inline right" .small-6.columns = form.select :name, @account_options .row .small-8 .row .small-6.right = form.submit "Login", class: "button round expand"
Version data entries
8 entries across 8 versions & 1 rubygems