Browse Source

Ajusta comissões ao layout do bootstrap

pull/237/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
parent
commit
ef6f75e6d9
  1. 9
      templates/comissoes/comissao_list.html
  2. 2
      templates/comissoes/comissao_parlamentar.html
  3. 2
      templates/comissoes/comissao_parlamentar_edit.html
  4. 16
      templates/comissoes/composicao.html
  5. 2
      templates/comissoes/materias_em_tramitacao.html

9
templates/comissoes/comissao_list.html

@ -3,19 +3,22 @@
{% load crispy_forms_tags %} {% load crispy_forms_tags %}
{% block base_content %} {% block base_content %}
<div class="actions btn-group pull-right" role="group"> <div class="actions btn-group pull-right" role="group">
<a href="{% url 'comissao:cadastrar_comissao' %}" class="btn btn-default"> <a href="{% url 'comissao:cadastrar_comissao' %}" class="btn btn-default">
{% blocktrans with verbose_name=view.verbose_name %} Adicionar Comissão {% endblocktrans %} {% blocktrans with verbose_name=view.verbose_name %} Adicionar Comissão {% endblocktrans %}
</a> </a>
</div> </div>
<br /><br /><br />
{% block detail_content %} {% block detail_content %}
<table width="100%"> <table class="table table-striped table-bordered">
<thead class="thead-default">
<tr> <tr>
<th>Nome</th> <th>Nome</th>
<th>Sigla</th> <th>Sigla</th>
<th>Tipo</th> <th>Tipo</th>
<th>Data de Criação</th> <th>Data de Criação</th>
</tr> </tr>
</thead>
{% for comissao in page_obj %} {% for comissao in page_obj %}
<tr> <tr>
<td> <td>

2
templates/comissoes/comissao_parlamentar.html

@ -1,4 +1,4 @@
{% extends "comissoes/comissao_detail.html" %} {% extends "crud/detail.html" %}
{% load i18n %} {% load i18n %}
{% load crispy_forms_tags %} {% load crispy_forms_tags %}
{% block actions %}{% endblock %} {% block actions %}{% endblock %}

2
templates/comissoes/comissao_parlamentar_edit.html

@ -1,4 +1,4 @@
{% extends "comissoes/comissao_detail.html" %} {% extends "crud/detail.html" %}
{% load i18n %} {% load i18n %}
{% load crispy_forms_tags %} {% load crispy_forms_tags %}
{% block actions %}{% endblock %} {% block actions %}{% endblock %}

16
templates/comissoes/composicao.html

@ -1,11 +1,12 @@
{% extends "comissoes/comissao_detail.html" %} {% extends "crud/detail.html" %}
{% load i18n %} {% load i18n %}
{% load crispy_forms_tags %} {% load crispy_forms_tags %}
{% block actions %} {% endblock %} {% block actions %} {% endblock %}
{% block detail_content %} {% block detail_content %}
{% if composicao_id != 0 %} {% if composicao_id != 0 %}
<table> <table class="table table-striped table-bordered">
<thead class="thead-default">
<tr> <tr>
<th>Nome</th> <th>Nome</th>
<th>Cargo</th> <th>Cargo</th>
@ -15,11 +16,12 @@
<th>Motivo</th> <th>Motivo</th>
<th>Observação</th> <th>Observação</th>
</tr> </tr>
</thead>
<form method="POST"> <form method="POST">
{% csrf_token %} {% csrf_token %}
<select id="periodo" name="periodo" onChange="form.submit();"> <select id="periodo" name="periodo" class="form-control" onChange="form.submit();">
{% for c in composicoes %} {% for c in composicoes %}
<option value="{{c.id}}" {% if composicao_id == c.id %} selected {% endif %}> <option value="{{c.id}}" {% if composicao_id == c.id %} selected {% endif %}>
{{ c.periodo.data_inicio|date:"d/m/Y" }} - {{ c.periodo.data_fim|date:"d/m/Y" }} {{ c.periodo.data_inicio|date:"d/m/Y" }} - {{ c.periodo.data_fim|date:"d/m/Y" }}
@ -27,7 +29,7 @@
{% endfor %} {% endfor %}
</select> </select>
</form> </form>
<br />
{% for participacao in participacoes %} {% for participacao in participacoes %}
{% if participacao.composicao_id == composicao_id %} {% if participacao.composicao_id == composicao_id %}
<tr> <tr>
@ -44,7 +46,7 @@
</table> </table>
<a href="{% url 'comissao:comissao_parlamentar' pk composicao_id %}" class="button primary">Incluir Parlamentar</a> <a href="{% url 'comissao:comissao_parlamentar' pk composicao_id %}" class="btn btn-primary">Incluir Parlamentar</a>
{% endif %} {% endif %}
{% endblock detail_content %} {% endblock detail_content %}

2
templates/comissoes/materias_em_tramitacao.html

@ -1,4 +1,4 @@
{% extends "comissoes/comissao_detail.html" %} {% extends "crud/detail.html" %}
{% load i18n %} {% load i18n %}
{% load crispy_forms_tags %} {% load crispy_forms_tags %}
{% block actions %} {% endblock %} {% block actions %} {% endblock %}

Loading…
Cancel
Save