<%= form_for([@simulator, @section, @question], html: {role: 'form'}, builder: CitizenBudgetModel::CitizenBudgetFormBuilder) do |f| %> <%= f.errors %>
<%= _('Simulation') %>
<%= f.translated_text_field :name %> <%= f.text_field :machine_name %> <%= f.number_field :default_value, step: 'any' %> <%= f.number_field :unit_value_down, step: 'any' %> <%= f.number_field :unit_value_up, step: 'any' %> <%= f.text_field :account %>
<%= _('Widget') %>
<%= f.text_field :widget %> <%= f.translated_text_field :unit_name %> <%= f.number_field :minimum, step: 'any' %> <%= f.number_field :maximum, step: 'any' %> <%= f.number_field :step, step: 'any', min: 0 %> <%= f.translated_text_field :labels %> <%= f.text_field :options %> <%= f.check_box :revenue %>
<% text_panel = [:title, :description, :modal, :popover] %> <% if visible?(@question, *text_panel) %>
<%= f.translated_text_field :title %> <%= f.translated_text_area :description %> <%= f.translated_text_area :modal %> <%= f.translated_text_area :popover %>
<% end %> <% html_panel = [:required, :placeholder, :maxlength, :rows, :cols, :size, :html_class] %> <% if visible?(@question, *html_panel) %>
<%= f.check_box :required %> <%= f.translated_text_field :placeholder %> <%= f.number_field :maxlength, step: 1, min: 1 %> <%= f.number_field :rows, step: 1, min: 1 %> <%= f.number_field :cols, step: 1, min: 1 %> <%= f.number_field :size, step: 1, min: 1 %> <%= f.text_field :html_class %>
<% end %>
<% f.buttons(context: [@simulator, @section, @question]) %> <% end %>