Skip to content

Instantly share code, notes, and snippets.

@MartinMcDermid
Created March 3, 2016 16:06
Show Gist options
  • Save MartinMcDermid/15b16100c0da0ef96d84 to your computer and use it in GitHub Desktop.
Save MartinMcDermid/15b16100c0da0ef96d84 to your computer and use it in GitHub Desktop.
<%= simple_form_for(@notification) do |f| %>
<%= f.error_notification %>
<div class="container">
<div class="col-md-12">
<h1>Create Notification</h1>
<div class="form-inputs">
<h5>Message</h5>
<%= f.input :body, label: false %>
</div>
<div class="form-inputs">
<h5>Company</h5>
<%= f.association :company, :input_html => {class: 'chosen-select'}, label: false %>
</div>
<div class="form-inputs">
<h5>Vehicle</h5>
<%= f.association :vehicle, :input_html => {class: 'chosen-select'}, label: false %>
</div>
<div class="form-inputs">
<h5>Recipients</h5>
<%= f.association :recipients, :input_html => {class: 'chosen-select', multiple: true }, label: false %>
</div>
<div class="form-actions">
<%= f.button :submit %>
</div>
</div>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment