Sha256: 61b8e4f110e75d7bd290218ffb26ee0222d37a751cd5a1cc16e7e87bd5f261d2

Contents?: true

Size: 692 Bytes

Versions: 3

Compression:

Stored size: 692 Bytes

Contents

<%= form_for(@simulator, html: {role: 'form'}, builder: CitizenBudgetModel::CitizenBudgetFormBuilder) do |f| %>
  <%= f.errors %>
  <%= f.translated_text_field :name %>
<% if admin? %>
  <%= f.select :organization_id, CitizenBudgetModel::Organization.all.map{|o| [o.name, o.id]}, include_blank: true %>
<% end %>
  <%= f.number_field :total_revenue, min: 1 %>
  <%= f.text_field :equation %>
  <% f.buttons do %>
    <% unless @simulator.new_record? || @simulator.active? %>
      <%= link_to([:activate, @simulator], class: 'btn btn-default', method: :post) do %>
        <span class="glyphicon glyphicon-off"></span> <%= _('Activate') %>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
citizen_budget_model-0.0.4 app/views/citizen_budget_model/simulators/_form.html.erb
citizen_budget_model-0.0.3 app/views/citizen_budget_model/simulators/_form.html.erb
citizen_budget_model-0.0.2 app/views/citizen_budget_model/simulators/_form.html.erb