Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5a341b73
authored
Jan 10, 2018
by
Sebastián Collado Montañez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
student birthdate validation
parent
824216d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
sails/src/assets/scripts/modules/student/controllers/setup.js
sails/src/assets/scripts/modules/student/views/setup.html
sails/src/assets/scripts/modules/student/controllers/setup.js
View file @
5a341b73
...
...
@@ -18,6 +18,9 @@ dashboardControllers.controller('StudentSetupCtrl', function StudentSetupCtrl(
lodash
,
ngToast
)
{
// For date validation
$scope
.
maxDate
=
new
Date
();
// For tab navigation (here too, if the user refresh the page...)
$scope
.
nav
.
tab
=
'setup'
;
...
...
sails/src/assets/scripts/modules/student/views/setup.html
View file @
5a341b73
...
...
@@ -136,7 +136,7 @@
<div
class=
"form-group"
>
<label
translate
>
birthdate
</label>
<p
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
datepicker-popup=
" {{ 'day_format' | translate }}"
ng-model=
"formUser.birthdate"
placeholder=
"{{ 'birthdate' | translate }}"
is-open=
"opened"
close-text=
"{{'close' | translate}}"
required
/>
<input
type=
"text"
class=
"form-control"
datepicker-popup=
" {{ 'day_format' | translate }}"
ng-model=
"formUser.birthdate"
placeholder=
"{{ 'birthdate' | translate }}"
is-open=
"opened"
close-text=
"{{'close' | translate}}"
max-date=
"maxDate"
required
/>
<span
class=
"input-group-btn"
>
<button
type=
"button"
class=
"btn btn-default"
ng-click=
"openCalendar($event)"
><i
class=
"glyphicon glyphicon-calendar"
></i></button>
</span>
...
...
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