volontariat/voluntary_scholarship

View on GitHub
app/views/scholarship/programs/_form.html.erb

Summary

Maintainability
Test Coverage
<%= simple_form_for(@program, html: {class: 'form-horizontal'}, wrapper: :horizontal_form) do |f| %>
  <%= render partial: 'shared/form/error_messages', locals: { resource: @program } %>
  
    <%= f.input :organization_id, collection: current_user.organizations %>
  <%= f.input :name %>  
  <%= f.input :text, input_html: {style: 'width: 500px; height:300px;'} %>
  
  <div class="form-group">
    <div class="col-sm-offset-3 col-sm-9">
      <%= f.button :submit %>
    </div>
  </div>
<% end %>