Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
upsmf-examinations-module
Commits
eda3a343
Unverified
Commit
eda3a343
authored
1 year ago
by
Arun Nair
Committed by
GitHub
1 year ago
Browse files
Options
Download
Plain Diff
Merge pull request #3 from arun1205/examCycle
Exam cycle html page changes
parents
7193e9b8
c14dfd2c
master
bulk-upload-csv
examcycleValiation
No related merge requests found
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
src/app/modules/manage-exams-module/components/exam-cycle/exam-cycle.component.html
+131
-0
...ms-module/components/exam-cycle/exam-cycle.component.html
src/app/modules/manage-exams-module/components/exam-cycle/exam-cycle.component.scss
+102
-0
...ms-module/components/exam-cycle/exam-cycle.component.scss
src/app/modules/manage-exams-module/components/exam-cycle/exam-cycle.component.spec.ts
+23
-0
...module/components/exam-cycle/exam-cycle.component.spec.ts
src/app/modules/manage-exams-module/components/exam-cycle/exam-cycle.component.ts
+12
-0
...xams-module/components/exam-cycle/exam-cycle.component.ts
src/app/modules/manage-exams-module/manage-exams-module-routing.module.ts
+2
-1
...manage-exams-module/manage-exams-module-routing.module.ts
src/app/modules/manage-exams-module/manage-exams-module.module.ts
+13
-2
...modules/manage-exams-module/manage-exams-module.module.ts
src/app/modules/shared/components/header/header.component.html
+10
-9
...pp/modules/shared/components/header/header.component.html
src/app/modules/shared/components/header/header.component.scss
+5
-9
...pp/modules/shared/components/header/header.component.scss
src/app/modules/shared/shared.module.ts
+2
-1
src/app/modules/shared/shared.module.ts
with
300 additions
and
22 deletions
+300
-22
src/app/modules/manage-exams-module/components/exam-cycle/exam-cycle.component.html
0 → 100644
+
131
−
0
View file @
eda3a343
<app-header></app-header>
<div
class=
"examcycle"
>
<div
class=
"container"
>
<div
class=
"body-header flex justify-between items-center mb-4 "
>
<h2
style=
"font-weight: 500"
>
Edit
</h2>
<div
class=
"button-group "
>
<button
class=
"btn-1"
>
Cancel
</button>
<button
class=
"btn-2"
>
Save
</button>
</div>
</div>
<div
class=
"body"
>
<form
class=
"examcycleform"
>
<div
class=
"flex flex-column"
>
<div
class=
"flex flex-row "
style=
"gap: 1.5rem"
>
<div
class=
"flex flex-column "
>
<h4
style=
"font-weight:400;margin-bottom:1rem;margin-top:2rem"
>
Exam cycle
</h4>
<mat-form-field
appearance=
"outline"
style=
"width:16.5rem"
>
<mat-label>
Exam cycle
</mat-label>
<mat-select>
<mat-option
value=
"one"
>
First option
</mat-option>
<mat-option
value=
"two"
>
Second option
</mat-option>
</mat-select>
</mat-form-field>
</div>
<div
class=
"flex flex-column"
>
<h4
style=
"font-weight:400;margin-bottom:1rem;margin-top:2rem"
>
Course name
</h4>
<mat-form-field
appearance=
"outline"
style=
"width:16.5rem"
>
<mat-label>
Course name
</mat-label>
<mat-select>
<mat-option
value=
"one"
>
First option
</mat-option>
<mat-option
value=
"two"
>
Second option
</mat-option>
</mat-select>
</mat-form-field>
</div>
</div>
<div
class=
"flex flex-row "
style=
"gap: 1.5rem"
>
<div
class=
"flex flex-column "
>
<h4
style=
"font-weight:400;margin-bottom:1rem;margin-top:2rem"
>
Start date
</h4>
<mat-form-field
appearance=
"outline"
style=
"width:16.5rem"
>
<mat-label>
Choose a date
</mat-label>
<input
matInput
[matDatepicker]=
"picker"
>
<mat-datepicker-toggle
matIconSuffix
[for]=
"picker"
></mat-datepicker-toggle>
<mat-datepicker
#picker
></mat-datepicker>
</mat-form-field>
</div>
<div
class=
"flex flex-column"
>
<h4
style=
"font-weight:400;margin-bottom:1rem;margin-top:2rem"
>
End date
</h4>
<mat-form-field
appearance=
"outline"
style=
"width:16.5rem"
>
<mat-label>
Choose a date
</mat-label>
<input
matInput
[matDatepicker]=
"picker1"
>
<mat-datepicker-toggle
matIconSuffix
[for]=
"picker1"
></mat-datepicker-toggle>
<mat-datepicker
#picker1
></mat-datepicker>
</mat-form-field>
</div>
</div>
<div
class=
"flex flex-row "
style=
"gap: 1.5rem"
>
<div
class=
"flex flex-column "
>
<h4
style=
"font-weight:400;margin-bottom:1rem;margin-top:2rem"
>
Exam name
</h4>
<mat-form-field
appearance=
"outline"
style=
"width:16.5rem"
>
<mat-label>
Exam name
</mat-label>
<input
matInput
placeholder=
"Exam name"
>
</mat-form-field>
</div>
<div
class=
"flex flex-column"
>
<h4
style=
"font-weight:400;margin-bottom:1rem;margin-top:2rem"
>
Exam date
</h4>
<mat-form-field
appearance=
"outline"
style=
"width:16.5rem"
>
<mat-label>
Choose a date
</mat-label>
<input
matInput
[matDatepicker]=
"picker3"
>
<mat-datepicker-toggle
matIconSuffix
[for]=
"picker3"
></mat-datepicker-toggle>
<mat-datepicker
#picker3
></mat-datepicker>
</mat-form-field>
</div>
<div
class=
"flex flex-column "
>
<h4
style=
"font-weight:400;margin-bottom:1rem;margin-top:2rem"
>
Start time
</h4>
<mat-form-field
appearance=
"outline"
style=
"width:16.5rem"
>
<mat-label>
hh:mm
</mat-label>
<input
class=
"custom-timepicker"
style=
"border:none;"
matTimepicker
#t
="
matTimepicker
"
[strict]=
"false"
id=
"timepicker-example"
mode=
"12h"
>
<mat-icon
matSuffix
(click)=
"t.showDialog()"
>
access_time
</mat-icon>
</mat-form-field>
</div>
<div
class=
"flex flex-column"
>
<h4
style=
"font-weight:400;margin-bottom:1rem;margin-top:2rem"
>
End time
</h4>
<mat-form-field
appearance=
"outline"
style=
"width:16.5rem"
>
<mat-label>
hh:mm
</mat-label>
<input
class=
"custom-timepicker"
style=
"border:none;"
matTimepicker
#t
="
matTimepicker
"
[strict]=
"false"
id=
"timepicker-example"
mode=
"12h"
>
<mat-icon
matSuffix
(click)=
"t.showDialog()"
>
access_time
</mat-icon>
</mat-form-field>
</div>
</div>
<div
class=
"flex flex-row "
style=
"gap: 1.5rem"
>
<div
class=
"flex flex-column"
>
<button
class=
"btn-3"
style=
"margin-top:1rem"
>
Add Exam
</button>
</div>
</div>
<div
class=
"flex flex-row "
style=
"margin-top:2rem"
>
<div
class=
"flex flex-column"
>
<div
class=
"card1"
>
<div
class=
"flex flex-row"
>
<div
class=
"flex flex-column"
>
<h3
style=
"font-weight:500;text-align:start;margin-left:2rem"
>
Exam 1
</h3>
<mat-icon
style=
"margin-left:15rem;margin-top: -48px"
>
close
</mat-icon>
</div>
</div>
<h5
style=
"font-weight:300;text-align:start;margin-left:2rem"
>
Exam date: dd/mm/yyyy
</h5>
<div
style=
"border-color:grey;background-color:#F0F3F4;margin-right: 2rem;margin-left: 2rem;height:1.5rem;border-bottom-left-radius: 8px;border-top-left-radius: 8px;border: 0.5px solid rgb(161, 159, 159)"
>
<div
class=
"time"
>
Exam time : 10AM-12PM
</div>
</div>
</div>
</div>
<div
class=
"flex flex-column"
style=
"margin-left: 2rem"
>
<div
class=
"card1"
>
<div
class=
"flex flex-row"
>
<div
class=
"flex flex-column"
>
<h3
style=
"font-weight:500;text-align:start;margin-left:2rem"
>
Exam 2
</h3>
<mat-icon
style=
"margin-left:15rem;margin-top: -48px"
>
close
</mat-icon>
</div>
</div>
<h5
style=
"font-weight:300;text-align:start;margin-left:2rem"
>
Exam date: dd/mm/yyyy
</h5>
<div
style=
"border-color:grey;background-color:#F0F3F4;margin-right: 2rem;margin-left: 2rem;height:1.5rem;border-bottom-left-radius: 8px;border-top-left-radius: 8px;border: 0.5px solid rgb(161, 159, 159)"
>
<div
class=
"time"
>
Exam time : 10AM-12PM
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/app/modules/manage-exams-module/components/exam-cycle/exam-cycle.component.scss
0 → 100644
+
102
−
0
View file @
eda3a343
.examcycle
{
min-height
:
94vh
;
background-color
:
#F0F3F4
;
width
:
100%
;
}
.container
{
margin-left
:
20rem
;
margin-right
:
20rem
;
}
.body-header
{
display
:flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
}
.button-group
{
display
:
flex
;
flex-direction
:
row
;
gap
:
1rem
;
align-items
:
center
;
}
.btn-1
{
color
:
#045DAD
;
width
:
6rem
;
padding
:
12px
;
border-width
:
16px
;
border-radius
:
4px
;
font-weight
:
600
;
border
:
1
.5px
solid
rgba
(
4
,
93
,
173
,
1
);
opacity
:
1
;
}
.btn-2
{
background-color
:
#045DAD
;
color
:
#fff
;
width
:
6rem
;
padding
:
12px
;
border-radius
:
4px
;
font-weight
:
600
;
border
:
1
.5px
solid
rgba
(
4
,
93
,
173
,
1
);
opacity
:
1
;
}
.body
{
width
:
100%
;
background-color
:
#fff
;
height
:
fit-content
;
padding-bottom
:
2rem
;
}
.examcycleform
{
display
:
flex
;
margin-left
:
2rem
;
}
.btn-3
{
background-color
:
#045DAD
;
color
:
#fff
;
width
:
6rem
;
padding
:
12px
;
border-radius
:
4px
;
font-weight
:
600
;
border
:
1
.5px
solid
rgba
(
4
,
93
,
173
,
1
);
opacity
:
1
;
}
.card1
{
height
:
9rem
;
width
:
17rem
;
border
:
thin
solid
rgb
(
185
,
181
,
181
);
border-radius
:
4px
;
}
.time
{
font-weight
:
100
;
font-size
:
small
;
margin-left
:
4px
;
margin-top
:
3px
}
::ng-deep
.custom-timepicker
:focus
{
appearance
:
outline
;
outline
:
none
;
/* This removes the default blue outline on some browsers */
border-color
:
rgba
(
4
,
93
,
173
,
1
);
border-width
:
12px
;
}
.custom-timepicker
:focus
{
outline
:none
;
}
.custom-timepicker
{
font-size
:
medium
;
}
This diff is collapsed.
Click to expand it.
src/app/modules/manage-exams-module/components/exam-cycle/exam-cycle.component.spec.ts
0 → 100644
+
23
−
0
View file @
eda3a343
import
{
ComponentFixture
,
TestBed
}
from
'
@angular/core/testing
'
;
import
{
ExamCycleComponent
}
from
'
./exam-cycle.component
'
;
describe
(
'
ExamCycleComponent
'
,
()
=>
{
let
component
:
ExamCycleComponent
;
let
fixture
:
ComponentFixture
<
ExamCycleComponent
>
;
beforeEach
(
async
()
=>
{
await
TestBed
.
configureTestingModule
({
declarations
:
[
ExamCycleComponent
]
})
.
compileComponents
();
fixture
=
TestBed
.
createComponent
(
ExamCycleComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'
should create
'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
This diff is collapsed.
Click to expand it.
src/app/modules/manage-exams-module/components/exam-cycle/exam-cycle.component.ts
0 → 100644
+
12
−
0
View file @
eda3a343
import
{
Component
}
from
'
@angular/core
'
;
@
Component
({
selector
:
'
app-exam-cycle
'
,
templateUrl
:
'
./exam-cycle.component.html
'
,
styleUrls
:
[
'
./exam-cycle.component.scss
'
]
})
export
class
ExamCycleComponent
{
}
This diff is collapsed.
Click to expand it.
src/app/modules/manage-exams-module/manage-exams-module-routing.module.ts
+
2
−
1
View file @
eda3a343
...
@@ -3,6 +3,7 @@ import { RouterModule, Routes } from '@angular/router';
...
@@ -3,6 +3,7 @@ import { RouterModule, Routes } from '@angular/router';
import
{
ExamsTableComponent
}
from
'
./components/exams-table/exams-table.component
'
;
import
{
ExamsTableComponent
}
from
'
./components/exams-table/exams-table.component
'
;
import
{
HeaderComponent
}
from
'
../shared/components/header/header.component
'
;
import
{
HeaderComponent
}
from
'
../shared/components/header/header.component
'
;
import
{
ExamCycleComponent
}
from
'
./components/exam-cycle/exam-cycle.component
'
;
const
routes
:
Routes
=
[
const
routes
:
Routes
=
[
...
@@ -10,7 +11,7 @@ const routes: Routes = [
...
@@ -10,7 +11,7 @@ const routes: Routes = [
path
:
'
manage-exams
'
,
component
:
ExamsTableComponent
,
pathMatch
:
'
full
'
,
path
:
'
manage-exams
'
,
component
:
ExamsTableComponent
,
pathMatch
:
'
full
'
,
},
},
{
{
path
:
'
header
'
,
component
:
Header
Component
,
pathMatch
:
'
full
'
,
path
:
'
exam-cycle
'
,
component
:
ExamCycle
Component
,
pathMatch
:
'
full
'
,
},
},
];
];
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/manage-exams-module/manage-exams-module.module.ts
+
13
−
2
View file @
eda3a343
...
@@ -4,15 +4,26 @@ import { CommonModule } from '@angular/common';
...
@@ -4,15 +4,26 @@ import { CommonModule } from '@angular/common';
import
{
ManageExamsModuleRoutingModule
}
from
'
./manage-exams-module-routing.module
'
;
import
{
ManageExamsModuleRoutingModule
}
from
'
./manage-exams-module-routing.module
'
;
import
{
ExamsTableComponent
}
from
'
./components/exams-table/exams-table.component
'
;
import
{
ExamsTableComponent
}
from
'
./components/exams-table/exams-table.component
'
;
import
{
SharedModule
}
from
'
../shared/shared.module
'
;
import
{
SharedModule
}
from
'
../shared/shared.module
'
;
import
{
ExamCycleComponent
}
from
'
./components/exam-cycle/exam-cycle.component
'
;
import
{
MaterialModule
}
from
'
src/material/material.module
'
;
import
{
MatTimepickerModule
}
from
'
mat-timepicker
'
;
@
NgModule
({
@
NgModule
({
declarations
:
[
declarations
:
[
ExamsTableComponent
ExamsTableComponent
,
ExamCycleComponent
],
],
imports
:
[
imports
:
[
CommonModule
,
CommonModule
,
ManageExamsModuleRoutingModule
,
ManageExamsModuleRoutingModule
,
SharedModule
SharedModule
,
MaterialModule
,
MatTimepickerModule
,
]
]
})
})
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/shared/components/header/header.component.html
+
10
−
9
View file @
eda3a343
<nav
class=
"navbar navbar-expand-lg navbar-light bg-light"
>
<div
class=
"header-container"
>
<div
class=
"header-container bg-white"
>
<div>
<div
class=
"flex flex-row justify-content-between"
style=
"justify-content: space-between;"
>
<img
src=
"../../assets/images/sunbird_logo.png"
alt=
"UPSMF logo"
>
<div
class=
"flex flex-column"
>
</div>
<img
style=
"width: 17rem;"
src=
"../../assets/images/sunbird_logo.png"
alt=
"UPSMF logo"
>
<div>
<button>
GJ
</button>
</div>
</div>
</div>
</nav>
<div
class=
"flex flex-column"
>
\ No newline at end of file
<button>
GJ
</button>
</div>
</div>
</div>
This diff is collapsed.
Click to expand it.
src/app/modules/shared/components/header/header.component.scss
+
5
−
9
View file @
eda3a343
.header-container
{
.header-container
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
img
{
margin-left
:
12rem
;
margin-left
:
12rem
;
width
:
1
7
rem
;
margin-right
:
1
2
rem
;
}
}
button
{
button
{
margin-left
:
72rem
;
background-color
:
forestgreen
;
background-color
:
forestgreen
;
border-radius
:
8px
;
border-radius
:
8px
;
border
:
none
;
border
:
none
;
color
:
white
;
color
:
white
;
height
:
26px
;
margin-top
:
1rem
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/app/modules/shared/shared.module.ts
+
2
−
1
View file @
eda3a343
...
@@ -9,6 +9,7 @@ import {MaterialModule} from '../../../material/material.module';
...
@@ -9,6 +9,7 @@ import {MaterialModule} from '../../../material/material.module';
import
{
HeaderComponent
}
from
'
./components/header/header.component
'
;
import
{
HeaderComponent
}
from
'
./components/header/header.component
'
;
@
NgModule
({
@
NgModule
({
declarations
:
[
declarations
:
[
SharedTableComponent
,
SharedTableComponent
,
...
@@ -17,7 +18,7 @@ import { HeaderComponent } from './components/header/header.component';
...
@@ -17,7 +18,7 @@ import { HeaderComponent } from './components/header/header.component';
imports
:
[
imports
:
[
CommonModule
,
CommonModule
,
//TableModule,
//TableModule,
MaterialModule
MaterialModule
,
],
],
exports
:
exports
:
[
[
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets