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 %} |
{% load i18n %} |
||||
|
|
||||
{% block object-tools-items %} |
{% block object-tools-items %} |
||||
<li><a href="declaracao/"> |
<div class="collection-item"> |
||||
<span class="glyphicon glyphicon-print"></span> |
<a href="{% url 'evento-declaracao' object_id %}"> |
||||
{% trans 'Declaração' %} |
<i class="left material-icons" aria-hidden="true">picture_as_pdf</i> |
||||
</a></li> |
{% trans "Declaração" %} |
||||
{{ block.super }} |
</a> |
||||
|
</div> |
||||
|
{{ block.super }} |
||||
{% endblock %} |
{% endblock %} |
||||
|
@ -1,44 +1,50 @@ |
|||||
{% extends 'base_change_form.html' %} |
{% extends 'admin/change_form.html' %} |
||||
{% load i18n %} |
{% load i18n %} |
||||
|
|
||||
{% block form_top %} |
{% block form_top %} |
||||
{% if adminform.form.instance.user %} |
{% if adminform.form.instance.user %} |
||||
<fieldset style="background:transparent" id="fieldset-2" class="_module _aligned"> |
<div class="card"> |
||||
<legend> |
<div class="card-content"> |
||||
{% trans 'Dados do LDAP' %} |
<span class="card-title">{% trans 'Dados do LDAP' %}</span> |
||||
</legend> |
<fieldset id="fieldset-ldap-fields" class="_module _aligned"> |
||||
<div class="fields"> |
<div class="fields"> |
||||
<div class="row"><div class="control-group"> |
<div class="control-group"> |
||||
<div class="col-md-12 form-group "> |
<div class="form-group"> |
||||
<div class="control-label col-md-3"> |
<div class="control-label"> |
||||
<label>{% trans 'Primeiro Nome' %}:</label> |
<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> |
|
||||
</div> |
</div> |
||||
</div></div> |
<div class="controls"> |
||||
<div class="row"><div class="control-group"> |
<p class="form-control-static"> |
||||
<div class="col-md-12 form-group "> |
{{adminform.form.instance.user.first_name}} |
||||
<div class="control-label col-md-3"> |
</p> |
||||
<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> |
</div> |
||||
</div></div> |
</div> |
||||
<div class="row"><div class="control-group"> |
</div> |
||||
<div class="col-md-12 form-group "> |
<div class="control-group"> |
||||
<div class="control-label col-md-3"> |
<div class="form-group"> |
||||
<label>{% trans 'Email Principal' %}:</label> |
<div class="control-label"> |
||||
</div> |
<label>{% trans 'Último Nome' %}:</label> |
||||
<div class="controls col-md-9"> |
|
||||
<p class="form-control-static">{{adminform.form.instance.user.email}}</p> |
|
||||
</div> |
|
||||
</div> |
</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> |
</div> |
||||
</fieldset> |
{% endif %} |
||||
{% endif %} |
{% endblock %} |
||||
{% 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