@@ -70,14 +70,17 @@ <h2 class="panel-title control-label pull-left smaller-sm">{{saveAction == "crea
7070 < div class ="schedule-cont ">
7171 < div class ="schedule-track " ng-class ="mobileTrackClass ">
7272< svg version ="1.1 " ng-attr-height ="{{grid.opts.height}} " width ="100% " xmlns ="http://www.w3.org/2000/svg "> < defs > < pattern vector-effect ="non-scaling-stroke " id ="day{{initialIndex}} " width ="100% " x ="0 " height ="40 " patternUnits ="userSpaceOnUse "> < line vector-effect ="non-scaling-stroke " x1 ="0 " y1 ="19.5 " x2 ="100% " y2 ="19.5 " style ="stroke:#bbb;stroke-width:1 " /> </ pattern > </ defs > < rect x ="0 " y ="0 " width ="100% " height ="100% " fill ="#ffffff " /> < g ng-attr-transform ="{{grid.opts.pixelAlignment}} " font-family ="Roboto " font-size ="15 "> < g class ="svg-schedule-hours "> < text fill ="#aaa " text-anchor ="end " ng-repeat ="hour in grid.hours track by $index " ng-attr-x ="{{print?'41':'5%'}} " ng-attr-y ="{{($index * 40) + 25}} "> {{hour}}</ text > </ g > < g ng-repeat ="day in grid.days "> < text y ="12 " ng-attr-x ="{{day.offset}} " ng-attr-width ="{{grid.opts.daysWidth}} " fill ="#aaa " ng-bind ="day.name "> </ text > < rect y ="19 " ng-attr-x ="{{day.offset}} " ng-attr-width ="{{grid.opts.daysWidth}} " ng-attr-height ="{{grid.opts.daysHeight}} " fill ="url(#day{{initialIndex}}) " /> </ g > < g svg-schedule-item class ="item " ng-mouseenter ="itemEnter($event) " ng-mouseleave ="itemLeave($event) " ng-repeat ="item in scheduleItems | orderBy:'-boundry.y' "> < rect ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y}} " ng-attr-width ="{{item.boundry.width}} " ng-attr-height ="{{item.boundry.height}} " ng-attr-fill ="{{item.color}} " fill-opacity =".8 " /> < rect ng-if ="item.boundry.shorten != 0 " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.shorten < 0 ?item.boundry.y : item.boundry.y + item.boundry.height - 2}} " ng-attr-width ="{{item.boundry.width}} " height ="2 " fill ="#ffff00 " /> < text svg-text-line ="{{item.title}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 16}} " transform ="translate(3,0) " font-weight ="bold " fill ="white "> </ text >
73-
74- < text ng-if ="(printClassDetails == 'NPL' || printClassDetails == null) && (item.boundry.height > 32 && item.content.courseNum) " svg-text-line ="{{item.content.courseNum}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 32}} " transform ="translate(3,0) " fill ="#fff "> </ text > < text ng-if ="(printClassDetails == 'NPL' || printClassDetails == null) && (item.boundry.height > 48 && item.content.instructor) " svg-text-line ="{{item.content.instructor}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 48}} " transform ="translate(3,0) " fill ="#fff "> </ text > < text ng-if ="(printClassDetails == 'NPL' || printClassDetails == null) && (item.boundry.height > 64 && item.content.location) " svg-text-line ="{{item.content.location}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 64}} " transform ="translate(3,0) " fill ="#fff "> </ text >
75-
76- < text ng-if ="(printClassDetails == 'LPN') && (item.boundry.height > 32 && item.content.location) " svg-text-line ="{{item.content.location}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 32}} " transform ="translate(3,0) " fill ="#fff "> </ text > < text ng-if ="(printClassDetails == 'LPN') && (item.boundry.height > 48 && item.content.instructor) " svg-text-line ="{{item.content.instructor}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 48}} " transform ="translate(3,0) " fill ="#fff "> </ text > < text ng-if ="(printClassDetails == 'LPN') && (item.boundry.height > 64 && item.content.courseNum) " svg-text-line ="{{item.content.courseNum}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 64}} " transform ="translate(3,0) " fill ="#fff "> </ text >
77-
78- < text ng-if ="(printClassDetails == 'LNP') && (item.boundry.height > 32 && item.content.location) " svg-text-line ="{{item.content.location}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 32}} " transform ="translate(3,0) " fill ="#fff "> </ text > < text ng-if ="(printClassDetails == 'LNP') && (item.boundry.height > 48 && item.content.courseNum) " svg-text-line ="{{item.content.courseNum}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 48}} " transform ="translate(3,0) " fill ="#fff "> </ text > < text ng-if ="(printClassDetails == 'LNP') && (item.boundry.height > 64 && item.content.instructor) " svg-text-line ="{{item.content.instructor}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 64}} " transform ="translate(3,0) " fill ="#fff "> </ text >
79-
80-
73+ < g ng-switch ="printClassDetails ">
74+ < g ng-switch-default >
75+ < text ng-if ="item.boundry.height > 32 && item.content.courseNum " svg-text-line ="{{item.content.courseNum}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 32}} " transform ="translate(3,0) " fill ="#fff "> </ text > < text ng-if ="item.boundry.height > 48 && item.content.instructor " svg-text-line ="{{item.content.instructor}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 48}} " transform ="translate(3,0) " fill ="#fff "> </ text > < text ng-if ="item.boundry.height > 64 && item.content.location " svg-text-line ="{{item.content.location}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 64}} " transform ="translate(3,0) " fill ="#fff "> </ text >
76+ </ g >
77+ < g ng-switch-when ="LPN ">
78+ < text ng-if ="item.boundry.height > 32 && item.content.location " svg-text-line ="{{item.content.location}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 32}} " transform ="translate(3,0) " fill ="#fff "> </ text > < text ng-if ="item.boundry.height > 48 && item.content.instructor " svg-text-line ="{{item.content.instructor}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 48}} " transform ="translate(3,0) " fill ="#fff "> </ text > < text ng-if ="item.boundry.height > 64 && item.content.courseNum " svg-text-line ="{{item.content.courseNum}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 64}} " transform ="translate(3,0) " fill ="#fff "> </ text >
79+ </ g >
80+ < g ng-switch-when ="LNP ">
81+ < text ng-if ="item.boundry.height > 32 && item.content.location " svg-text-line ="{{item.content.location}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 32}} " transform ="translate(3,0) " fill ="#fff "> </ text > < text ng-if ="item.boundry.height > 48 && item.content.courseNum " svg-text-line ="{{item.content.courseNum}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 48}} " transform ="translate(3,0) " fill ="#fff "> </ text > < text ng-if ="item.boundry.height > 64 && item.content.instructor " svg-text-line ="{{item.content.instructor}} " ng-attr-x ="{{item.boundry.x}} " ng-attr-y ="{{item.boundry.y + 64}} " transform ="translate(3,0) " fill ="#fff "> </ text >
82+ </ g >
83+ </ g >
8184< g svg-text-content ="item.content "> </ g > </ g > </ g > </ svg >
8285 </ div >
8386 </ div >
0 commit comments