-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add "Setup auth org ID" action for Enterprise Customers
ENT-8169
- Loading branch information
Showing
12 changed files
with
258 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
Your project description goes here. | ||
""" | ||
|
||
__version__ = "4.8.18" | ||
__version__ = "4.8.19" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
enterprise/templates/enterprise/admin/setup_auth_org_id.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{% extends "admin/base_site.html" %} | ||
{% load i18n static admin_urls %} | ||
|
||
{% block breadcrumbs %} | ||
<div class="breadcrumbs"> | ||
<a href="{% url 'admin:index' %}">{% trans "Home" %}</a> | ||
› <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{{ opts.app_config.verbose_name }}</a> | ||
› {% if has_change_permission %} | ||
<a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst }}</a> | ||
{% else %} | ||
{{ opts.verbose_name_plural|capfirst }} | ||
{% endif %} | ||
› {% if has_change_permission %} | ||
<a href="{% url opts|admin_urlname:'change' enterprise_customer.uuid %}"> | ||
{{ enterprise_customer|truncatewords:"18" }} | ||
</a> | ||
{% else %} | ||
{{ enterprise_customer|capfirst }} | ||
{% endif %} | ||
› | ||
{% trans "Setup auth org ID" %} | ||
</div> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div id="content-main"> | ||
<div class="forms-panel"> | ||
<h1>{% trans "Setup auth org ID" %}</h1> | ||
<p> | ||
This action will configure SSO to GetSmarter using edX credentials via Auth0, and populate this enterprise | ||
customer's auth_org_id field. This overwrites whatever value is currently in that field. | ||
</p> | ||
<form action="" method="post" id="setup-auth-org-id-form"> | ||
{% csrf_token %} | ||
<div style="display:flex";> | ||
<div style="vertical-align:top"> | ||
<input type="hidden" name="post" value="submit" /> | ||
<input type="hidden" name="action" value="submit" /> | ||
<input type="submit" value="{% trans "Setup auth org ID" %}" /> | ||
</div> | ||
<div style="margin-left:0.5rem"> | ||
<input type="button" value="Cancel" onclick="history.go(-1)"/> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block footer %} | ||
{{ block.super }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.