115 Commits

Author SHA1 Message Date
tjhunt
8bc590f5df qtypes help: MDL-5106 Create questiontype help file dynamically 2009-02-26 07:07:40 +00:00
tjhunt
b974f94757 quiz editing: MDL-18355 Try to improve the discoverability of Description again. 2009-02-26 06:33:18 +00:00
tjhunt
7cf3af550c quiz editing: MDL-18355 further refinements to the UI. Thanks Olli. 2009-02-26 05:53:31 +00:00
tjhunt
cd120b2344 quiz editing / question bank: MDL-18355 Convert the add question drop-down to be a button that pops up a YUI dialogue.
That allows us to have a few sentences explanation of each question type, and is also easier to fit into a tight layout.

This commit should also fix MDL-18214 Layout screwed in Safari with long category names.
2009-02-25 07:14:03 +00:00
pichetp
38e74ec41c MDL-16345 changing &course to &courseid
line1079
  return $CFG->wwwroot . '/question/preview.php?id=' . $questionid . '&courseid=' . $this->course->id;
2009-02-23 20:20:07 +00:00
tjhunt
2d1e69d37b question bank: MDL-18215 select all checkbox does not always work. 2009-02-13 05:06:01 +00:00
tjhunt
2a874d65ce quiz editing: MDL-17455 refactor the editing code to use the locallib functions to print the icons.
Also, use the new method in the random question class to get the list of random questions reliably.
2009-02-11 10:08:07 +00:00
tjhunt
692d0480e0 question bank: MDL-16345 minor pritification. 2009-01-23 07:29:12 +00:00
tjhunt
bfb1691da3 question bank: MDL-18000 Make select all work by clicking the checkbox column heading.
Yay! I got bug 18000 and it is already fixed.
2009-01-23 06:05:25 +00:00
tjhunt
b7a9dc5193 question bank: MDL-17992 and MDL-17397. Put back questiontext as a separate row option, and increase consistenscy between stand-alone qbank and the display in the quiz editing page. 2009-01-23 05:01:37 +00:00
tjhunt
e4d1d5e010 question bank: MDL-17871 finish refactor of code into one class per column.
Needs tidying up, but basically there, so checking it in.
2009-01-22 09:19:37 +00:00
tjhunt
971c6fca06 question bank: MDL-17871 Kill most of the duplicated code between mod/quiz/editlib.php and question/editlib.php 2009-01-22 05:38:18 +00:00
tjhunt
0ff5afdfbf question bank: MDL-17871 Possibility for tool tips on column headings. 2009-01-22 02:32:39 +00:00
tjhunt
babdcb4024 question bank: MDL-17302 fix errors in the previous commit. 2009-01-21 08:52:42 +00:00
tjhunt
b221dc6f23 question bank: MDL-17302 refactor question bank display code into a class.
Step 3. Start working ot the code to initialise things from a list of columns, and build the corresponding SQL query.
2009-01-21 08:49:15 +00:00
tjhunt
5bd22790c4 question bank: MDL-17871 refactor the code that displays particular information about each question into classes.
More work in progress. Print column headers, and improve sorting. These classes are still not used.
2009-01-21 07:21:43 +00:00
tjhunt
46795afcbd question bank: MDL-17871 refactor the code that displays particular information about each question into classes.
Work in progress. Most required classes are writted, but nothing uses them yet, and I have not dealt with column headers yet.
2009-01-20 10:11:23 +00:00
tjhunt
5b5e5ab20c question bank: MDL-17302 refactor question bank display code into a class.
Step 2. Remove as many as possbile of the differences between the two classes. This is mostly whitespace and irrelevant code formatting issues, but there are also a few changes to the generated output, taking the best of both views.
2009-01-19 08:50:48 +00:00
tjhunt
f4b879ddea question bank: MDL-17302 refactor question bank display code into a class.
Step 1. Just convert the existing functions quiz_question_showbank and question_showbank and friends into methods of a class and subclass.

More to come.
2009-01-19 05:30:01 +00:00
tjhunt
b4a2e41313 quiz editing: MDL-17284 fix infinite redirect bug. 2009-01-07 07:12:37 +00:00
skodak
973d2660e6 MDL-16613 sesskey cleanup 2009-01-02 10:51:26 +00:00
skodak
d4a1fcaf11 MDL-16613 sesskey cleanup 2009-01-02 10:36:25 +00:00
tjhunt
df4e224454 question bank: MDL-14434 Cannot edit the only question category in a context. 2008-11-27 11:50:29 +00:00
tjhunt
fa583f5f6e quiz editing: MDL-17285 This is Olli Savolainen's new interface for editing quizzes.
This was started and usability tested as a Finnish Summer of Code project, and then Olli did further work on it in his own time to get it in shape for inclusion in Moodle 2.0. I reviewed all the code. There are a number of minor outstanding issues that will be fixed soon. See the subtasks of MDL-17284 for a list.

The goal of these changes is to:
* help teachers new to Moodle, so when they first see the quiz editing page, they don't go "Huh! What on earth am I supposed to do here?"
* help novice Moodle users understand and learn to use some of the more advanced quiz feature;
* but, without slowing down more experienced quiz users.

Naturally, with ambitous goals like that, we won't have managed to satisy everybody, but I think this change is a big step in the right direction.

There is extensive documentation on this project at http://docs.moodle.org/en/Development:Quiz_UI_redesign.
2008-11-20 06:59:11 +00:00
tjhunt
a856c14ed6 Whitespace fix. 2008-09-10 05:26:35 +00:00
tjhunt
fec2094ee6 moodle_database conversion error. 2008-09-09 07:00:16 +00:00
tjhunt
bc59cef302 Comment update. 2008-09-08 06:59:11 +00:00
skodak
1eda520124 MDL-16223, MDL-16222 - error string improvements 2008-08-27 16:34:23 +00:00
dongsheng
ac93d63d2a MDL-14129, remove error() in question module 2008-07-24 04:20:44 +00:00
nicolasconnault
f34488b2e6 MDL-15102 Upgrade to DMLLIB 2.0. Needs further testing and bug-fixing. 2008-06-06 14:43:15 +00:00
tjhunt
5412cd289a MDL-14593 - delete icons in the question bank do not work. This was a regression caused by part of the fix for MDL-13982. I hvae reverted that bit for now, pending a better solution. 2008-05-27 10:35:13 +00:00
dongsheng
0be2c85848 "MDL-14129, fix print_error call" 2008-05-21 07:53:23 +00:00
tjhunt
7fb1b88dc7 MDL-10899 - There is some data associated with some questons that needs to be udpated when moving questions between categories. This commit deals with subquestions, and lays the foundation for fixing the other problem - datasets - which is files as bug 14767. 2008-05-09 15:05:36 +00:00
tjhunt
8e77884c4e MDL-13982 - Performance problem when deleting questions from large question banks. Thanks to Michael Spall for this fix. Merged from MOODLE_18_STABLE.
At the same time, remove direct references to $_REQUEST and $_POST in this code.
2008-04-23 13:45:38 +00:00
tjhunt
92a95034ff Revert bogus error -> print_error changes that were stopping my patch from merging. 2008-04-23 13:42:50 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
tjhunt
e2ae84a298 MDL-13189 - replace the $QTYPE_MENU global with a function call, so that we can set up the language strings later, after $COURSE is initialised. This ensures that the quesion names appear in the right language. 2008-02-28 12:53:02 +00:00
jamiesensei
a18fbcfb50 MDL-13298 "Question bank displays always page 1 after adding new question" this was caused because the question creation page was redirecting back to the question back edit page and telling it to change to the category of the question that was just saved. This was causing the edit page to go back to page 0 of the new category. Now we only go back to page 0 if the category has actually changed. Merged from MOODLE_19_STABLE 2008-02-05 12:14:46 +00:00
tjhunt
987c5893ac MDL-12280 - Question bank forgets sort order when adding multiple questions to a quiz. Merged from MOODLE_19_STABLE. 2007-11-20 15:54:34 +00:00
tjhunt
ea16c547ee Remove a developer debug notice and save a database query. Merged from MOODLE_19_STABLE. 2007-11-20 14:46:50 +00:00
jamiesensei
be801b8b3a MDL-11139 "Need to pass courseid or cmid to this script when moving questions between categories " added COURSE to globals in function that redirects browser to contextmoveq page. 2007-10-03 04:42:57 +00:00
tjhunt
314fc083d9 MDL-10824 - spaces in javascript URLs are not strictly valid. Merged from MOODLE_18_STABLE. 2007-09-19 17:44:52 +00:00
jamiesensei
8f0f605ddf moved question_make_default_categories function to questionlib.php since it is needed by other modules outside the question bank editing interface. 2007-09-18 11:23:29 +00:00
jamiesensei
e7e62d45be Fix for MDL-10823 Access to question edit page denied from quiz preview screen. 2007-08-14 04:22:05 +00:00
moodler
871ab9a3e2 Removed usage of table aliases with "as" as per MDL-10808 2007-08-11 14:28:36 +00:00
jamiesensei
271e6decda merging MOODLE_19_QUESTIONS with HEAD 2007-08-09 21:51:09 +00:00
tjhunt
d0e88092e9 MDL-10130 - Thanks to Adriane Boyd. 2007-06-15 10:25:09 +00:00
tjhunt
da1cc34073 MDL-10089 - Cannot delete questions from question bank - Thanks to Adriane Boyd for the fix. 2007-06-12 11:13:49 +00:00
moodler
335768f419 Removed some RQP code no longer needed MDL-9600 2007-05-24 07:10:22 +00:00
tjhunt
214f6330f9 MDL-9881 - Attempting to delete large number of questions fails due to long URL - Merged from MOODLE_18_STABLE. 2007-05-22 14:04:06 +00:00