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 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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': selectedDate.getTime() == day.date.getTime()}">
  24. {{ day.day }}
  25. </div>
  26. <div class="day-column-header day-column-header-date"
  27. ng-class="{'day-column-header-current': selectedDate.getTime() == day.date.getTime()}">
  28. {{ day.date | date : dateFormat }}
  29. </div>
  30. <div class="day-column-courses">
  31. <div class="day-column-course" ng-repeat="course in getCoursesByDate(day.date)" ng-click="showCourse(course)"
  32. ng-style="{'height': (course.EndPercent - course.BeginPercent) + '%',
  33. 'top' : course.BeginPercent + '%', 'width': (100 / course.ParallelCoursesCount)+'%',
  34. 'left': (course.ParallelCoursesPosition * (100 / course.ParallelCoursesCount)) + '%',
  35. 'border-left': (course.ParallelCoursesPosition != 0) ? 'solid #505050 1px' : ''}">
  36. <span class="day-column-course-name">{{ course.Name }}</span>
  37. <div ng-repeat="room in course.RoomList">{{room.Name}}</div>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>