Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-qtype_stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-qtype_stack
Commits
f691631c
Commit
f691631c
authored
13 years ago
by
Chris Sangwin
Browse files
Options
Downloads
Patches
Plain Diff
Working through recent changes.
parent
9dabad77
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
questiontestedit.php
+2
-1
2 additions, 1 deletion
questiontestedit.php
questiontestrun.php
+1
-0
1 addition, 0 deletions
questiontestrun.php
with
3 additions
and
1 deletion
questiontestedit.php
+
2
−
1
View file @
f691631c
...
...
@@ -181,7 +181,8 @@ foreach ($question->get_all_question_vars() as $key => $value) {
echo
html_writer
::
end_tag
(
'div'
);
// Display the question text.
// TODO why do we need this as well as the rendered view above?
// We need this as well as the rendered view above so that teachers can see the names of variables used.
// This helps when writing question tests using those variables to reflect randomization.
echo
$OUTPUT
->
heading
(
get_string
(
'questiontext'
,
'qtype_stack'
),
3
);
echo
html_writer
::
tag
(
'pre'
,
$question
->
questiontext
,
array
(
'class'
=>
'questiontext'
));
...
...
This diff is collapsed.
Click to expand it.
questiontestrun.php
+
1
−
0
View file @
f691631c
...
...
@@ -61,6 +61,7 @@ $PAGE->set_url('/question/type/stack/questiontestrun.php', $urlparams);
$PAGE
->
set_context
(
$context
);
$title
=
get_string
(
'testingquestion'
,
'qtype_stack'
,
format_string
(
$question
->
name
));
$PAGE
->
set_title
(
$title
);
// TODO fix page layout and navigation.
// Create the question usage we will use.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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