demo-orgs: Show demo organization owner name on dev login button.

Prep commit for creating demo organizations in the development
environment with a blank email address for organization owners.

Changes the input element for organization owners into a button
element, so that text other than the input value can be displayed.
This commit is contained in:
Lauryn Menard 2022-12-21 18:04:05 +01:00 committed by Tim Abbott
parent a00a1ab5ce
commit b82b87adc4
1 changed files with 8 additions and 2 deletions

View File

@ -33,8 +33,14 @@ page can be easily identified in it's respective JavaScript file -->
{% if direct_owners %}
{% for direct_owner in direct_owners %}
<p>
<input type="submit" formaction="{{ direct_owner.realm.uri }}{{ url('login-local') }}"
name="direct_email" class="btn-direct btn-dev-login" value="{{ direct_owner.delivery_email }}" />
<button type="submit" formaction="{{ direct_owner.realm.uri }}{{ url('login-local') }}"
name="direct_email" class="btn-direct btn-dev-login" value="{{ direct_owner.delivery_email }}">
{% if direct_owner.realm.demo_organization_scheduled_deletion_date %}
{{ direct_owner.full_name }}
{% else %}
{{ direct_owner.delivery_email }}
{% endif %}
</button>
</p>
{% endfor %}
{% else %}