Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
e-epal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Σταύρος Παπαδάκης
e-epal
Commits
8aeadb90
Commit
8aeadb90
authored
Feb 10, 2017
by
Open Source Developer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
71784dc4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
9 deletions
+60
-9
source/components/home.ts
source/components/home.ts
+45
-3
source/components/student-application-form/amka-fill.ts
source/components/student-application-form/amka-fill.ts
+13
-4
source/components/student-application-form/epal.class.select.ts
.../components/student-application-form/epal.class.select.ts
+1
-2
source/services/amkacheck-service.ts
source/services/amkacheck-service.ts
+1
-0
No files found.
source/components/home.ts
View file @
8aeadb90
import
{
Component
}
from
'
@angular/core
'
;
import
{
FormBuilder
,
FormGroup
,
FormControl
,
FormArray
}
from
'
@angular/forms
'
;
@
Component
({
selector
:
'
home
'
,
template
:
`
<div>
<h4>e-EPAL και e-IEK application skeleton</h4>
<h4>Στοιχεία Σύνδεσης</h4>
<form [formGroup]="formGroup">
<div class="form-group">
<label for="UserName">Όνομα Χρήστη</label><input class="form-control" type="text" formControlName="Username">
</div>
<div class="form-group">
<label for="Paswd">Κωδικός Ασφαλείας</label><input class="form-control" type="password" formControlName="Paswd">
</div>
<div class="row">
<div class="col-md-2 col-md-offset-5">
<button type="button" class="btn-primary btn-lg pull-center" (click)="checkvalidation()">
Συνέχεια<span class="glyphicon glyphicon-menu-right"></span>
</button>
</div>
<div *ngIf="emptyselection==true">
Παρακαλώ συμπληρώστε το ΑΜΚΑ του μαθητή
</div>
</div>
</form>
</div>
`
})
export
default
class
Home
{
}
export
default
class
Home
{
public
formGroup
:
FormGroup
;
constructor
(
private
fb
:
FormBuilder
)
{
this
.
formGroup
=
this
.
fb
.
group
({
Username
:
[],
Paswd
:
[]
});
};
checkvalidation
()
{
if
(
this
.
fb
.
group
.
arguments
==
'
admin
'
)
{
}
}
\ No newline at end of file
source/components/student-application-form/amka-fill.ts
View file @
8aeadb90
...
...
@@ -14,14 +14,14 @@ import {
FormArray
}
from
'
@angular/forms
'
;
import
{
AppSettings
}
from
'
../../app.settings
'
;
@
Component
({
selector
:
'
amka-fill
'
,
template
:
`
<form [formGroup]="formGroup">
<div *ngFor="let amkafill$ of amkafills$ | async;"> </div>
<div class="form-group">
<label for="studentAmka">ΑΜΚΑ μαθητή</label><input class="form-control" type="text" formControlName="name">
</div>
...
...
@@ -31,6 +31,9 @@ import {AppSettings} from '../../app.settings';
Συνέχεια<span class="glyphicon glyphicon-menu-right"></span>
</button>
</div>
<div *ngIf="emptyselection==true">
Παρακαλώ συμπληρώστε το ΑΜΚΑ του μαθητή
</div>
</div>
</form>
`
...
...
@@ -41,6 +44,7 @@ import {AppSettings} from '../../app.settings';
public
formGroup
:
FormGroup
;
private
respond
:
any
;
emptyselection
=
false
;
constructor
(
private
fb
:
FormBuilder
,
private
_cas
:
AmkaCheckService
,
...
...
@@ -54,8 +58,7 @@ import {AppSettings} from '../../app.settings';
ngOnInit
()
{
// this._cfa.getEpalClasses()
console
.
log
(
this
.
formGroup
.
value
);
this
.
amkafills$
=
this
.
_ngRedux
.
select
(
state
=>
{
if
(
state
.
amkafills
.
size
>
0
)
{
...
...
@@ -71,8 +74,14 @@ import {AppSettings} from '../../app.settings';
saveSelected
()
{
if
(
this
.
formGroup
.
value
.
name
==
undefined
)
{
this
.
emptyselection
=
true
;
}
else
{
this
.
_cfa
.
saveAmkaFills
(
this
.
formGroup
.
value
);
this
.
router
.
navigate
([
'
/epal-class-select
'
]);
}
}
}
\ No newline at end of file
source/components/student-application-form/epal.class.select.ts
View file @
8aeadb90
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
import
{
Router
}
from
'
@angular/router
'
;
import
{
Observable
}
from
'
rxjs/Rx
'
;
import
{
Injectable
}
from
"
@angular/core
"
;
...
...
@@ -14,7 +14,6 @@ import {
}
from
'
@angular/forms
'
;
import
{
AppSettings
}
from
'
../../app.settings
'
;
@
Component
({
selector
:
'
epal-class-select
'
,
template
:
`
...
...
source/services/amkacheck-service.ts
View file @
8aeadb90
...
...
@@ -4,6 +4,7 @@ import {Observable} from "rxjs/Observable";
import
'
rxjs/add/operator/map
'
;
import
{
IAmkaFill
}
from
'
../store/amkafill/amkafills.types
'
;
@
Injectable
()
export
class
AmkaCheckService
{
private
_url
=
"
https://wso2.minedu.gov.gr/amka/v1.1/
"
;
...
...
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