This repository has been archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from CampusDual/BFS42024-14
BFS42024-14
- Loading branch information
Showing
13 changed files
with
219 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
...frontend/src/main/ngx/src/app/main/students/students-detail/students-detail.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
o-form-toolbar { | ||
background-color: #f0f0f0; | ||
padding: 10px; | ||
border-radius: 5px; | ||
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
o-form-toolbar button { | ||
margin-right: 10px; | ||
background-color: #007bff; | ||
color: white; | ||
border-radius: 3px; | ||
padding: 5px 15px; | ||
} | ||
|
||
o-form { | ||
background-color: #d5e9de; | ||
border: 2px solid #a8d3b8; | ||
padding: 20px; | ||
border-radius: 10px; | ||
max-width: 80%; | ||
margin: 0 auto; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
[fxLayout="row"] { | ||
display: flex; | ||
align-items: center; | ||
justify-content:space-between; | ||
flex-wrap: wrap; | ||
} | ||
|
||
o-text-input, o-email-input { | ||
display: block; | ||
width: 100%; | ||
padding: 10px; | ||
margin: 10px 0 10px 10px; | ||
background-color: #F5F5F5; | ||
border: 1px solid #a8d3b8; | ||
border-radius: 5px; | ||
font-size: 14px; | ||
color: #2f4f4f; | ||
box-sizing: border-box; | ||
} | ||
|
||
label { | ||
display: block; | ||
width: 100%; | ||
margin: 10px 0 10px 10px; | ||
font-size: 16px; | ||
font-weight: bold; | ||
color: #668873; | ||
box-sizing: border-box; | ||
} | ||
|
||
.hidden { | ||
display: none; | ||
} | ||
|
||
|
||
|
17 changes: 17 additions & 0 deletions
17
...rontend/src/main/ngx/src/app/main/students/students-detail/students-detail.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<o-form attr="studentsDetail" service="students" entity="student" keys="id" header-actions="R;I;U;D" show-header-navigation="no"> | ||
<o-text-input [ngClass]="{'hidden': true}" attr="id" sql-type="INTEGER" enabled="no"/> | ||
<div fxLayout="row" fxLayoutGap="16px" fxLayoutWrap> | ||
<div fxFlex="45"> | ||
<label for="name">Nombre</label> | ||
<o-text-input attr="name" required="yes" id="name"></o-text-input> | ||
</div> | ||
<div fxFlex="45"> | ||
<label for="surnames">Apellidos</label> | ||
<o-text-input attr="surnames" required="yes" id="surnames"></o-text-input> | ||
</div> | ||
<div fxFlex="98"> | ||
<label for="email">Email</label> | ||
<o-email-input attr="email" required="yes" id="email"></o-email-input> | ||
</div> | ||
</div> | ||
</o-form> |
23 changes: 23 additions & 0 deletions
23
...tend/src/main/ngx/src/app/main/students/students-detail/students-detail.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { StudentsDetailComponent } from './students-detail.component'; | ||
|
||
describe('StudentsDetailComponent', () => { | ||
let component: StudentsDetailComponent; | ||
let fixture: ComponentFixture<StudentsDetailComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ StudentsDetailComponent ] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(StudentsDetailComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
10 changes: 10 additions & 0 deletions
10
...-frontend/src/main/ngx/src/app/main/students/students-detail/students-detail.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-students-detail', | ||
templateUrl: './students-detail.component.html', | ||
styleUrls: ['./students-detail.component.css'] | ||
}) | ||
export class StudentsDetailComponent { | ||
|
||
} |
54 changes: 54 additions & 0 deletions
54
...fs4g1-frontend/src/main/ngx/src/app/main/students/students-new/students-new.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
o-form-toolbar { | ||
background-color: #f0f0f0; | ||
padding: 10px; | ||
border-radius: 5px; | ||
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
o-form-toolbar button { | ||
margin-right: 10px; | ||
background-color: #007bff; | ||
color: white; | ||
border-radius: 3px; | ||
padding: 5px 15px; | ||
} | ||
|
||
o-form { | ||
background-color: #d5e9de; | ||
border: 2px solid #a8d3b8; | ||
padding: 20px; | ||
border-radius: 10px; | ||
max-width: 80%; | ||
margin: 0 auto; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
[fxLayout="row"] { | ||
display: flex; | ||
align-items: center; | ||
justify-content:space-between; | ||
flex-wrap: wrap; | ||
} | ||
|
||
o-text-input, o-email-input { | ||
display: block; | ||
width: 100%; | ||
padding: 10px; | ||
margin: 10px 0 10px 10px; | ||
background-color: #F5F5F5; | ||
border: 1px solid #a8d3b8; | ||
border-radius: 5px; | ||
font-size: 14px; | ||
color: #2f4f4f; | ||
box-sizing: border-box; | ||
} | ||
|
||
label { | ||
display: block; | ||
width: 100%; | ||
margin: 10px 0 10px 10px; | ||
font-size: 16px; | ||
font-weight: bold; | ||
color: #668873; | ||
box-sizing: border-box; | ||
} |
16 changes: 16 additions & 0 deletions
16
...s4g1-frontend/src/main/ngx/src/app/main/students/students-new/students-new.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<o-form #studentsform attr="studentsNew" service="students" entity="student" keys="id" header-actions="R;I;U;D" show-header-navigation="no"> | ||
<div fxLayout="row" fxLayoutGap="16px" fxLayoutWrap> | ||
<div fxFlex="45"> | ||
<label for="name">Nombre</label> | ||
<o-text-input attr="name" required="yes" id="name"></o-text-input> | ||
</div> | ||
<div fxFlex="45"> | ||
<label for="surnames">Apellidos</label> | ||
<o-text-input attr="surnames" required="yes" id="surnames"></o-text-input> | ||
</div> | ||
<div fxFlex="98"> | ||
<label for="email">Email</label> | ||
<o-email-input attr="email" required="yes" id="email"></o-email-input> | ||
</div> | ||
</div> | ||
</o-form> |
17 changes: 17 additions & 0 deletions
17
...bfs4g1-frontend/src/main/ngx/src/app/main/students/students-new/students-new.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Component, ViewChild } from '@angular/core'; | ||
import { OFormComponent } from 'ontimize-web-ngx'; | ||
|
||
@Component({ | ||
selector: 'app-students-new', | ||
templateUrl: './students-new.component.html', | ||
styleUrls: ['./students-new.component.css'] | ||
}) | ||
export class StudentsNewComponent { | ||
|
||
@ViewChild('studentsform') protected formStudents: OFormComponent; | ||
|
||
insertStudent() { | ||
this.formStudents.insert(); | ||
} | ||
|
||
} |
6 changes: 5 additions & 1 deletion
6
cd2024bfs4g1-frontend/src/main/ngx/src/app/main/students/students-routing.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters