diff --git a/lms/templates/admin/application_instance/show.html.jinja2 b/lms/templates/admin/application_instance/show.html.jinja2 index f52c765a78..d2e39af829 100644 --- a/lms/templates/admin/application_instance/show.html.jinja2 +++ b/lms/templates/admin/application_instance/show.html.jinja2 @@ -38,125 +38,153 @@ {% endcall %} {% endmacro %} {% block content %} -
- -
- {{ macros.form_text_field(request, "Name", "name", field_value=instance.name) }} - {{ macros.settings_textarea(instance, "Notes", "hypothesis", "notes") }} - {{ macros.disabled_text_field("Consumer key", instance.consumer_key) }} - {{ macros.disabled_text_field("Shared secret", instance.shared_secret) }} - {{ macros.form_text_field(request, "Deployment ID", "deployment_id", field_value=instance.deployment_id) }} - {{ macros.form_text_field(request, "LMS URL", "lms_url", field_value=instance.lms_url) }} - {{ macros.disabled_text_field("Last Launched", instance.last_launched) }} -
-
- Organization - {{ macros.organization_preview(request, instance.organization) }} -
-
- Registration - {{ macros.registration_preview(request, instance.lti_registration) }} -
-
- Tool Consumer - {{ macros.disabled_text_field("GUID", instance.tool_consumer_instance_guid) }} -
-
- {{ macros.disabled_text_field("Family code", instance.tool_consumer_info_product_family_code) }} -
-
- {{ macros.disabled_text_field("Description", instance.tool_consumer_instance_description) }} -
-
-
-
{{ macros.disabled_text_field("URL", instance.tool_consumer_instance_url) }}
-
{{ macros.disabled_text_field("Name", instance.tool_consumer_instance_name) }}
-
-
-
- {{ macros.disabled_text_field("Email", instance.tool_consumer_instance_contact_email) }} -
-
{{ macros.disabled_text_field("Version", instance.tool_consumer_info_version) }}
-
-
-
- General settings - {{ settings_checkbox("Enable import/export in client", "hypothesis", "import_export_enabled", default=False) }} - {{ settings_checkbox('Enable instructor email digests', 'hypothesis', 'instructor_email_digests_enabled') }} - {{ settings_checkbox("LMS grading scale", "hypothesis", "lms_grading_scale", default=False) }} - {{ settings_checkbox("Grading comments", "hypothesis", "grading_comments", default=False) }} -
-
- Canvas settings - {{ macros.disabled_text_field("API domain", instance.custom_canvas_api_domain) }} - {# Note the mismatch betwween canvas nomenclature and ours #} - {# developer id -> developer key #} - {# developer key -> developer secret #} - {{ macros.form_text_field(request, "Developer ID", "developer_key", field_value=instance.developer_key) }} - {{ macros.form_text_field(request, - "Developer key", - "developer_secret", - placeholder="*" * 25 if instance.developer_secret else "") - }} - {{ settings_checkbox('Files enabled', 'canvas', 'files_enabled') }} - {{ settings_checkbox("Folders enabled", "canvas", "folders_enabled", default=False) }} - {{ settings_checkbox('Groups enabled', 'canvas', 'groups_enabled') }} - {{ settings_checkbox('Sections enabled', 'canvas', 'sections_enabled') }} - {{ settings_checkbox("Pages enabled", "canvas", "pages_enabled", default=False) }} - {{ settings_checkbox("Sections strict membership", "canvas", "strict_section_membership", default=False) }} -
-
- Blackboard settings - {{ settings_checkbox('Groups enabled', 'blackboard', 'groups_enabled') }} - {{ settings_checkbox('Files enabled', 'blackboard', 'files_enabled') }} -
-
- D2L settings - {{ settings_text_field('API Client ID', 'desire2learn', 'client_id') }} - {{ settings_secret_field('API Client secret', 'desire2learn', 'client_secret') }} - {{ settings_checkbox('Groups enabled', 'desire2learn', 'groups_enabled') }} - {{ settings_checkbox('Files enabled', 'desire2learn', 'files_enabled') }} -
-
- Content integrations - {{ settings_checkbox("Google Drive enabled", "google_drive", "files_enabled", default=True) }} - {{ settings_checkbox("Microsoft OneDrive enabled", "microsoft_onedrive", "files_enabled", default=True) }} - {{ settings_checkbox('VitalSource enabled', 'vitalsource', 'enabled') }} - {{ settings_text_field('VitalSource API key', 'vitalsource', 'api_key') }} - {{ settings_text_field('VitalSource SSO user ID field', 'vitalsource', 'user_lti_param') }} - {{ settings_text_field('VitalSource SSO user ID regex', 'vitalsource', 'user_lti_pattern') }} - {{ settings_checkbox('VitalSource disable licence check on SSO', 'vitalsource', 'disable_licence_check') }} - {{ settings_checkbox('JSTOR enabled', 'jstor', 'enabled') }} - {{ settings_text_field('JSTOR site code', 'jstor', 'site_code') }} - {{ settings_checkbox("YouTube enabled", "youtube", "enabled", default=True) }} -
- {{ macros.created_updated_fields(instance) }} -
- +
+
+
- -
- Danger zone - {% call macros.field_body(label="Downgrade to LTI 1.1") %} -
- - -

Downgrade this instance to LTI 1.1 removing its association with a registration and its deployment ID.

-

- This action will break any existing LTI 1.3 assignments. To undo it, upgrade it back again to LTI 1.3 using the same registration and deployment ID. -

-
- {% endcall %} - {% call macros.field_body(label="Move to organization") %} -
- - - -
-

Moving this application instance might have destructive effects.

- {% endcall %} -
+
+
    +
  • +
    + +
    + {{ macros.form_text_field(request, "Name", "name", field_value=instance.name) }} + {{ macros.settings_textarea(instance, "Notes", "hypothesis", "notes") }} + {{ macros.disabled_text_field("Consumer key", instance.consumer_key) }} + {{ macros.disabled_text_field("Shared secret", instance.shared_secret) }} + {{ macros.form_text_field(request, "Deployment ID", "deployment_id", field_value=instance.deployment_id) }} + {{ macros.form_text_field(request, "LMS URL", "lms_url", field_value=instance.lms_url) }} + {{ macros.disabled_text_field("Last Launched", instance.last_launched) }} +
    +
    + Organization + {{ macros.organization_preview(request, instance.organization) }} +
    +
    + Registration + {{ macros.registration_preview(request, instance.lti_registration) }} +
    +
    + Tool Consumer + {{ macros.disabled_text_field("GUID", instance.tool_consumer_instance_guid) }} +
    +
    + {{ macros.disabled_text_field("Family code", instance.tool_consumer_info_product_family_code) }} +
    +
    + {{ macros.disabled_text_field("Description", instance.tool_consumer_instance_description) }} +
    +
    +
    +
    {{ macros.disabled_text_field("URL", instance.tool_consumer_instance_url) }}
    +
    {{ macros.disabled_text_field("Name", instance.tool_consumer_instance_name) }}
    +
    +
    +
    + {{ macros.disabled_text_field("Email", instance.tool_consumer_instance_contact_email) }} +
    +
    {{ macros.disabled_text_field("Version", instance.tool_consumer_info_version) }}
    +
    + {{ macros.created_updated_fields(instance) }} +
    + +
    +
    +
  • +
  • +
    + General settings + {{ settings_checkbox("Enable import/export in client", "hypothesis", "import_export_enabled", default=False) }} + {{ settings_checkbox('Enable instructor email digests', 'hypothesis', 'instructor_email_digests_enabled') }} + {{ settings_checkbox("LMS grading scale", "hypothesis", "lms_grading_scale", default=False) }} + {{ settings_checkbox("Grading comments", "hypothesis", "grading_comments", default=False) }} +
    +
    + Canvas settings + {{ macros.disabled_text_field("API domain", instance.custom_canvas_api_domain) }} + {# Note the mismatch betwween canvas nomenclature and ours #} + {# developer id -> developer key #} + {# developer key -> developer secret #} + {{ macros.form_text_field(request, "Developer ID", "developer_key", field_value=instance.developer_key) }} + {{ macros.form_text_field(request, + "Developer key", + "developer_secret", + placeholder="*" * 25 if instance.developer_secret else "") + }} + {{ settings_checkbox('Files enabled', 'canvas', 'files_enabled') }} + {{ settings_checkbox("Folders enabled", "canvas", "folders_enabled", default=False) }} + {{ settings_checkbox('Groups enabled', 'canvas', 'groups_enabled') }} + {{ settings_checkbox('Sections enabled', 'canvas', 'sections_enabled') }} + {{ settings_checkbox("Pages enabled", "canvas", "pages_enabled", default=False) }} + {{ settings_checkbox("Sections strict membership", "canvas", "strict_section_membership", default=False) }} +
    +
    + Blackboard settings + {{ settings_checkbox('Groups enabled', 'blackboard', 'groups_enabled') }} + {{ settings_checkbox('Files enabled', 'blackboard', 'files_enabled') }} +
    +
    + D2L settings + {{ settings_text_field('API Client ID', 'desire2learn', 'client_id') }} + {{ settings_secret_field('API Client secret', 'desire2learn', 'client_secret') }} + {{ settings_checkbox('Groups enabled', 'desire2learn', 'groups_enabled') }} + {{ settings_checkbox('Files enabled', 'desire2learn', 'files_enabled') }} +
    +
    + Content integrations + {{ settings_checkbox("Google Drive enabled", "google_drive", "files_enabled", default=True) }} + {{ settings_checkbox("Microsoft OneDrive enabled", "microsoft_onedrive", "files_enabled", default=True) }} + {{ settings_checkbox('VitalSource enabled', 'vitalsource', 'enabled') }} + {{ settings_text_field('VitalSource API key', 'vitalsource', 'api_key') }} + {{ settings_text_field('VitalSource SSO user ID field', 'vitalsource', 'user_lti_param') }} + {{ settings_text_field('VitalSource SSO user ID regex', 'vitalsource', 'user_lti_pattern') }} + {{ settings_checkbox('VitalSource disable licence check on SSO', 'vitalsource', 'disable_licence_check') }} + {{ settings_checkbox('JSTOR enabled', 'jstor', 'enabled') }} + {{ settings_text_field('JSTOR site code', 'jstor', 'site_code') }} + {{ settings_checkbox("YouTube enabled", "youtube", "enabled", default=True) }} +
    +
    + +
    + +
  • +
  • +
    + Danger zone + {% call macros.field_body(label="Downgrade to LTI 1.1") %} +
    + + +

    Downgrade this instance to LTI 1.1 removing its association with a registration and its deployment ID.

    +

    + This action will break any existing LTI 1.3 assignments. To undo it, upgrade it back again to LTI 1.3 using the same registration and deployment ID. +

    +
    + {% endcall %} + {% call macros.field_body(label="Move to organization") %} +
    + + + +
    +

    Moving this application instance might have destructive effects.

    + {% endcall %} +
    +
  • +
+
+
{% endblock %} diff --git a/lms/templates/admin/base.html.jinja2 b/lms/templates/admin/base.html.jinja2 index 302af66d09..f52134e7ac 100644 --- a/lms/templates/admin/base.html.jinja2 +++ b/lms/templates/admin/base.html.jinja2 @@ -14,6 +14,17 @@ + + {% block base_navbar %}