<commit_before><%= translatable_form_for [:admin, @budget], html: { class: "budgets-form" } do |f| %>
  <fieldset>
    <legend><%= t("admin.budgets.edit.info.budget_settings") %></legend>
    <%= render "shared/globalize_locales", resource: @budget %>
    <%= render "shared/errors", resource: @budget %>

    <%= f.translatable_fields do |translations_form| %>
      <div class="small-12 medium-9 column end">
        <%= translations_form.text_field :name,
                                          maxlength: Budget.title_max_length,
                                          hint: t("admin.budgets.edit.name_description") %>
      </div>
    <% end %>

    <div class="small-12 medium-4 column">
      <%= f.select :voting_style, budget_voting_styles_select_options %>
    </div>

    <div class="small-12 medium-2 column end">
      <%= f.select :currency_symbol, budget_currency_symbol_select_options %>
    </div>
  </fieldset>

  <fieldset>
    <legend><%= t("admin.budgets.edit.info.staff_settings") %></legend>

    <% %w[administrators valuators].each do |staff| %>
      <div class="small-12 medium-4 column end">
        <%= link_to t("admin.budgets.edit.#{staff}", count: @budget.send(staff).count),
          "#",
          class: "button expanded hollow js-budget-show-#{staff}-list js-budget-show-users-list",
          data: { toggle: "#{staff}_list", texts: t("admin.budgets.edit.#{staff}") } %>
      </div>
    <% end %>

    <%= render "/admin/budgets/association", assignable_type: "administrators", assignables: @admins, form: f %>
    <%= render "/admin/budgets/association", assignable_type: "valuators", assignables: @valuators, form: f %>
  </fieldset>

  <fieldset>
    <legend><%= t("admin.budgets.edit.info.phases_settings") %></legend>
    <div class="small-12 medium-6 column">
      <%= f.select :phase, budget_phases_select_options %>
    </div>

    <%= render Admin::Budgets::HelpComponent.new("budget_phases") %>

    <% if @budget.phases.present? %>
      <table id="budget-phases-table" class="table-for-mobile">
        <thead>
          <tr>
            <th><%= t("admin.budgets.edit.phase") %></th>
            <th><%= t("admin.budgets.edit.dates") %></th>
            <th class="text-center"><%= t("admin.budgets.edit.enabled") %></th>
            <th><%= t("admin.budgets.edit.actions") %></th>
          </tr>
        </thead>

        <% @budget.phases.order(:id).each do |phase| %><commit_msg>Adjust styles for large sceens<commit_after><%= translatable_form_for [:admin, @budget], html: { class: "budgets-form" } do |f| %>
  <fieldset>
    <legend><%= t("admin.budgets.edit.info.budget_settings") %></legend>
    <%= render "shared/globalize_locales", resource: @budget %>
    <%= render "shared/errors", resource: @budget %>

    <%= f.translatable_fields do |translations_form| %>
      <div class="small-12 medium-9 large-6 column end">
        <%= translations_form.text_field :name,
                                          maxlength: Budget.title_max_length,
                                          hint: t("admin.budgets.edit.name_description") %>
      </div>
    <% end %>

    <div class="small-12 medium-4 column">
      <%= f.select :voting_style, budget_voting_styles_select_options %>
    </div>

    <div class="small-12 medium-2 column end">
      <%= f.select :currency_symbol, budget_currency_symbol_select_options %>
    </div>
  </fieldset>

  <fieldset>
    <legend><%= t("admin.budgets.edit.info.staff_settings") %></legend>

    <% %w[administrators valuators].each do |staff| %>
      <div class="small-12 medium-6 large-3 column end">
        <%= link_to t("admin.budgets.edit.#{staff}", count: @budget.send(staff).count),
          "#",
          class: "button expanded hollow js-budget-show-#{staff}-list js-budget-show-users-list",
          data: { toggle: "#{staff}_list", texts: t("admin.budgets.edit.#{staff}") } %>
      </div>
    <% end %>

    <%= render "/admin/budgets/association", assignable_type: "administrators", assignables: @admins, form: f %>
    <%= render "/admin/budgets/association", assignable_type: "valuators", assignables: @valuators, form: f %>
  </fieldset>

  <fieldset>
    <legend><%= t("admin.budgets.edit.info.phases_settings") %></legend>
    <div class="small-12 medium-6 column">
      <%= f.select :phase, budget_phases_select_options %>
    </div>

    <%= render Admin::Budgets::HelpComponent.new("budget_phases") %>

    <% if @budget.phases.present? %>
      <table id="budget-phases-table" class="table-for-mobile">
        <thead>
          <tr>
            <th><%= t("admin.budgets.edit.phase") %></th>
            <th><%= t("admin.budgets.edit.dates") %></th>
            <th class="text-center"><%= t("admin.budgets.edit.enabled") %></th>
            <th><%= t("admin.budgets.edit.actions") %></th>
          </tr>
        </thead>

        <% @budget.phases.order(:id).each do |phase| %>
{'fraction_non_alphanumeric': 0.18758901322482197, 'fraction_numerical': 0.006510681586978637, 'mean_word_length': 2.8138091543832426, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4213398', 'n_tokens_mistral': 1722, 'n_tokens_neox': 1596, 'n_words': 288}