Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Σταύρος Παπαδάκης
e-epal
Commits
9744fe16
Commit
9744fe16
authored
Mar 29, 2017
by
Open Source Developer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trans
parent
401266dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
13 deletions
+43
-13
source/components/director/director-view.ts
source/components/director/director-view.ts
+43
-13
No files found.
source/components/director/director-view.ts
View file @
9744fe16
...
...
@@ -8,35 +8,60 @@ import { NgRedux, select } from 'ng2-redux';
import
{
IAppState
}
from
'
../../store/store
'
;
import
{
Router
,
ActivatedRoute
,
Params
}
from
'
@angular/router
'
;
import
{
BehaviorSubject
,
Subscription
}
from
'
rxjs/Rx
'
;
import
{
FormBuilder
,
FormGroup
,
FormControl
,
FormArray
,
Validators
,
}
from
'
@angular/forms
'
;
@
Component
({
selector
:
'
director-view
'
,
template
:
`
<form [formGroup]="formGroup">
<div class="form-group" style= "margin-top: 50px; margin-bottom: 100px;">
<label for="name">Τάξη</label><br/>
<select class="form-control" formControlName="name" (change)="verifyclass()">
<option value="Α' Λυκείου">Α' Λυκείου</option>
<option value="Β' Λυκείου">Β' Λυκείου</option>
<option value="Γ' Λυκείου">Γ' Λυκείου</option>
</select>
<div>
<label for="name">
Παρακαλώ επιλέξτε τ
άξη
</label><br/>
<select>
<option value=
1
>Α' Λυκείου</option>
<option value=
2
>Β' Λυκείου</option>
<option value=
3
>Γ' Λυκείου</option>
<div class="form-group" style= "margin-top: 50px; margin-bottom: 100px;">
<label for="name
1
">
Τ
άξη
1
</label><br/>
<select
class="form-control" formControlName="name1" (change)="verifyclass()"
>
<option value=
"Α' Λυκείου"
>Α' Λυκείου</option>
<option value=
"Β' Λυκείου"
>Β' Λυκείου</option>
<option value=
"Γ' Λυκείου"
>Γ' Λυκείου</option>
</select>
<div>
`
})
@
Injectable
()
export
default
class
DirectorView
implements
OnInit
,
OnDestroy
{
public
formGroup
:
FormGroup
;
private
StudentSelected$
:
BehaviorSubject
<
any
>
;
private
StudentSelectedSub
:
Subscription
;
constructor
(
private
_hds
:
HelperDataService
,
public
bClassEnabled
:
boolean
;
constructor
(
private
fb
:
FormBuilder
,
private
_hds
:
HelperDataService
,
private
activatedRoute
:
ActivatedRoute
,
private
router
:
Router
)
{
this
.
StudentSelected$
=
new
BehaviorSubject
([{}]);
this
.
formGroup
=
this
.
fb
.
group
({
name
:[],
name1
:[]
});
}
ngOnDestroy
()
...
...
@@ -48,11 +73,16 @@ import { BehaviorSubject, Subscription } from 'rxjs/Rx';
ngOnInit
()
{
this
.
bClassEnabled
=
false
;
}
verifyclass
()
{
this
.
bClassEnabled
=
true
;
}
}
\ No newline at end of file
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