5655.js


SUBMITTED BY: antfuentes87

DATE: Nov. 25, 2015, 12:48 a.m.

FORMAT: Text only

SIZE: 1.5 kB

HITS: 693

  1. var fetched = fetchAll(); - replace
  2. %div.modal-body
  3. %table.table{'ng-show': 'projects.length > 0'}
  4. %thead
  5. %tr
  6. %th Select
  7. %th Program Name
  8. %th PRD|UX Status
  9. %th Last updated
  10. %th Updated by
  11. %tbody
  12. %tr{'ng-repeat': 'project in projects'}
  13. %td
  14. %input{type: 'checkbox', 'ng-model': 'project.selected'}
  15. %td {{project.name}}
  16. %td {{project.prdUxStatus}}
  17. %td {{project.lastUpdated | date:'MM/dd/yyyy'}}
  18. %td {{project.updatedBy}}
  19. %span{'ng-hide': 'projects.length > 0'}
  20. Backlog is empty
  21. %div.modal-footer
  22. %button.btn.btn-primary{'ng-click': 'add()', 'ng-show': 'showAdd()'} Add selected
  23. %button.btn.btn-warning{'ng-click': 'cancel()'} Cancel
  24. .form-group
  25. %label.control-label.col-md-3
  26. Last updated
  27. .col-md-4
  28. %input.form-control{:name => "last_updated", "ng-model" => "project.last_updated", :type => "date"}>
  29. .form-group
  30. %label.control-label.col-md-3
  31. Updated by
  32. .col-md-4
  33. %input.form-control{:name => "updated_by", "ng-model" => "project.updated_by", :type => "text"}>
  34. def project_params
  35. params.require(:project).permit(:release_cycle_id, :name, :prev_staff_month, :curr_staff_month, :activate, :prd_ux_status, :accepted_prd, :implemented, :dev_manager, :qa_manager, :project_manager, :product_manager, :exec_sponsor, :comments, :last_updated, :updated_by)
  36. end

comments powered by Disqus