providers/oauth2: add missing property_mapping template
This commit is contained in:
		@ -75,6 +75,8 @@ class OAuth2ProviderForm(forms.ModelForm):
 | 
			
		||||
class ScopeMappingForm(forms.ModelForm):
 | 
			
		||||
    """Form to edit ScopeMappings"""
 | 
			
		||||
 | 
			
		||||
    template_name = "providers/oauth2/property_mapping_form.html"
 | 
			
		||||
 | 
			
		||||
    def clean_expression(self):
 | 
			
		||||
        """Test Syntax"""
 | 
			
		||||
        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
	
	Block a user