volontariat/voluntary_scholarship

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

Summary

Maintainability
Test Coverage
<%= simple_form_for(@team, html: { class: 'form-horizontal' }, wrapper: :horizontal_form ) do |f| %>
  <%= render partial: 'shared/form/error_messages', locals: { resource: @team } %>
  
    <%= f.input :kind, as: :radio_buttons, collection: Scholarship::Team::KINDS.map { |k| [k.capitalize, k] }, blank: false, label: t('activerecord.attributes.scholarship/team.kind') %>
  <%= f.input :name, label: t('attributes.name') %>  
  <%= f.input :github_handle, label: t('activerecord.attributes.scholarship/team.github_handle') %>
  <%= f.input :twitter_handle, label: t('activerecord.attributes.scholarship/team.twitter_handle') %>
  <%= f.input :text, label: t('attributes.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 %>