providers/oauth2: add missing property_mapping template

This commit is contained in:
Jens Langhammer 2020-10-11 19:29:13 +02:00
parent 610b6c7f70
commit b6eb0bf53d
2 changed files with 16 additions and 0 deletions

View File

@ -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")

View File

@ -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 %}