<%- if user_signed_in? %>
Create Account
<%= simple_form_for @account, html: {class: 'form-horizontal multiple_tags', role: 'form'} do |account| %> <%= account.error_notification %> <%= render 'shared/validation', object: account.object %>
<%= account.input_field :name, required: true, autofocus: true, :class => "form-control", :placeholder => "Account Name" %>
<%= account.input_field :firstname, required: true, :class => "form-control", :placeholder => "First Name" %>
<%= account.input_field :lastname, required: true, :class => "form-control", :placeholder => "Last Name" %>
<%= account.input_field :username, required: true, :class => "form-control", :placeholder => "User Name" %>
<%= account.input_field :subdomain, required: true, :class => "form-control", :placeholder => "Subdomain" %>
<%= account.submit :class => "btn btn-primary" %>
<% end %>
<%- else %>
Create Account
<%= simple_form_for @account, html: {class: 'form-horizontal multiple_tags', role: 'form'} do |account| %> <%= account.error_notification %> <%= render 'shared/validation', object: account.object %>
<%= account.input_field :name, label: 'Account Name', :class => "form-control", :placeholder => "Account Name" %>
<%= account.input_field :firstname, required: true, :class => "form-control", :placeholder => "First Name" %>
<%= account.input_field :lastname, required: true, :class => "form-control", :placeholder => "Last Name" %>
<%= account.input_field :username, required: true, :class => "form-control", :placeholder => "User Name" %>
<%= account.simple_fields_for :owner do |owner| %>
<%= render 'mtdevise/account/users/form', :user => owner %> <% end %>
<%= account.input_field :subdomain, required: true, :class => "form-control", :placeholder => "Subdomain" %>
<%= account.submit :class => "btn btn-primary" %>
<% end %>
<% end %>