Sha256: 5cc54fc310a8faad502d681e1d963f217e835beda14b0bcc692e5114cdcae975

Contents?: true

Size: 645 Bytes

Versions: 1

Compression:

Stored size: 645 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.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

1 entries across 1 versions & 1 rubygems

Version Path
citizen_budget_model-0.0.1 app/views/citizen_budget_model/simulators/_form.html.erb