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
18aec6b5
Commit
18aec6b5
authored
Jun 11, 2017
by
Open Source Developer
Browse files
rewrite controllers
parent
cf136167
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
drupal/modules/epal/epal.routing.yml
View file @
18aec6b5
...
...
@@ -103,7 +103,7 @@ epal.confirmstudents:
requirements
:
_user_is_logged_in
:
'
TRUE'
epal.studentperschool
:
path
:
'
/epal/studentperschool/{
selectId}/{classId}/{limitdown}/{limitup
}'
path
:
'
/epal/studentperschool/{
classId}/{sector}/{specialit
}'
options
:
_auth
:
[
'
basic_auth'
]
defaults
:
...
...
drupal/modules/epal/src/Controller/DirectorView.php
View file @
18aec6b5
This diff is collapsed.
Click to expand it.
source/components/director/director-classcapacity.ts
View file @
18aec6b5
...
...
@@ -33,7 +33,7 @@ import {
επιλέξτε τη νέα δυναμική και πατήστε το σύμβολο <i>ok</i>. Προσοχή! Κανένα τμήμα δεν πρέπει να έχει δυναμική 0.</p>
<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" >
<li class="list-group-item " [class.oddout]="isOdd" [class.evenout]="isEven" >
<div class="row">
<div class="col-md-5">
<h5 [class.changelistcolor]= "CapacityPerCourses$.capacity === null" >{{CapacityPerCourses$.taxi}} <b></b></h5>
...
...
@@ -212,7 +212,7 @@ import {
error
=>
{
std
[
ind
].
capacity
=
oldvalue
;
this
.
CapacityPerCourse$
.
next
(
std
);
this
.
showLoader
.
next
(
false
);
console
.
log
(
"
Error Saving Capacity
"
);
},
()
=>
{
...
...
source/components/director/director-view.ts
View file @
18aec6b5
This diff is collapsed.
Click to expand it.
source/components/director/director-view_old.ts
0 → 100644
View file @
18aec6b5
This diff is collapsed.
Click to expand it.
source/services/helper-data-service.ts
View file @
18aec6b5
...
...
@@ -533,10 +533,7 @@ export class HelperDataService implements OnInit, OnDestroy {
getStudentPerSchool
(
SelectId
,
classId
,
limitdown
,
limitup
)
{
let
SelectIdNew
=
SelectId
.
toString
();
getStudentPerSchool
(
classId
,
sector
,
specialit
)
{
this
.
loginInfo$
.
getValue
().
forEach
(
loginInfoToken
=>
{
this
.
authToken
=
loginInfoToken
.
auth_token
;
...
...
@@ -548,13 +545,14 @@ export class HelperDataService implements OnInit, OnDestroy {
});
this
.
createAuthorizationHeader
(
headers
);
let
options
=
new
RequestOptions
({
headers
:
headers
});
return
this
.
http
.
get
(
`
${
AppSettings
.
API_ENDPOINT
}
/epal/studentperschool/`
+
SelectIdNew
+
"
/
"
+
classId
+
"
/
"
+
limitdown
+
"
/
"
+
limitup
,
options
)
return
this
.
http
.
get
(
`
${
AppSettings
.
API_ENDPOINT
}
/epal/studentperschool/`
+
classId
+
"
/
"
+
sector
+
"
/
"
+
specialit
,
options
)
.
map
(
response
=>
response
.
json
());
}
saveConfirmStudents
(
students
,
type
)
{
console
.
log
(
students
,
type
,
"
confirm
"
);
this
.
loginInfo$
.
getValue
().
forEach
(
loginInfoToken
=>
{
this
.
authToken
=
loginInfoToken
.
auth_token
;
this
.
authRole
=
loginInfoToken
.
auth_role
;
...
...
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