Up to [LON-CAPA] / loncom / interface
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Current tag: BZ5434-fox
Usability improvements for course configuration screen. lonconfigsettings.pm - Wording change in breadcrumbs: "Display/Edit Settings" replaces "Course Settings". - Changes in args passed to courseprefs::process_changes(). - Added call to courseprefs::store_changes to save to environment.db - Added call to courseprefs::display_disallowed(). courseprefs.pm - Moved code to generate array of names of all course configuration settings to &get_allitems() routine to facilitate reuse. - Text descriptions of config settings moved to hash within entry for each category. - Hash ref $disallowed passed as additional arg to process_changes() to accumulate requested changes that are not permitted. - &process_changes() routine used to populate %changes hash with settings that have changed (and their new values). - &check_clone() used to check requested cloners have valid username/domain. - &store_changes() used to populate %storehash with change settings so they can be written to environment.db and also generates output to show what has been changed. - Ability to create (new) custom course setting added tp print_other(). - Replace use of &Apache::lonnet::privileged() with retrieval of &Apache::lonnet::get_domain_roles() for dc roles. - &get_lang_choices() routine added to retrieve hash of supported languages. - &cloners_javascript() added to provide update_cloners() javascript function which will toggle radio buttons appropriately for any domain, any user from specified domain etc. - &update_env() to append certain course config changes to current %env, and also update nohist_courseids.db - &display_disallowed() to display information about requested setting changes which did not occur because they were disallowed. - course environment settings are deleted from environment.db if they are changed to undef. - Work in progess - logging (and logging interface) still needed.