Sha256: b80705f175b845889a2e2f08c1b541606eff6bb87ca72f3071671013b23216c4
Contents?: true
Size: 787 Bytes
Versions: 2
Compression:
Stored size: 787 Bytes
Contents
= simple_form_for(resource, html: {class: 'col sl12'} ) do |f| / - if parent? / = render @parent = f.error_notification .form-inputs .row = f.input :name, class: :validate, disabled: @disabled, autofocus: true .row .input-field.col.s12 %label{ style: "margin-top: -20px"}= t('.account_active') .switch %label = t(:passive) =f.check_box :active, disabled: @disabled %span.lever = t(:active) .row .col.sl12{ style: "margin-bottom: 30px"} %hr - unless @disabled .row .form-actions.right-align = f.button :submit, t(".#{params[:action]}.submit") - if %w{ show edit }.include? params[:action] :coffeescript $('form label').addClass('active')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oxen_account-0.1.1 | app/views/accounts/_form.html.haml |
oxen_account-0.1.0 | app/views/accounts/_form.html.haml |