<commit_before><%unless @user.new_record?%>
	<b>Name</b>
<%end%>

<% errors = @user.errors[:login_id] %>
<% validation_class = errors.empty? ? {} : 'error' %>
<div class="control-group <%= validation_class %>">
  <%= f.label :login_id, 'Username', class: 'control-label' %>
  <div class="controls">
    <%= f.text_field :login_id, readonly: !@user.new_record? %>
    <span class="help-inline">
      <%= errors.join (', ') %>
    </span>
  </div>
</div>

<% unless @user.new_record? %>

  <% errors = @user.errors[:first_name] %>
  <% validation_class = errors.empty? ? {} : 'error' %>
  <div class="control-group <%= validation_class %>">
    <%= f.label :first_name, class: 'control-label' %>
    <div class="controls">
      <%= f.text_field :first_name %>
      <span class="help-inline">
        <%= errors.join (', ') %>
      </span>
    </div>
  </div>

  <% errors = @user.errors[:last_name] %>
  <% validation_class = errors.empty? ? {} : 'error' %>
  <div class="control-group <%= validation_class %>">
    <%= f.label :last_name, class: 'control-label' %>
    <div class="controls">
      <%= f.text_field :last_name %>
        <span class="help-in-line">
          <%=errors.join (', ')%>
      </span>
    </div>
  </div>

<%end%>

<% errors = @user.errors[:password] %>
<% validation_class = errors.empty? ? {} : 'error' %>
<div class="control-group <%= validation_class %>">
  <%= f.label :password, password_label(@user), class:'control-label' %>
  <div class="controls">
    <%= f.password_field :password %>
      <span class="help-in-line">
        <%=errors.join (', ')%>
    </span>
  </div>
</div>

<% errors = @user.errors[:password_confirmation] %>
<% validation_class = errors.empty? ? {} : 'error' %>
<div class="control-group  <%= validation_class %>">
  <%= f.label :password_confirmation, class:'control-label' %>
  <div class="controls">
    <%= f.password_field :password_confirmation %>
      <span class="help-in-line">
        <%=errors.join (', ')%>
    </span>
  </div>
</div>

<%unless @user.new_record?%>

  <b>Contact Information</b>

  <%errors = @user.errors[:email]%>
  <%validation_class = errors.empty? ? {} : 'error'%>
  <div class="control-group <%= validation_class%>">
    <%= f.label :email, class:'control-label' %>
    <div class="controls">
      <%= f.text_field :email %>
        <span class="help-in-line">
          <%=errors.join (', ')%>
        </span>
    </div>
  </div>

  <%errors = @user.errors[:institution_id]%>
  <%validation_class = errors.empty? ? {} : 'error'%>
  <div class="control-group <%= validation_class%>">
    <%= f.label :institution_id, class: "control-label" %>
    <div class="controls">
      <%= f.select( :institution_id, @institution_list, {prompt: 'Select Institution'})%>
        <span class="help-inline">
          <%=errors.join (', ')%>
      </span>
    </div>
  </div>

<%end%>

<%unless @user.new_record?%>
	<b>DMP Options</b>

  <div class="control-group">
  	<%label_tag :my_roles, 'My Roles', class:'control-label'%>
  	<div class="controls">
  		<%= @roles %>
  	</div>
  </div>

<%end%>








<commit_msg>Added email and institution dropdowns to Create account page<commit_after><%unless @user.new_record?%>
	<b>Name</b>
<%end%>

<% errors = @user.errors[:login_id] %>
<% validation_class = errors.empty? ? {} : 'error' %>
<div class="control-group <%= validation_class %>">
  <%= f.label :login_id, 'Username', class: 'control-label' %>
  <div class="controls">
    <%= f.text_field :login_id, readonly: !@user.new_record? %>
    <span class="help-inline">
      <%= errors.join (', ') %>
    </span>
  </div>
</div>

<% unless @user.new_record? %>

  <% errors = @user.errors[:first_name] %>
  <% validation_class = errors.empty? ? {} : 'error' %>
  <div class="control-group <%= validation_class %>">
    <%= f.label :first_name, class: 'control-label' %>
    <div class="controls">
      <%= f.text_field :first_name %>
      <span class="help-inline">
        <%= errors.join (', ') %>
      </span>
    </div>
  </div>

  <% errors = @user.errors[:last_name] %>
  <% validation_class = errors.empty? ? {} : 'error' %>
  <div class="control-group <%= validation_class %>">
    <%= f.label :last_name, class: 'control-label' %>
    <div class="controls">
      <%= f.text_field :last_name %>
        <span class="help-in-line">
          <%=errors.join (', ')%>
      </span>
    </div>
  </div>

<%end%>

<% errors = @user.errors[:password] %>
<% validation_class = errors.empty? ? {} : 'error' %>
<div class="control-group <%= validation_class %>">
  <%= f.label :password, password_label(@user), class:'control-label' %>
  <div class="controls">
    <%= f.password_field :password %>
      <span class="help-in-line">
        <%=errors.join (', ')%>
    </span>
  </div>
</div>

<% errors = @user.errors[:password_confirmation] %>
<% validation_class = errors.empty? ? {} : 'error' %>
<div class="control-group  <%= validation_class %>">
  <%= f.label :password_confirmation, class:'control-label' %>
  <div class="controls">
    <%= f.password_field :password_confirmation %>
      <span class="help-in-line">
        <%=errors.join (', ')%>
    </span>
  </div>
</div>

<%unless @user.new_record?%>
  <b>Contact Information</b>
<%end%>

  <%errors = @user.errors[:email]%>
  <%validation_class = errors.empty? ? {} : 'error'%>
  <div class="control-group <%= validation_class%>">
    <%= f.label :email, class:'control-label' %>
    <div class="controls">
      <%= f.text_field :email %>
        <span class="help-in-line">
          <%=errors.join (', ')%>
        </span>
    </div>
  </div>

  <%errors = @user.errors[:institution_id]%>
  <%validation_class = errors.empty? ? {} : 'error'%>
  <div class="control-group <%= validation_class%>">
    <%= f.label :institution_id, class: "control-label" %>
    <div class="controls">
      <%= f.select( :institution_id, @institution_list, {prompt: 'Select Institution'})%>
        <span class="help-inline">
          <%=errors.join (', ')%>
      </span>
    </div>
  </div>


<%unless @user.new_record?%>
	<b>DMP Options</b>

  <div class="control-group">
  	<%label_tag :my_roles, 'My Roles', class:'control-label'%>
  	<div class="controls">
  		<%= @roles %>
  	</div>
  </div>

<%end%>









{'fraction_non_alphanumeric': 0.2276500638569604, 'fraction_numerical': 0.0, 'mean_word_length': 3.326657458563536, 'pattern_counts': {'":': 0, '<': 211, '<?xml version=': 0, '>': 211, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7371447', 'n_tokens_mistral': 2420, 'n_tokens_neox': 2204, 'n_words': 384}