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
e0c86330
authored
Aug 11, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
preventing back button to submit
parent
cc78ffcf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
12 deletions
sails/src/api/controllers/StudentController.js
sails/src/assets/scripts/modules/login/views/login.html
sails/src/assets/scripts/modules/supervisor/views/students_add.html
sails/src/api/controllers/StudentController.js
View file @
e0c86330
...
@@ -143,12 +143,7 @@ module.exports = {
...
@@ -143,12 +143,7 @@ module.exports = {
student
.
current_instruction
=
student
.
lastInstruction
[
0
]
?
student
.
lastInstruction
[
0
].
ins_name
:
"no_instruction"
;
student
.
current_instruction
=
student
.
lastInstruction
[
0
]
?
student
.
lastInstruction
[
0
].
ins_name
:
"no_instruction"
;
// determine supervision level of the requester on the student
// determine supervision level of the requester on the student
var
stu_sup
=
StuSup
.
findOne
({
id_stu
:
student
.
id
,
id_sup
:
req
.
token
.
id
})
var
stu_sup
=
StuSup
.
findOne
({
id_stu
:
student
.
id
,
id_sup
:
req
.
token
.
id
});
.
then
(
function
(
stu_sup
)
{
return
stu_sup
;
})
.
catch
(
function
(
err
)
{
throw
err
});
return
[
student
,
stu_sup
];
return
[
student
,
stu_sup
];
})
})
.
spread
(
function
(
student
,
stu_sup
)
{
.
spread
(
function
(
student
,
stu_sup
)
{
...
...
sails/src/assets/scripts/modules/login/views/login.html
View file @
e0c86330
...
@@ -185,7 +185,7 @@
...
@@ -185,7 +185,7 @@
</div>
</div>
<div
class=
"row form-group"
>
<div
class=
"row form-group"
>
<div
class=
"col-md-4"
>
<div
class=
"col-md-4"
>
<button
class=
"btn btn-default"
ng-click=
"slide.leftTo('accounts')"
>
<<
{{ 'back' | translate }}
</button>
<button
type=
"button"
class=
"btn btn-default"
ng-click=
"slide.leftTo('accounts')"
>
<<
{{ 'back' | translate }}
</button>
</div>
</div>
<div
class=
"col-md-4"
>
<div
class=
"col-md-4"
>
<button
type=
"submit"
class=
"btn btn-primary"
ng-disabled=
"forms.tutorForm.$invalid || !formdata.disclaimer_accepted"
>
{{ 'create_account' | translate }}
>>
</button>
<button
type=
"submit"
class=
"btn btn-primary"
ng-disabled=
"forms.tutorForm.$invalid || !formdata.disclaimer_accepted"
>
{{ 'create_account' | translate }}
>>
</button>
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
</div>
</div>
<div
class=
"row form-group"
>
<div
class=
"row form-group"
>
<div
class=
"col-md-4"
>
<div
class=
"col-md-4"
>
<button
class=
"btn btn-default"
ng-click=
"slide.leftTo('accounts')"
>
<<
{{ 'back' | translate }}
</button>
<button
type=
"button"
class=
"btn btn-default"
ng-click=
"slide.leftTo('accounts')"
>
<<
{{ 'back' | translate }}
</button>
</div>
</div>
<div
class=
"col-md-4"
>
<div
class=
"col-md-4"
>
<button
type=
"submit"
class=
"btn btn-primary"
ng-disabled=
"forms.therapistForm.$invalid || !formdata.disclaimer_accepted"
>
{{ 'create_account' | translate }}
>>
</button>
<button
type=
"submit"
class=
"btn btn-primary"
ng-disabled=
"forms.therapistForm.$invalid || !formdata.disclaimer_accepted"
>
{{ 'create_account' | translate }}
>>
</button>
...
@@ -291,7 +291,7 @@
...
@@ -291,7 +291,7 @@
</div>
</div>
<div
class=
"row form-group"
>
<div
class=
"row form-group"
>
<div
class=
"col-md-4"
>
<div
class=
"col-md-4"
>
<button
class=
"btn btn-default"
ng-click=
"slide.leftTo('accounts')"
>
<<
{{ 'back' | translate }}
</button>
<button
type=
"button"
class=
"btn btn-default"
ng-click=
"slide.leftTo('accounts')"
>
<<
{{ 'back' | translate }}
</button>
</div>
</div>
<div
class=
"col-md-4"
>
<div
class=
"col-md-4"
>
<button
type=
"submit"
class=
"btn btn-primary"
ng-disabled=
"forms.officeForm.$invalid"
>
{{ 'create_account' | translate }}
>>
</button>
<button
type=
"submit"
class=
"btn btn-primary"
ng-disabled=
"forms.officeForm.$invalid"
>
{{ 'create_account' | translate }}
>>
</button>
...
...
sails/src/assets/scripts/modules/supervisor/views/students_add.html
View file @
e0c86330
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
</div>
</div>
<div
class=
"row form-group"
>
<div
class=
"row form-group"
>
<div
class=
"col-md-4 col-md-offset-2 "
>
<div
class=
"col-md-4 col-md-offset-2 "
>
<button
class=
"btn btn-default"
ng-click=
"slide.leftTo('accounts')"
>
<<
{{ 'back' | translate }}
</button>
<button
type=
"button"
class=
"btn btn-default"
ng-click=
"slide.leftTo('accounts')"
>
<<
{{ 'back' | translate }}
</button>
</div>
</div>
<div
class=
"col-md-4"
>
<div
class=
"col-md-4"
>
<button
type=
"submit"
class=
"btn btn-primary float-right"
ng-disabled=
"forms.existing.$invalid"
>
{{ 'link' | translate }}
>>
</button>
<button
type=
"submit"
class=
"btn btn-primary float-right"
ng-disabled=
"forms.existing.$invalid"
>
{{ 'link' | translate }}
>>
</button>
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
</div>
</div>
<div
class=
"row form-group"
>
<div
class=
"row form-group"
>
<div
class=
"col-md-4 col-md-offset-2 "
>
<div
class=
"col-md-4 col-md-offset-2 "
>
<button
class=
"btn btn-default"
ng-click=
"slide.leftTo('accounts')"
>
<<
{{ 'back' | translate }}
</button>
<button
type=
"button"
class=
"btn btn-default"
ng-click=
"slide.leftTo('accounts')"
>
<<
{{ 'back' | translate }}
</button>
</div>
</div>
<div
class=
"col-md-4"
>
<div
class=
"col-md-4"
>
<button
type=
"submit"
class=
"btn btn-primary float-right"
ng-disabled=
"forms.new.$invalid"
>
{{ 'create_account' | translate }}
>>
</button>
<button
type=
"submit"
class=
"btn btn-primary float-right"
ng-disabled=
"forms.new.$invalid"
>
{{ 'create_account' | translate }}
>>
</button>
...
@@ -156,7 +156,7 @@
...
@@ -156,7 +156,7 @@
</div>
</div>
<div
class=
"row form-group"
>
<div
class=
"row form-group"
>
<div
class=
"col-md-4 col-md-offset-2 "
>
<div
class=
"col-md-4 col-md-offset-2 "
>
<button
class=
"btn btn-default"
ng-click=
"slide.leftTo('accounts')"
>
<<
{{ 'back' | translate }}
</button>
<button
type=
"button"
class=
"btn btn-default"
ng-click=
"slide.leftTo('accounts')"
>
<<
{{ 'back' | translate }}
</button>
</div>
</div>
<div
class=
"col-md-4"
>
<div
class=
"col-md-4"
>
<button
type=
"submit"
class=
"btn btn-primary float-right"
ng-disabled=
"forms.test.$invalid"
>
{{ 'create_account' | translate }}
>>
</button>
<button
type=
"submit"
class=
"btn btn-primary float-right"
ng-disabled=
"forms.test.$invalid"
>
{{ 'create_account' | translate }}
>>
</button>
...
...
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