You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

home.html 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <div layout="column" layout-fill layout-align="top center">
  2. <p ng-show="DataShareBusiness.CurrentGroups.length == 0" class="welcome-message">
  3. Welcome to Chronos !
  4. </p>
  5. <p ng-show="getSheetCount() > 5">
  6. Too many elements to display, please select a sub group.
  7. </p>
  8. <div lu-busy="coursesView" class="col-xs-12 seven-cols">
  9. <div class="col-xs-12">
  10. <md-datepicker class="col-xs-2 col-xs-offset-5" ng-model="selectedDate" md-placeholder="Enter date"></md-datepicker>
  11. </div>
  12. <div class="col-xs-1 hour-column">
  13. <div class="day-column-hours">
  14. <div class="day-column-hour" ng-hide="$first" ng-repeat="hour in hours" ng-style="{'top': ($index / hours.length * 100) + '%'}">
  15. {{hour | date : hourFormat}} -
  16. </div>
  17. </div>
  18. </div>
  19. <div class="col-xs-11 days-container">
  20. <div ng-repeat="day in days" class="col-sm-1 day-column"
  21. ng-style="{'border-right': $last ? 'solid #505050 1px' : ''}">
  22. <div class="day-column-header day-column-header-day"
  23. ng-class="{'day-column-header-current': !isToday(day.date) && selectedDate.getTime() == day.date.getTime(),
  24. 'day-column-header-today': isToday(day.date)}">
  25. {{ day.day }}
  26. </div>
  27. <div class="day-column-header day-column-header-date"
  28. ng-class="{'day-column-header-current': !isToday(day.date) && selectedDate.getTime() == day.date.getTime(),
  29. 'day-column-header-today': isToday(day.date)}">
  30. {{ day.date | date : dateFormat }}
  31. </div>
  32. <div class="day-column-courses">
  33. <div class="day-column-course" ng-repeat="course in getCoursesByDate(day.date)" ng-click="showCourse(course)"
  34. ng-style="{'height': (course.EndPercent - course.BeginPercent) + '%',
  35. 'top' : course.BeginPercent + '%', 'width': (100 / course.ParallelCoursesCount)+'%',
  36. 'left': (course.ParallelCoursesPosition * (100 / course.ParallelCoursesCount)) + '%',
  37. 'border-left': (course.ParallelCoursesPosition != 0) ? 'solid #505050 1px' : ''}">
  38. <span class="day-column-course-name">{{ course.Name }}</span>
  39. <div ng-repeat="room in course.RoomList">
  40. <span class="day-column-room-name">{{room.Name}}</span>
  41. </div>
  42. <div ng-repeat="staff in course.StaffList">
  43. <span class="day-column-staff-name">{{staff.Name}}</span>
  44. </div>
  45. <span class="day-column-course-hour">{{course.BeginDate | date : hourFormat}} - {{course.EndDate | date : hourFormat}}</span>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </div>