mirror of https://github.com/interlegis/sigi.git
Sesostris Vieira
3 years ago
5 changed files with 56 additions and 65 deletions
@ -1,10 +1,12 @@ |
|||
{% extends "base_change_form.html" %} |
|||
{% extends "admin/change_form.html" %} |
|||
{% load i18n %} |
|||
|
|||
{% block object-tools-items %} |
|||
<li><a href="declaracao/"> |
|||
<span class="glyphicon glyphicon-print"></span> |
|||
{% trans 'Declaração' %} |
|||
</a></li> |
|||
{{ block.super }} |
|||
<div class="collection-item"> |
|||
<a href="{% url 'evento-declaracao' object_id %}"> |
|||
<i class="left material-icons" aria-hidden="true">picture_as_pdf</i> |
|||
{% trans "Declaração" %} |
|||
</a> |
|||
</div> |
|||
{{ block.super }} |
|||
{% endblock %} |
|||
|
@ -1,44 +1,50 @@ |
|||
{% extends 'base_change_form.html' %} |
|||
{% extends 'admin/change_form.html' %} |
|||
{% load i18n %} |
|||
|
|||
{% block form_top %} |
|||
{% if adminform.form.instance.user %} |
|||
<fieldset style="background:transparent" id="fieldset-2" class="_module _aligned"> |
|||
<legend> |
|||
{% trans 'Dados do LDAP' %} |
|||
</legend> |
|||
<div class="fields"> |
|||
<div class="row"><div class="control-group"> |
|||
<div class="col-md-12 form-group "> |
|||
<div class="control-label col-md-3"> |
|||
<label>{% trans 'Primeiro Nome' %}:</label> |
|||
</div> |
|||
<div class="controls col-md-9"> |
|||
<p class="form-control-static">{{adminform.form.instance.user.first_name}}</p> |
|||
</div> |
|||
{% if adminform.form.instance.user %} |
|||
<div class="card"> |
|||
<div class="card-content"> |
|||
<span class="card-title">{% trans 'Dados do LDAP' %}</span> |
|||
<fieldset id="fieldset-ldap-fields" class="_module _aligned"> |
|||
<div class="fields"> |
|||
<div class="control-group"> |
|||
<div class="form-group"> |
|||
<div class="control-label"> |
|||
<label>{% trans 'Primeiro Nome' %}:</label> |
|||
</div> |
|||
</div></div> |
|||
<div class="row"><div class="control-group"> |
|||
<div class="col-md-12 form-group "> |
|||
<div class="control-label col-md-3"> |
|||
<label>{% trans 'Último Nome' %}:</label> |
|||
</div> |
|||
<div class="controls col-md-9"> |
|||
<p class="form-control-static">{{adminform.form.instance.user.last_name}}</p> |
|||
</div> |
|||
<div class="controls"> |
|||
<p class="form-control-static"> |
|||
{{adminform.form.instance.user.first_name}} |
|||
</p> |
|||
</div> |
|||
</div></div> |
|||
<div class="row"><div class="control-group"> |
|||
<div class="col-md-12 form-group "> |
|||
<div class="control-label col-md-3"> |
|||
<label>{% trans 'Email Principal' %}:</label> |
|||
</div> |
|||
<div class="controls col-md-9"> |
|||
<p class="form-control-static">{{adminform.form.instance.user.email}}</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="control-group"> |
|||
<div class="form-group"> |
|||
<div class="control-label"> |
|||
<label>{% trans 'Último Nome' %}:</label> |
|||
</div> |
|||
</div></div> |
|||
<div class="controls"> |
|||
<p class="form-control-static"> |
|||
{{adminform.form.instance.user.last_name}} |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="control-group"> |
|||
<div class="form-group"> |
|||
<div class="control-label"> |
|||
<label>{% trans 'Email Principal' %}:</label> |
|||
</div> |
|||
<div class="controls"> |
|||
<p class="form-control-static">{{adminform.form.instance.user.email}}</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</fieldset> |
|||
</div> |
|||
</div> |
|||
</fieldset> |
|||
{% endif %} |
|||
{% endblock %} |
|||
{% endif %} |
|||
{% endblock %} |
@ -0,0 +1,3 @@ |
|||
{% extends 'admin/change_form.html' %} |
|||
|
|||
{% block breadcrumbs %}{% endblock %} |
@ -1,20 +0,0 @@ |
|||
{% extends "admin/change_form.html" %} |
|||
{% load i18n admin_urls %} |
|||
|
|||
{% block object-tools %} |
|||
{% if change %}{% if not is_popup %} |
|||
<ul class="nav navbar-nav navbar-left"> |
|||
{% block object-tools-items %} |
|||
<li> |
|||
{% url opts|admin_urlname:'history' original.pk|admin_urlquote as history_url %} |
|||
<a href="{% add_preserved_filters history_url %}" class="historylink"> |
|||
<span class="glyphicon glyphicon-book"></span> |
|||
{% trans "History" %} |
|||
</a> |
|||
</li> |
|||
{% if has_absolute_url %}<li><a href="{% url 'admin:view_on_site' content_type_id original.pk %}" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%} |
|||
{% endblock %} |
|||
</ul> |
|||
{% endif %}{% endif %} |
|||
{% endblock %} |
|||
|
Loading…
Reference in new issue