Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Χάρης Παπαδόπουλος
e-epal
Commits
c67ef9d3
Commit
c67ef9d3
authored
Jun 01, 2017
by
Open Source Developer
Browse files
change color forzero capacity
parent
f4f8b5e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/components/director/director-classcapacity.ts
View file @
c67ef9d3
...
...
@@ -72,10 +72,10 @@ import {
<br>
<br>
<div class="row"> <b>Οι δηλώσεις σας </b></div>
<div class="row"
style="margin-top: 20px; line-height: 2em;"
> <b>
Οι δηλώσεις σας </b></div>
<div *ngFor="let CapacityPerCourses$ of CapacityPerCourse$ | async; let i=index; let isOdd=odd; let isEven=even" >
<li *ngIf="(!(selectiontype | async) && (CapacityPerCourses$.class < 4)) ||((selectiontype | async) && (CapacityPerCourses$.class < 5))" class="list-group-item " [class.oddout]="isOdd" [class.evenout]="isEven" >
<h5 >{{CapacityPerCourses$.taxi}} {{CapacityPerCourses$.capacity}}
</h5>
<h5
[class.changelistcolor]= "CapacityPerCourses$.capacity === null"
>{{CapacityPerCourses$.taxi}}
<b>
{{CapacityPerCourses$.capacity}}
</b>
</h5>
</li>
</div>
...
...
@@ -401,6 +401,15 @@ import {
this
.
showLoader
.
next
(
true
);
this
.
saveCapacitySub
=
this
.
_hds
.
saveCapacity
(
this
.
formGroup
.
value
.
taxi
,
tomeas
,
specialit
,
this
.
formGroup
.
value
.
capacity
).
subscribe
(
data
=>
{
this
.
showLoader
.
next
(
false
);
this
.
CapacityPerCourseSub
=
this
.
_hds
.
FindCapacityPerSchool
().
subscribe
(
x
=>
{
this
.
CapacityPerCourse$
.
next
(
x
);
},
error
=>
{
this
.
CapacityPerCourse$
.
next
([{}]);
console
.
log
(
"
Error Getting Capacity perSchool
"
);
},
()
=>
console
.
log
(
"
Getting School
"
));
},
error
=>
{
...
...
@@ -412,14 +421,6 @@ import {
});
this
.
CapacityPerCourseSub
=
this
.
_hds
.
FindCapacityPerSchool
().
subscribe
(
x
=>
{
this
.
CapacityPerCourse$
.
next
(
x
);
},
error
=>
{
this
.
CapacityPerCourse$
.
next
([{}]);
console
.
log
(
"
Error Getting Capacity perSchool
"
);
},
()
=>
console
.
log
(
"
Getting School
"
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment