supports lookup by domains
This commit is contained in:
@@ -42,7 +42,15 @@
|
||||
<input type="email" id="case_email" name="case_email"
|
||||
value="{{ user.case_email }}"
|
||||
class="mt-1 block w-full px-3 py-2 border border-slate-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
|
||||
<p class="mt-1 text-sm text-slate-500">The email address used for project access.</p>
|
||||
<p class="mt-1 text-sm text-slate-500">All cases with this email will be viewable by the user</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="case_domain_email" class="block text-sm font-medium text-slate-700">Case Domain Email</label>
|
||||
<input type="text" id="case_domain_email" name="case_domain_email"
|
||||
value="{{ user.case_domain_email }}"
|
||||
class="mt-1 block w-full px-3 py-2 border border-slate-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
|
||||
<p class="mt-1 text-sm text-slate-500">All cases with property contacts in this domain will be viewable to the user</p>
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end space-x-3 pt-4">
|
||||
@@ -66,7 +74,8 @@ document.getElementById('userForm').addEventListener('submit', function(e) {
|
||||
const userData = {
|
||||
uid: '{{ user.uid }}',
|
||||
enabled: formData.get('enabled') === 'on',
|
||||
case_email: formData.get('case_email')
|
||||
case_email: formData.get('case_email'),
|
||||
case_domain_email: formData.get('case_domain_email')
|
||||
};
|
||||
|
||||
fetch('/admin/users/update', {
|
||||
@@ -88,4 +97,4 @@ document.getElementById('userForm').addEventListener('submit', function(e) {
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user