mirror of https://github.com/zulip/zulip.git
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:
parent
a00a1ab5ce
commit
b82b87adc4
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue