<%= form_for [:admin, @budget] do |f| %> <%= f.text_field :name, maxlength: Budget.title_max_length %> <% Budget::PHASES.each do |phase| %>
<%= f.cktext_area "description_#{phase}", maxlength: Budget.description_max_length, ckeditor: { language: I18n.locale } %>
<% end %>
<%= f.select :phase, budget_phases_select_options %>
<%= f.select :currency_symbol, budget_currency_symbol_select_options %>
<%= f.submit nil, class: "button success" %> <% if @budget.balloting_process? %>
<%= link_to t("admin.budgets.winners.calculate"), calculate_winners_admin_budget_path(@budget), method: :put, class: "button hollow" %>
<% end %>
<% end %>