Invited user email is shown on regiser from intive page but is not

editable.
This commit is contained in:
Adam Shimali
2016-03-07 11:55:18 +00:00
parent ee86f400b0
commit 569f61578e
4 changed files with 51 additions and 7 deletions

View File

@@ -6,7 +6,8 @@
help_link=None,
help_link_text=None,
width='2-3',
suffix=None
suffix=None,
disabled=False
) %}
<div class="form-group{% if field.errors %} error{% endif %}" {% if autofocus %}data-module="autofocus"{% endif %}>
<label class="form-label" for="{{ field.name }}">
@@ -22,10 +23,20 @@
</span>
{% endif %}
</label>
{{ field(**{
'class': 'form-control form-control-{} textbox-highlight-textbox'.format(width) if highlight_tags else 'form-control form-control-{} {}'.format(width, 'textbox-right-aligned' if suffix else ''),
'data-module': 'highlight-tags' if highlight_tags else ''
}) }}
{% if disabled %}
{{ field(**{
'class': 'form-control form-control-{} textbox-highlight-textbox'.format(width) if highlight_tags else 'form-control form-control-{} {}'.format(width, 'textbox-right-aligned' if suffix else ''),
'data-module': 'highlight-tags' if highlight_tags else '',
'disabled': 'disabled'
}) }}
{% else %}
{{ field(**{
'class': 'form-control form-control-{} textbox-highlight-textbox'.format(width) if highlight_tags else 'form-control form-control-{} {}'.format(width, 'textbox-right-aligned' if suffix else ''),
'data-module': 'highlight-tags' if highlight_tags else ''
}) }}
{% endif %}
{% if suffix %}
<span>{{ suffix }}</span>
{% endif %}