settings: Add support for adding/removing custom profile fields.

Now that we have support for displaying custom profile fields, this
adds administrator-level support for creating them.

Tweaked by tabbott to fix a few small bugs and clean up the commit message.

Fixes #1760.
This commit is contained in:
Umair Khan
2017-12-14 09:51:45 +05:00
committed by Tim Abbott
parent 7885dd4408
commit c14cefc24c
15 changed files with 386 additions and 0 deletions

View File

@@ -20,12 +20,15 @@ exports.show_or_hide_menu_item = function () {
.find("input:not(.search), button, select").attr("disabled", true);
$(".organization-box [data-name='filter-settings']")
.find("input, button, select").attr("disabled", true);
$(".organization-box [data-name='profile-field-settings']")
.find("input, button, select").attr("disabled", true);
$(".control-label-disabled").css("color", "#333333");
}
};
function _setup_page() {
var options = {
custom_profile_field_types: page_params.custom_profile_field_types,
realm_name: page_params.realm_name,
realm_description: page_params.realm_description,
realm_restricted_to_domain: page_params.realm_restricted_to_domain,