<%= render :partial => 'shared/logo', locals: { organization: @organization } %>
<% if params[:referrer] == "mapincartodb" %>
<% provider = CGI.parse(URI.parse(params[:after]).query)['provider'].first %>
<% if provider.present? %>
<% if provider == "data.gov" %>
Transform this dataset from Data.gov into an incredible map in seconds.
<% else %>
Transform this dataset from <%= provider %> into an incredible map in seconds.
<% end %>
<% else %>
Transform this dataset into an incredible map in seconds.
<% end %>
<% end %>
<%= form_for @user, url: CartoDB.url(self, 'signup_organization_user'), html: { class: "js-Loading-form" } do |f| %>
<% if @organization.auth_username_password_enabled || duplicated_username_prompt? %>
<%= f.text_field :username, class: "CDB-Size-medium Sessions-input topBorderRadius", placeholder: 'Username' %>
<% if !@user.errors[:username].blank? %>
!
<% end %>
<%= f.email_field :email, class: "CDB-Size-medium Sessions-input", placeholder: 'email', readonly: params[:invitation_token].present? || duplicated_username_prompt? || @user.google_sign_in %>
<% if !@user.errors[:email].blank? %>
!
<% end %>
<% end %>
<% if @oauth_fields.present? %>
<% @oauth_fields.each do |name, value| %>
<% end %>
<% elsif @organization.auth_username_password_enabled %>
<%= f.password_field :password, class: "CDB-Size-medium Sessions-input bottomBorderRadius", placeholder: 'Password' %>
<% if !@user.errors[:password].blank? %>
!
<% end %>
<% end %>
<% if @organization.auth_username_password_enabled || duplicated_username_prompt? %>
<% end %>
<%= f.check_box :terms, { checked: true } %>
<% end %>
<% unless @oauth_fields.present? %>
<% @oauth_configs.each do |config| %>
<%= render partial: config.button_template, locals: { config: config } %>
<% end %>
<% end %>
<% if @organization.auth_username_password_enabled %>
Please, use an email address belonging to this organization.
<% end %>