<commit_before><div class="portlet box green">
  <%= render "shared/portlet_title", title: t("users.title.user_info") %>

  <div class="portlet-body form">
    <%= simple_form_for @user, html: { class: "horizontal-form" }, validate: true  do |f| %>
      <%= f.error_notification %>
      <%= f.error :base %>
      <div class="form-body">
        <div class="row">
          <div class="col-md-6">
            <% if params[:action] == "new" %>
              <%= f.input :email %>
            <% end %>
            <%= f.input :name %>
            <%#= f.input :surname %>
            <%= f.input :branch_id, as: :select, collection: current_patron.branches, include_blank: false, selected: current_user.branch_id %>
          </div>
          <div class="col-md-6">
            <%= f.input :time_zone, selected: current_user.time_zone, input_html: { class: "country_select" } %>
            <%= f.input :language, as: :select, collection: Nimbos::Listitem.languages.map { |t| [t.name, t.code] }, include_blank: false, selected: current_user.language %>
          </div>
        </div>
        <% if current_user.has_role? :admin %>
          <div class="row">
            <div class="col-md-6">
              <%= f.association :roles, as: :check_boxes %>
            </div>
            <div class="col-md-6">
              <%= f.input :user_status, as: :select, collection: Nimbos::User.user_status.map { |k| [k, k] }, include_blank: false %>
            </div>
          </div>
        <% end %>
      </div>
      <div class="form-actions">
        <%= f.button :submit, t("users.action.save"), class: "btn btn-info" %>
        <a href="#" class="btn"><%= t("simple_form.helpers.defaults.cancel") %></a><commit_msg>superadmin removed from user settings page<commit_after><div class="portlet box green">
  <%= render "shared/portlet_title", title: t("users.title.user_info") %>

  <div class="portlet-body form">
    <%= simple_form_for @user, html: { class: "horizontal-form" }, validate: true  do |f| %>
      <%= f.error_notification %>
      <%= f.error :base %>
      <div class="form-body">
        <div class="row">
          <div class="col-md-6">
            <% if params[:action] == "new" %>
              <%= f.input :email %>
            <% end %>
            <%= f.input :name %>
            <%#= f.input :surname %>
            <%= f.input :branch_id, as: :select, collection: current_patron.branches, include_blank: false, selected: current_user.branch_id %>
          </div>
          <div class="col-md-6">
            <%= f.input :time_zone, selected: current_user.time_zone, input_html: { class: "country_select" } %>
            <%= f.input :language, as: :select, collection: Nimbos::Listitem.languages.map { |t| [t.name, t.code] }, include_blank: false, selected: current_user.language %>
          </div>
        </div>
        <% if current_user.has_role? :admin %>
          <div class="row">
            <div class="col-md-6">
              <%= f.association :roles, as: :check_boxes, collection: Nimbos::Role.where.not(name: 'superadmin') %>
            </div>
            <div class="col-md-6">
              <%= f.input :user_status, as: :select, collection: Nimbos::User.user_status.map { |k| [k, k] }, include_blank: false %>
            </div>
          </div>
        <% end %>
      </div>
      <div class="form-actions">
        <%= f.button :submit, t("users.action.save"), class: "btn btn-info" %>
        <a href="#" class="btn"><%= t("simple_form.helpers.defaults.cancel") %></a>
{'fraction_non_alphanumeric': 0.18659471740982675, 'fraction_numerical': 0.002272081794944618, 'mean_word_length': 2.282385834109972, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, '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': '7381542', 'n_tokens_mistral': 1199, 'n_tokens_neox': 1126, 'n_words': 239}