%= form_for @user, url: (@user.new? ? CartoDB.url(self, 'create_organization_user', user: current_user) : CartoDB.url(self, 'update_organization_user', params: { id: @user.username }, user: current_user)), :html => {:class => 'Form js-organizationUserForm CDB-Text'} do |f| %> <%= f.hidden_field :private_tables_enabled %> <%= hidden_field_tag :show_account_settings_flash, true %> <%= csrf_meta_tags %>
Username not valid
<% elsif @user.new? %>Once you choose the username, you won't be able to change it
<% end %>Email not valid
<% elsif @user.new? %>We encourage you to choose an email from your organization
<% end %><%= @user.errors[:password].first%>
<% end %>Build and read
<% if @user.organization_owner? %> The organization owner cannot be a viewer user. <% elsif admin_editing_admin %> Organization admins can only be builder users. <% elsif @organization.viewer_seats == 0 %> You don't have viewer seats activated. Contact support for more information. <% else %> Only read <% end %>
<% if current_user.organization_owner? %> User has permission to manage users and groups and send notifications <% else %> Only the organization owner can assign administrator rights <% end %>
If you change the Multi-factor authentication, it will be available only for this user. When you change the status, the user will be logged out and redirected to the login page.