-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
22 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
{% load market_url %} | ||
{% load settings_value %} | ||
|
||
|
||
<label>Usuario:</label> | ||
{% if not user %} | ||
<label class="primary-title"></label>Aún no se ha creado usuario"<br> | ||
<label class="primary-title">Enlace de pre-registro</label> | ||
<a href="{% settings_value 'BASESITE_URL' %}{% url 'market:market_dashboard' object.id %}" style="color:blue;" target="_blank"> | ||
Preregistro</a><br> | ||
<label class="primary-title"></label>Aún no se ha creado usuario<br> | ||
<a class="btn btn-secondary btn-block mt-2" href="#"> <i class="material-icons mr-2">add</i>Crear usuario </a> | ||
{% else %} | ||
<a href="{% market_url 'auth:user_detail' user.pk %}">{% include "user/row_display.html" %} </a> <br> | ||
<a href="{% market_url 'auth:user_detail' user.pk %}">{% include "user/row_display.html" %} </a> <br> | ||
<label>Fecha de registro</label> {{user.created_at|date:'d/m/Y H:i'}}<br> | ||
<label class="primary-title">Último acceso:</label> {% include "user/last_login.html" %} | ||
{% endif %} | ||
<label>Fecha de registro</label> {{user.created_at|date:'d/m/Y H:i'}}<br> | ||
<label class="primary-title">Último acceso:</label> | ||
{% include "user/last_login.html" %} | ||
|
||
|
||
{% if user.is_preregistered %} | ||
<hr> | ||
<strong class="text-primary">Prerregistro</strong><br> | ||
El usuario aún no hay completado el registro | ||
<form class="pt-3" method="post" action="{% url 'auth:preregister_send_email' user.preregister.first.id %}"> | ||
{% csrf_token %} | ||
<input type="hidden" name="next" value="{% market_url 'auth:user_detail' user.pk %}"> | ||
<a class="btn btn-secondary mb-2 copy-clipboard mr-2" href="#" data-clipboard-text="{% url 'auth:preregister' user.preregister.first.id %}"> <i class="material-icons mr-2">link</i>Copiar enlace </a> | ||
<button type="submit" class="btn btn-primary mb-2 copy-clipboard"> <i class="material-icons mr-2">send</i>Reenviar email </button> | ||
</form> | ||
{% endif %} | ||
<strong class="text-primary">Prerregistro</strong><br> | ||
El usuario aún no hay completado el registro | ||
<form class="pt-3" method="post" action="{% url 'auth:preregister_send_email' user.preregister.first.id %}"> | ||
{% csrf_token %} | ||
<input type="hidden" name="next" value="{% market_url 'auth:user_detail' user.pk %}"> | ||
<a class="btn btn-secondary mb-2 copy-clipboard mr-2" href="#" data-clipboard-text="{% url 'auth:preregister' user.preregister.first.id %}"> <i class="material-icons mr-2">link</i>Copiar enlace </a> | ||
<button type="submit" class="btn btn-primary mb-2 copy-clipboard"> <i class="material-icons mr-2">send</i>Reenviar email </button> | ||
</form> | ||
{% endif %} |