summaryrefslogtreecommitdiff
path: root/users/app/views/users/_form.html.haml
blob: cb511751e8d864cf4111ffac6748a2a0f26701ee (plain)
1
2
3
4
5
6
7
8
9
10
11
- only = local_assigns[:only]
- html = {:class => 'form-horizontal user form ' + (@user.new_record? ? 'new' : 'edit')}
= simple_form_for @user, :validate => true, :format => :json, :html => html do |f|
  %legend
    = t(only || :signup_message)
  = yield
  .pull-right
    = f.button :submit
    - unless only
      = link_to t(:cancel), root_url, :class => :btn
  .clearfix