summaryrefslogtreecommitdiff
path: root/app/views/users/_form.html.haml
blob: 90d0e02cbac8c009ab75eb34b95e46bada474a8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- if @parent && @parent.class == Tenant
  = simple_form_for([@parent, @user]) do |f|
    = f.error_notification

    = render "form_core", :f => f

    .form-actions
      = f.button :submit, conditional_t('users.form.submit')
- else
  = simple_form_for(@user) do |f|
    = f.error_notification

    = render "form_core", :f => f

    .form-actions
      = f.button :submit, conditional_t('users.form.submit')