Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
gredu_labs
Commits
f9bd5685
Commit
f9bd5685
authored
Mar 16, 2016
by
Vassilis Kanellopoulos
Browse files
issue #33
parent
94b5710b
Changes
2
Hide whitespace changes
Inline
Side-by-side
module/tpe_survey/public/js/schools/tpe_survey.js
View file @
f9bd5685
...
...
@@ -136,4 +136,24 @@
evt
.
preventDefault
();
});
(
function
()
{
var
origA
,
origB
;
$
(
'
#tpe_survey-form-modal
'
).
on
(
'
change
'
,
'
select#el-already_using_tpe
'
,
function
(
evt
)
{
if
(
!
origA
)
{
origA
=
$
(
'
.assets_in_use-container > .form-group > label
'
).
html
();
}
if
(
!
origB
)
{
origB
=
$
(
'
.software_in_use-container > .form-group > label
'
).
html
();
}
if
(
$
(
this
).
val
()
===
'
ΟΧΙ
'
)
{
$
(
'
.assets_in_use-container > .form-group > label
'
).
html
(
'
Υλικό που θα χρησιμοποιούσε
'
);
$
(
'
.software_in_use-container > .form-group > label
'
).
html
(
'
Λογισμικό που θα χρησιμοποιούσε
'
);
}
else
{
$
(
'
.assets_in_use-container > .form-group > label
'
).
html
(
origA
);
$
(
'
.software_in_use-container > .form-group > label
'
).
html
(
origB
);
}
});
}
());
}(
jQuery
,
_
,
window
.
EDULABS
.
utils
));
module/tpe_survey/templates/tpe_survey/form.twig
View file @
f9bd5685
...
...
@@ -13,14 +13,18 @@
<
div
class
=
"
modal-body
"
>
{{
macros.select
(
'already_using_tpe'
,
'Χρησιμοποιεί ήδη ΤΠΕ'
,
tpe_survey.already_using_tpe
,
''
,
{
'required'
:
''
}
)
}}
{{
macros.select
(
'knowledge_level'
,
'Επίπεδο γνώσης ΤΠΕ'
,
tpe_survey.knowledge_levels
,
''
,
{
'required'
:
''
}
)
}}
<
div
class
=
"
assets_in_use-container
"
>
{{
form.multicheckbox
(
'assets_in_use'
,
'Υλικό που χρησιμοποιεί'
,
tpe_survey.assets_in_use
,
''
,
{
freeText
:
true
,
required
:
''
}
)
}}
<
div
class
=
"
form-group
"
>
<
label
class
=
"
control-label hidden-xs hidden-sm col-md-3
"
>
Λογισμικό
που
χρησιμοποιεί
<
/label
>
<
div
class
=
"
col-xs-12 col-sm-12 col-md-9 text-left
"
>
{%
for
swKey
,
sw
in
tpe_survey.software_in_use
%}
<
label
class
=
"
control-label
"
>
{{
sw.label
}}
<
/label
>
<
input
class
=
"
form-control
"
type
=
"
text
"
name
=
"
{{
swKey
}}
"
placeholder
=
"
{{
sw.desc
}}
"
>
{%
endfor
%}
<
/div
>
<
div
class
=
"
software_in_use-container
"
>
<
div
class
=
"
form-group
"
>
<
label
class
=
"
control-label hidden-xs hidden-sm col-md-3
"
>
Λογισμικό
που
χρησιμοποιεί
<
/label
>
<
div
class
=
"
col-xs-12 col-sm-12 col-md-9 text-left
"
>
{%
for
swKey
,
sw
in
tpe_survey.software_in_use
%}
<
label
class
=
"
control-label
"
>
{{
sw.label
}}
<
/label
>
<
input
class
=
"
form-control
"
type
=
"
text
"
name
=
"
{{
swKey
}}
"
placeholder
=
"
{{
sw.desc
}}
"
>
{%
endfor
%}
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
form-group
"
>
...
...
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