Commit Graph

86 Commits

Author SHA1 Message Date
Tobias Reischmann
6555342863 MDL-64891 gradebook: Disable grade display type dependent on grade type
If the grade types text or none are selected for an item or a category,
none of the 'grade display type' options  will change the displayed
grade within the reports. Thus, we can disable the settings for grade
display type as well as the one for decimal places in this case.
2019-02-18 17:17:25 +01:00
Matt McDermott
d55c1ef2d2 MDL-36501 grades: Include 'Parent Category' on create grade item
Force the edit and creat grade item forms to include the same content. This is accomplished by creating a new grade item and setting the correct category. From there the same logic applied when editing a grade item is applied when creating a grade item.
2017-06-05 09:22:28 -07:00
Michael Spall
d27e1c7519 MDL-56893 grades: Fix edit grade item when grade_report_showmin is false
Check to make sure $data['grademin'] exists. When grade_report_showmin
is false $data['grademin'] doesn't exist.
2016-11-30 11:57:57 -07:00
Mark Nelson
664d8be7ea MDL-48634 core: prevent change of grade values when necessary
Three additional checks have been added.

Once grades have been recorded for the activity/grade item -

1) Do not allow the grade type to be changed.
2) Do not allow the scale to be changed.
3) If we are using ratings do not allow the 'Maximum points'
value to be changed.

Also reordered form elements, removed form elements that
were not necessary, added and changed existing language
strings to improve the overall UI.
2016-02-09 17:46:42 +08:00
Damyon Wiese
e7c71c189b MDL-48634 grades: Make the rescaling option required if maxgrade changes 2016-02-05 18:20:17 +08:00
Damyon Wiese
d629c601c5 MDL-48634 grades: Add an option to rescale when changing the maxgrade 2016-02-05 18:20:17 +08:00
Frederic Massart
8b5c454562 MDL-47703 core_grades: Prevent use of weights with non-aggregated scales 2014-10-27 11:23:54 +08:00
Frederic Massart
f8c8f980c7 MDL-47681 core_grades: Ignore weights of grade items 'none' or 'text'
It can happen that some grade items with the type 'None' have a max
grade different than 0, in which case we would have set a weight for
them which is wrong as they must not have any. This patch always
ignores the grade items 'None' and 'Text' when calculating the
weights and locks the weight UI fields for those items too.
2014-10-16 18:42:27 +08:00
John Okely
044a298e6f MDL-47392 core_grades: Consolidate grade item weight setting location 2014-10-16 15:21:53 +08:00
John Okely
d6447690bd MDL-47006 core_grades: Change category and item forms back to using
aggregationcoef and aggregationcoef2

Part of MDL-46576.
2014-10-03 13:54:07 +08:00
John Okely
b6a1e366a7 MDL-46576 core_grades: MDL-47006 Refactor weightings code for readibility 2014-10-03 13:54:07 +08:00
Mark Nelson
430b9ef507 MDL-47058 core_grades: allow alteration of weight
Part of MDL-46576
2014-10-03 13:51:29 +08:00
Mark Nelson
268085a187 MDL-47058 core_grades: removed unnecessary print_object call
Part of MDL-46576.
2014-10-03 13:51:29 +08:00
Andrew Davis
64b03e5bd7 MDL-47011 core_grade: added ability to un-override grade_item weight 2014-10-03 13:49:41 +08:00
Andrew Davis
0e99979638 MDL-20250 core_grade: added some settings to disable or hide gradebook functionality 2014-09-26 10:19:00 +08:00
Andrew Davis
93dbb21841 MDL-43740 core_grade: Thanks for Robert Russo for the patch. Removed the ability to set manual grade items to grade type "None" 2014-08-11 20:15:00 +08:00
Dan Poltawski
45a9f90a74 MDL-38807 grades: missing setType() calls
In grade category, item and grade forms. Most of these
values are floats handled by format_/unformat_float functions, the
text fields are handled using format_text().
2013-04-22 16:31:33 +01:00
Frederic Massart
455dc0de61 MDL-18301 Gradebook: Added feature for components to control grade visibility 2012-07-06 09:52:46 +08:00
Andrew Davis
a153c9f2fe MDL-30999 grade: updated Grade API phpdocs 2012-02-14 14:04:19 +07:00
Petr Skoda
6ef4878b86 spelling fixes 2010-09-17 18:56:53 +00:00
David Mudrak
12b0938c2b MDL-21695 Replaced grade/plusfactor.html
AMOS BEGIN
 HLP grade/plusfactor.html,[plusfactor_help,core_grades]
AMOS END
2010-06-18 15:41:47 +00:00
David Mudrak
d4a11ee52a MDL-21695 Replaced grade/multfactor.html
AMOS BEGIN
 HLP grade/multfactor.html,[multfactor_help,core_grades]
AMOS END
2010-06-18 13:56:40 +00:00
David Mudrak
731bc4ccc3 MDL-21695 Replaced grade/locked.html
No AMOS script here, to be translated from scratch.
2010-06-07 21:58:16 +00:00
David Mudrak
8c38a052e4 MDL-21695 Removed grade/lockedafter.html as suggested by Helen 2010-06-07 21:49:21 +00:00
David Mudrak
d75817e1dd MDL-21695 Replaced grade/iteminfo.html
AMOS BEGIN
 HLP grade/iteminfo.html,[iteminfo_help,core_grades]
AMOS END
2010-06-07 16:11:55 +00:00
David Mudrak
d7a04343b2 MDL-21695 Replaced grade/hidden.html and removed grade/hiddenuntil.html
No auto AMOS replacement here as the original HTML help is not suitable
for the new help system. Helen recommended to remove hiddenuntil help.
2010-06-07 09:35:45 +00:00
David Mudrak
3d83539cb3 MDL-22062 Make idnumber of additional module grade items editable in the gradebook
This patch allows grade items with itemnumber > 0 being edited in the
gradebook. It also improves the grade_verify_idnumber() so that it does
not allow the item with itemnumber > 0 have the same idnumber as the
major grade item with itemnumber 0.
2010-06-05 19:53:40 +00:00
David Mudrak
6cb9d6e2aa MDL-21695 Replaced grade/gradetype.html
AMOS BEGIN
 HLP grade/gradetype.html,[gradetype_help,core_grades]
AMOS END
2010-06-01 16:06:01 +00:00
David Mudrak
5cca21a665 MDL-21695 Replaced grade/gradepass.html
AMOS BEGIN
 HLP grade/gradepass.html,[gradepass_help,core_grades]
AMOS END
2010-06-01 12:26:27 +00:00
David Mudrak
25293fcb7b MDL-21695 Replaced grade/grademin.html
AMOS BEGIN
 HLP grade/grademin.html,[grademin_help,core_grades]
AMOS END
2010-06-01 10:55:47 +00:00
David Mudrak
f5f4bbabbc MDL-21695 Replaced grade/grademax.html
AMOS BEGIN
 HLP grade/grademax.html,[grademax_help,core_grades]
AMOS END
2010-06-01 10:55:25 +00:00
David Mudrak
b2bf67b447 MDL-21695 Replaced grade/scaleid.html
AMOS BEGIN
 HLP grade/scaleid.html,[typescale_help,core_grades]
AMOS END
2010-05-27 21:19:27 +00:00
David Mudrak
56f9c6ceb9 MDL-21695 Replaced grade/gradedisplaytype.html
AMOS BEGIN
 HLP grade/gradedisplaytype.html,[gradedisplaytype_help,core_grades]
AMOS END
2010-05-27 21:04:11 +00:00
David Mudrak
1155b8dbfe MDL-21695 Replaced grade/decimalpoints.html
AMOS BEGIN
 HLP grade/decimalpoints.html,[decimalpoints_help,core_grades]
AMOS END
2010-05-24 15:35:03 +00:00
David Mudrak
3869ab1ac6 MDL-21695 gradebook: Extra credit help strings
String aggregationcoefextraweight is used when editing an item which is
aggregated by Mean of grades (with extra credit) and was reworded to
Extra credit weight (because in fact it is the weight of the extra
credit - if it equals zero, the grade is not extra)

String aggregationcoefextrasum is used for Sum of grades and Simple
weighted mean of grades, meaning a checkbox extra credit yes/no

String aggregationcoefextra is used in the header of table Categories
and items (either Simple view or Full view). It must contain the information
about both meanings of aggregation.

AMOS BEGIN
 HLP grade/aggregationcoefcombo.html,[aggregationcoefextra_help,core_grades]
 HLP grade/aggregationcoefextra.html,[aggregationcoefextraweight_help,core_grades]
 HLP grade/aggregationcoefextrasum.html,[aggregationcoefextrasum_help,core_grades]
AMOS END
2010-05-21 13:46:28 +00:00
David Mudrak
da6fe84865 MDL-21695 help/grade/idnumber.html
AMOS BEGIN
 HLP grade/idnumber.html,[idnumbermod_help,core]
AMOS END
2010-05-18 06:06:52 +00:00
Martin Dougiamas
bfebaf64d8 MDL-22388 Added some checks to kill these scripts dead with an unequivocal notice unless included properly from a Moodle script. 2010-05-13 02:02:05 +00:00
Petr Skoda
6c3ef4103a MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:11:29 +00:00
nicolasconnault
e060e33dc3 MDL-19727 Replaced boilerplates and removed ID tags. Merged from MOODLE_19_STABLE 2009-07-07 02:26:36 +00:00
skodak
d9be236f5d MDL-19091 removed custom scales from different courses + added BC hack; backported from MOODLE_19_STABLE 2009-05-07 08:39:29 +00:00
skodak
147cd91c5b MDL-19015 removed category item editing from normal item edit form 2009-04-29 14:35:47 +00:00
skodak
cb8f67b0a4 MDL-18987 fixed broken item editing when only one category present; merged from MOODLE_19_STABLE 2009-04-27 14:27:13 +00:00
nicolasconnault
653a86489e MDL-18083 Committing gradebook improvements to head 2009-04-16 07:16:44 +00:00
nicolasconnault
7d10995c86 MDL-13778 Added 6 "composite" grade display types for the grader report Merged from MOODLE_19_STABLE 2009-01-08 08:53:20 +00:00
nicolasconnault
4dc81cc70d MDL-15680 Added grade category aggregation settings and weights, plus correct handling of 3 types of weights. 2008-10-10 07:18:19 +00:00
nicolasconnault
5c75a0a3b4 MDL-14967 DB upgrades. All done. Just bug fixing now ;) 2008-06-03 16:10:57 +00:00
skodak
6d62a9d7ee MDL-14008 various SUM aggregation bugfixes; merged from MOODLE_19_STABLE 2008-03-22 21:26:31 +00:00
skodak
94e7961403 MDL-14008 various SUM aggregation bugfixes; merged from MOODLE_19_STABLE 2008-03-22 21:20:33 +00:00
nicolasconnault
072901a9eb MDL-13789 Fixed the index file issue (with a hack) and also documented extra credits properly. 2008-03-21 15:05:51 +00:00
nicolasconnault
4de3322dc8 MDL-13709 66 new lang files, and links to these help files have been updated wherever found. Merging from MOODLE_19_STABLE 2008-03-03 10:25:37 +00:00