Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <div class="modal-body">
  2. <ul ng-repeat="shift in item.shiftName">{{shift.shortcut}}
  3. <span>{{shift.title}}</span>
  4. </ul>
  5. </div>
  6.  
  7. vm.namesOfShift = SHIFT_NAMES;
  8. vm.openScheduleModal = function (dayOfWeek){
  9. let popupArgs = {
  10. selectedDay: dayOfWeek,
  11. shiftName: SHIFT_NAMES
  12. };
  13. let template = '/components/chamModal/views/shiftModal.html';
  14. ModalService.open(popupArgs, template, 'lg', function(result) {
  15. console.log(result);
  16. })
  17. };
  18.  
  19. const SHIFT_NAMES = {
  20. MORNING: {
  21. title: 'Day Shift',
  22. shortcut: 'D',
  23. workHours: 8
  24. },
  25. NIGHT: {
  26. title: 'Night Shift',
  27. shortcut: 'N',
  28. workHours: 7.5
  29. },
  30. GRAVEYARD: {
  31. title: 'Graveyard Shift',
  32. shortcut: 'G',
  33. workHours: 10
  34. },
  35. OFF: {
  36. title: 'Off',
  37. shortcut: 'O',
  38. workHours: 24
  39. },
  40. LEAVE: {
  41. title: 'Leave',
  42. shortcut: 'L',
  43. workHours: 24}
  44. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement