= simple_form_for @tenant do |f|
  .row-fluid
    .span6
      = f.input :subdomain, :wrapper => :append, :class => 'inline' do
        = f.input_field :subdomain, 'data-autofocus' => true, :class => 'span6', :style => 'text-align: right'
        .add-on .bookyt.ch
      = f.input :db_name, :readonly => !@tenant.new_record?, :placeholder => 'wie subdomain'

  - if @tenant.new_record?
    = simple_fields_for @user do |u|
      = u.input :role_texts, :as => :hidden
      .row-fluid
        .span6= u.input :email
        .span6= u.input :login if u.object.respond_to? :login
      .row-fluid
        .span6= u.input :password, :input_html => {:autocomplete => "off"}
        .span6= u.input :password_confirmation

  .form-actions
    = f.button :submit

= simple_form_for @tenant do |f|
  .row-fluid
    .span6
      = f.input :subdomain, :wrapper => :append, :class => 'inline' do
        = f.input_field :subdomain, 'data-autofocus' => true, :class => 'span6', :style => 'text-align: right'
        .add-on .bookyt.ch
    .span6
      = f.input :db_name, :readonly => !@tenant.new_record?, :placeholder => 'wie subdomain'

  - if @tenant.new_record?
    = simple_fields_for @user do |u|
      = u.input :role_texts, :as => :hidden
      .row-fluid
        .span6= u.input :email
        .span6= u.input :login if u.object.respond_to? :login
      .row-fluid
        .span6= u.input :password, :input_html => {:autocomplete => "off"}
        .span6= u.input :password_confirmation

  .form-actions
    = f.button :submit

Fix markup for admin tenant view.
Fix markup for admin tenant view.
