updated Submit Component

parent 01197359
langcode: el
status: true
dependencies:
module:
- basic_auth
- epal
- hal
- serialization
- user
id: entity.epal_class_limits
plugin_id: 'entity:epal_class_limits'
granularity: method
configuration:
GET:
supported_formats:
- hal_json
- json
- xml
supported_auth:
- basic_auth
- cookie
POST:
supported_formats:
- hal_json
- json
- xml
supported_auth:
- basic_auth
- cookie
DELETE:
supported_formats:
- hal_json
- json
- xml
supported_auth:
- basic_auth
- cookie
PATCH:
supported_formats:
- hal_json
- json
- xml
supported_auth:
- basic_auth
- cookie
langcode: el
status: true
dependencies:
module:
- basic_auth
- epal
- hal
- serialization
- user
id: entity.epal_criteria
plugin_id: 'entity:epal_criteria'
granularity: method
configuration:
GET:
supported_formats:
- hal_json
- json
- xml
supported_auth:
- basic_auth
- cookie
POST:
supported_formats:
- hal_json
- json
- xml
supported_auth:
- basic_auth
- cookie
DELETE:
supported_formats:
- hal_json
- json
- xml
supported_auth:
- basic_auth
- cookie
PATCH:
supported_formats:
- hal_json
- json
- xml
supported_auth:
- basic_auth
- cookie
langcode: el
status: true
dependencies:
module:
- basic_auth
- epal
- hal
- serialization
- user
id: entity.epal_student_moria
plugin_id: 'entity:epal_student_moria'
granularity: method
configuration:
GET:
supported_formats:
- hal_json
- json
- xml
supported_auth:
- basic_auth
- cookie
POST:
supported_formats:
- hal_json
- json
- xml
supported_auth:
- basic_auth
- cookie
DELETE:
supported_formats:
- hal_json
- json
- xml
supported_auth:
- basic_auth
- cookie
PATCH:
supported_formats:
- hal_json
- json
- xml
supported_auth:
- basic_auth
- cookie
langcode: el
status: true
dependencies:
module:
- basic_auth
- epal
- hal
- serialization
- user
id: entity.epal_student_sector_field
plugin_id: 'entity:epal_student_sector_field'
granularity: method
configuration:
GET:
supported_formats:
- hal_json
- json
- xml
supported_auth:
- basic_auth
- cookie
POST:
supported_formats:
- hal_json
- json
- xml
supported_auth:
- basic_auth
- cookie
DELETE:
supported_formats:
- hal_json
- json
- xml
supported_auth:
- basic_auth
- cookie
PATCH:
supported_formats:
- hal_json
- json
- xml
supported_auth:
- basic_auth
- cookie
langcode: el
status: true
dependencies: { }
id: applicant
label: applicant
weight: 3
is_admin: null
permissions:
- 'add epal student class entities'
- 'add epal student entities'
- 'add epal student course field entities'
- 'add epal student epal chosen entities'
- 'add epal student sector field entities'
- 'add epal users entities'
- 'delete epal student class entities'
- 'delete epal student entities'
- 'delete epal student course field entities'
- 'delete epal student epal chosen entities'
- 'delete epal student sector field entities'
- 'delete epal users entities'
- 'edit epal student class entities'
- 'edit epal student entities'
- 'edit epal student course field entities'
- 'edit epal student epal chosen entities'
- 'edit epal student sector field entities'
- 'edit epal users entities'
- 'view published epal student class entities'
- 'view published epal student entities'
- 'view published epal student course field entities'
- 'view published epal student epal chosen entities'
- 'view published epal student sector field entities'
- 'view published epal users entities'
- 'view unpublished epal student class entities'
- 'view unpublished epal student entities'
- 'view unpublished epal student course field entities'
- 'view unpublished epal student epal chosen entities'
- 'view unpublished epal student sector field entities'
- 'view unpublished epal users entities'
- 'view published eepal admin area entities'
- 'view published eepal prefecture entities'
- 'view published eepal region entities'
- 'view published eepal school entities'
- 'view published eepal sectors entities'
- 'view published eepal sectors in epal entities'
- 'view published eepal specialties in epal entities'
- 'view published eepal specialty entities'
- 'view unpublished eepal admin area entities'
- 'view unpublished eepal prefecture entities'
- 'view unpublished eepal region entities'
- 'view unpublished eepal school entities'
- 'view unpublished eepal sectors entities'
- 'view unpublished eepal sectors in epal entities'
- 'view unpublished eepal specialties in epal entities'
- 'view unpublished eepal specialty entities'
- 'access content'
...@@ -48,7 +48,7 @@ export default class Form3 { ...@@ -48,7 +48,7 @@ export default class Form3 {
constructor(private http: Http) { constructor(private http: Http) {
this.student = new Student(1, '', '', '', '', '','','',''); this.student = new Student(1, '', '', '', '', '','','','','');
//this.student = new Student(1, 1, '', ''); //this.student = new Student(1, 1, '', '');
} }
......
<div class="row equal"> <div class="row equal">
<div class="col-md-12"> <div class="col-md-12">
<form novalidate (ngSubmit)="onSubmit(studentDataGroup)" [formGroup]="studentDataGroup"> <form novalidate (ngSubmit)="onSubmit(studentDataGroup)" [formGroup]="studentDataGroup"
method = "POST" action="http://localhost/drupal-8.2.5/epal/appsubmit" #form>
<form [formGroup]="applicantDataGroup"> <form [formGroup]="applicantDataGroup">
<table> <table>
...@@ -180,6 +181,7 @@ ...@@ -180,6 +181,7 @@
<i class="fa fa-forward"></i> <i class="fa fa-forward"></i>
</button> </button>
</div> </div>
</div> </div>
</form> </form>
......
...@@ -105,6 +105,10 @@ import {AppSettings} from '../../app.settings'; ...@@ -105,6 +105,10 @@ import {AppSettings} from '../../app.settings';
this._cfa.saveEpalClassesSelected(this.formGroup.value); this._cfa.saveEpalClassesSelected(this.formGroup.value);
this._sfa.getSectorFields(true); this._sfa.getSectorFields(true);
this._rsa.getRegionSchools(1,"-1", true); this._rsa.getRegionSchools(1,"-1", true);
console.log("Here I am!");
//this._rsa.saveRegionSchoolsOrder(true);
this._csa.getSectorCourses(true); this._csa.getSectorCourses(true);
} }
......
...@@ -11,6 +11,7 @@ export class Student { ...@@ -11,6 +11,7 @@ export class Student {
public regionarea: string, public regionarea: string,
public certificatetype: string, public certificatetype: string,
public relationtostudent: string, public relationtostudent: string,
public studentamka: string,
public currentclass: string, public currentclass: string,
){} ){}
} }
...@@ -31,3 +32,35 @@ export class StudentCourseChosen { ...@@ -31,3 +32,35 @@ export class StudentCourseChosen {
public coursefield_id: number, public coursefield_id: number,
) {} ) {}
} }
export class StudentSectorChosen {
constructor(
public student_id: number,
public sectorfield_id: number,
) {}
}
export class StudentCriteriaChosen {
constructor(
public student_id: number,
public income: number,
public criterio_id: number,
) {}
}
/*
export class StudentCriteria {
constructor(
public student_id: number,
public orphanmono: boolean,
public orphantwice: boolean,
public threechildren: boolean,
public manychildren: boolean,
public twins: boolean,
public disability: boolean,
public studies: boolean,
public income: number,
) {}
}
*/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment