<%= 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.text_field :default_value %> <%= f.text_field :unit_value %> <%= f.text_field :account %>
<%= _('Widget') %>
<%= f.text_field :widget %> <%= f.translated_text_field :unit_name %> <%= f.number_field :minimum %> <%= f.number_field :maximum %> <%= f.number_field :step %> <%= 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_field :description %> <%= f.translated_text_field :modal %> <%= f.translated_text_field :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 %> <%= f.number_field :rows %> <%= f.number_field :cols %> <%= f.number_field :size %> <%= f.text_field :html_class %>
<% end %>
<% f.buttons(context: [@simulator, @section, @question]) %> <% end %>