Redesign sign in screen
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
|
||||
{% macro render_field(field, label=None, label_visible=true, right_url=None, right_label=None, fieldclass=None, hint=None) -%}
|
||||
<div class="form-group {% if field.errors %}has-danger{% endif %} {{ kwargs.pop('class_', '') }}">
|
||||
{% if field.type != 'HiddenField' and label_visible %}
|
||||
{% if field.type != 'HiddenField' %}
|
||||
{% if not label and label != "" %}{% set label=field.label.text %}{% endif %}
|
||||
{% if label %}<label for="{{ field.id }}">{{ label|safe }}</label>{% endif %}
|
||||
{% if label %}<label for="{{ field.id }}" {% if not label_visible %}class="sr-only"{% endif %}>{{ label|safe }}</label>{% endif %}
|
||||
{% endif %}
|
||||
{{ field(class_=fieldclass or 'form-control', **kwargs) }}
|
||||
{% if hint %}
|
||||
|
||||
Reference in New Issue
Block a user