Justinzh1/Emunah

View on GitHub
app/views/submittals/_submittal_form.html.haml

Summary

Maintainability
Test Coverage
// Submittals
.row
  = label :submittal, :title, 'Title'
  %br
  .col-xs-4.no-left-padding
    = text_field :submittal, 'title', :id => 'title', class: 'form-control'
%br
.row    
  = label :submittal, :notes, 'Notes'
  %br
  .col-xs-4.no-left-padding
    = text_area :submittal, 'notes', :id => 'notes', class: 'form-control', placeholder: "Write something about this family.", :style => "height: 250px; width: 450px; text-align: left; padding: 0.4em;"

%br
// Tasks
// Need a button for follow up. Might need a button to generate more tasks too... but that probably is not required
%br
.row
  = label :task, :title, 'Task Title'
  %br
  .col-xs-4.no-left-padding
    = text_field :task, 'title', :id => 'task_title', class: 'form-control'
%br
.row    
  = label :task, :notes, 'Task Description'
  %br
  .col-xs-4.no-left-padding
    = text_area :task, 'notes', :id => 'task_notes', class: 'form-control', placeholder: "Write a description about this task.", :style => "height: 250px; width: 450px; text-align: left; padding: 0.4em;"
// Need to change to satisfy front-end (grab which users?)
%br
.row
  .col-xs-4.no-left-padding
    = label :task, :completed, 'Completed'
    = check_box_tag :task_completed, 1
.row
  = label :task, :task_users, 'Assigned to'
  %br
  .col-xs-4.no-left-padding 
    = collection_select(:user, :id, @users, :id, :full_name) 

%br