Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
64a5bc94
Commit
64a5bc94
authored
Nov 09, 2016
by
Damyon Wiese
Browse files
MDL-56846 mod_survey: Fix styles in boost
Add bootstrap classes to form fields and remove random centered text.
parent
258d07d3
Changes
4
Hide whitespace changes
Inline
Side-by-side
mod/survey/lib.php
View file @
64a5bc94
...
...
@@ -627,11 +627,11 @@ function survey_print_single($question) {
if
(
$question
->
type
==
0
)
{
// Plain text field
echo
"<textarea rows=
\"
3
\"
cols=
\"
30
\"
name=
\"
q
$question->id
\"
id=
\"
q
$question->id
\"
>
$question->options
</textarea>"
;
echo
"<textarea rows=
\"
3
\"
cols=
\"
30
\"
class=
\"
form-control
\"
name=
\"
q
$question->id
\"
id=
\"
q
$question->id
\"
>
$question->options
</textarea>"
;
}
else
if
(
$question
->
type
>
0
)
{
// Choose one of a number
$strchoose
=
get_string
(
"choose"
);
echo
"<select name=
\"
q
$question->id
\"
id=
\"
q
$question->id
\"
>"
;
echo
"<select name=
\"
q
$question->id
\"
id=
\"
q
$question->id
\"
class=
\"
custom-select
\"
>"
;
echo
"<option value=
\"
0
\"
selected=
\"
selected
\"
>
$strchoose
...</option>"
;
$options
=
explode
(
","
,
$question
->
options
);
foreach
(
$options
as
$key
=>
$val
)
{
...
...
mod/survey/report.php
View file @
64a5bc94
...
...
@@ -472,14 +472,14 @@
echo
"<form action=
\"
report.php
\"
method=
\"
post
\"
>"
;
echo
"<h3>
$strnotes
:</h3>"
;
echo
"<blockquote>"
;
echo
"<textarea name=
\"
notes
\"
rows=
\"
10
\"
cols=
\"
60
\"
>"
;
echo
"<textarea
class=
\"
form-control
\"
name=
\"
notes
\"
rows=
\"
10
\"
cols=
\"
60
\"
>"
;
p
(
$notes
);
echo
"</textarea><br />"
;
echo
"<input type=
\"
hidden
\"
name=
\"
action
\"
value=
\"
student
\"
/>"
;
echo
"<input type=
\"
hidden
\"
name=
\"
sesskey
\"
value=
\"
"
.
sesskey
()
.
"
\"
/>"
;
echo
"<input type=
\"
hidden
\"
name=
\"
student
\"
value=
\"
$student
\"
/>"
;
echo
"<input type=
\"
hidden
\"
name=
\"
id
\"
value=
\"
$cm->id
\"
/>"
;
echo
"<input type=
\"
submit
\"
value=
\"
"
.
get_string
(
"savechanges"
)
.
"
\"
/>"
;
echo
"<input type=
\"
submit
\"
class=
\"
btn btn-primary
\"
value=
\"
"
.
get_string
(
"savechanges"
)
.
"
\"
/>"
;
echo
"</blockquote>"
;
echo
"</form>"
;
echo
"</div>"
;
...
...
mod/survey/view.php
View file @
64a5bc94
...
...
@@ -191,7 +191,7 @@ $PAGE->requires->string_for_js('questionsnotanswered', 'survey');
$PAGE
->
requires
->
js_init_call
(
'M.mod_survey.init'
,
$checkarray
,
true
,
$module
);
echo
'<br />'
;
echo
'<input type="submit" value="'
.
get_string
(
"clicktocontinue"
,
"survey"
)
.
'" />'
;
echo
'<input type="submit"
class="btn btn-primary"
value="'
.
get_string
(
"clicktocontinue"
,
"survey"
)
.
'" />'
;
echo
'</div>'
;
echo
"</form>"
;
...
...
theme/boost/scss/moodle/modules.scss
View file @
64a5bc94
...
...
@@ -259,13 +259,6 @@ div#dock {
}
}
.resultgraph
,
.reportsummary
,
.studentreport
,
.reportbuttons
,
.centerpara
{
text-align
:
center
;
}
}
.nav
.caret
{
...
...
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