Browse Source

Correções de change forms

pull/159/head
Sesostris Vieira 3 years ago
parent
commit
fd571d7d6e
  1. 12
      sigi/apps/eventos/templates/admin/eventos/evento/change_form.html
  2. 4
      sigi/apps/servicos/templates/admin/servicos/casaatendida/change_form.html
  3. 50
      sigi/apps/servidores/templates/admin/servidores/servidor/change_form.html
  4. 3
      sigi/templates/admin/change_form.html
  5. 20
      sigi/templates/base_change_form.html

12
sigi/apps/eventos/templates/admin/eventos/evento/change_form.html

@ -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>
<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 %}

4
sigi/apps/servicos/templates/admin/servicos/casaatendida/change_form.html

@ -1,6 +1,6 @@
{% extends "base_change_form.html" %}
{% extends "admin/change_form.html" %}
{% load i18n admin_modify %}
{% load static from staticfiles %}
{% load static %}
{% block after_related_objects %}
{{ block.super }}

50
sigi/apps/servidores/templates/admin/servidores/servidor/change_form.html

@ -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="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="row"><div class="control-group">
<div class="col-md-12 form-group ">
<div class="control-label col-md-3">
<div class="control-group">
<div class="form-group">
<div class="control-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 class="controls">
<p class="form-control-static">
{{adminform.form.instance.user.first_name}}
</p>
</div>
</div>
</div></div>
<div class="row"><div class="control-group">
<div class="col-md-12 form-group ">
<div class="control-label col-md-3">
</div>
<div class="control-group">
<div class="form-group">
<div class="control-label">
<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 class="controls">
<p class="form-control-static">
{{adminform.form.instance.user.last_name}}
</p>
</div>
</div>
</div>
</div></div>
<div class="row"><div class="control-group">
<div class="col-md-12 form-group ">
<div class="control-label col-md-3">
<div class="control-group">
<div class="form-group">
<div class="control-label">
<label>{% trans 'Email Principal' %}:</label>
</div>
<div class="controls col-md-9">
<div class="controls">
<p class="form-control-static">{{adminform.form.instance.user.email}}</p>
</div>
</div>
</div></div>
</div>
</div>
</fieldset>
</div>
</div>
{% endif %}
{% endblock %}

3
sigi/templates/admin/change_form.html

@ -0,0 +1,3 @@
{% extends 'admin/change_form.html' %}
{% block breadcrumbs %}{% endblock %}

20
sigi/templates/base_change_form.html

@ -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…
Cancel
Save