JordanHatch/maslow-redux

View on GitHub
app/views/activity_items/_new_note_form.html.erb

Summary

Maintainability
Test Coverage
<%= semantic_form_for(:note, url: need_notes_path(need)) do |f| %>
  <%= f.inputs do %>
    <%= f.input :body, label: 'Add a note',
                       as: :text,
                       required: false, # prevents an asterisk from appearing
                       input_html: {
                         rows: 3,
                         data: {
                           module: 'expand',
                           expand_hide_form_until_active: true,
                         }
                       } %>
  <% end %>
  <%= f.action :submit,
               :button_html => {
                 :value => "Post",
                 :class => "btn btn-primary"
               } %>
<% end %>