providers/oauth2: add missing property_mapping template
This commit is contained in:
parent
610b6c7f70
commit
b6eb0bf53d
|
@ -75,6 +75,8 @@ class OAuth2ProviderForm(forms.ModelForm):
|
||||||
class ScopeMappingForm(forms.ModelForm):
|
class ScopeMappingForm(forms.ModelForm):
|
||||||
"""Form to edit ScopeMappings"""
|
"""Form to edit ScopeMappings"""
|
||||||
|
|
||||||
|
template_name = "providers/oauth2/property_mapping_form.html"
|
||||||
|
|
||||||
def clean_expression(self):
|
def clean_expression(self):
|
||||||
"""Test Syntax"""
|
"""Test Syntax"""
|
||||||
expression = self.cleaned_data.get("expression")
|
expression = self.cleaned_data.get("expression")
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
{% extends "generic/form.html" %}
|
||||||
|
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
|
{% block beneath_form %}
|
||||||
|
<div class="pf-c-form__group ">
|
||||||
|
<label for="" class="pf-c-form__label"></label>
|
||||||
|
<div class="c-form__horizontal-group">
|
||||||
|
<p>
|
||||||
|
Expression using Python. See <a href="https://passbook.beryju.org/property-mappings/expression/">here</a> for a list of all variables.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
Reference in New Issue