change loginPage to LoginView
This commit is contained in:
12
fet2020/templates/baseform/password.html
Normal file
12
fet2020/templates/baseform/password.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<label class="block">
|
||||
<span class="text-gray-700 dark:text-gray-200">{{ field.label }}</span>
|
||||
{% if field.errors %}
|
||||
<div class="alert alert-danger">
|
||||
<div class="alert-body">{{ field.errors }}</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<input type="password" id="id_{{ field.name }}" name="{{ field.name }}" {% if field.required %}required{% endif %} class="mt-1 block w-full rounded-md border-gray-300 dark:border-none shadow-sm focus:border-none focus:ring focus:ring-blue-200 dark:focus:ring-sky-700 focus:ring-opacity-50">
|
||||
{% if field.help_text %}
|
||||
<span class="text-gray-700 dark:text-gray-200">{{ field.help_text }}</span>
|
||||
{% endif %}
|
||||
</label>
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="alert-body">{{ field.errors }}</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<input type="text" id="id_{{ field.name }}" name="{{ field.name }}" value="{{ field.value }}" {% if field.required %}required{% endif %} class="mt-1 block w-full rounded-md border-gray-300 dark:border-none shadow-sm focus:border-none focus:ring focus:ring-blue-200 dark:focus:ring-sky-700 focus:ring-opacity-50">
|
||||
<input type="text" id="id_{{ field.name }}" name="{{ field.name }}" {% if field.value %}value="{{ field.value }}"{% endif %} {% if field.required %}required{% endif %} class="mt-1 block w-full rounded-md border-gray-300 dark:border-none shadow-sm focus:border-none focus:ring focus:ring-blue-200 dark:focus:ring-sky-700 focus:ring-opacity-50">
|
||||
{% if field.help_text %}
|
||||
<span class="text-gray-700 dark:text-gray-200">{{ field.help_text }}</span>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user