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 %}
{% 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">
{% blocktrans with verbose_name=view.verbose_name %} Adicionar Comissão {% endblocktrans %}
</a>
</div>
</div>
<br /><br /><br />
{% block detail_content %}
<table width="100%">
<table class="table table-striped table-bordered">
<thead class="thead-default">
<tr>
<th>Nome</th>
<th>Sigla</th>
<th>Tipo</th>
<th>Data de Criação</th>
</tr>
</thead>
{% for comissao in page_obj %}
<tr>
<td>

2
templates/comissoes/comissao_parlamentar.html

@ -1,4 +1,4 @@
{% extends "comissoes/comissao_detail.html" %}
{% extends "crud/detail.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% 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 crispy_forms_tags %}
{% block actions %}{% endblock %}

16
templates/comissoes/composicao.html

@ -1,11 +1,12 @@
{% extends "comissoes/comissao_detail.html" %}
{% extends "crud/detail.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block actions %} {% endblock %}
{% block detail_content %}
{% if composicao_id != 0 %}
<table>
{% if composicao_id != 0 %}
<table class="table table-striped table-bordered">
<thead class="thead-default">
<tr>
<th>Nome</th>
<th>Cargo</th>
@ -15,11 +16,12 @@
<th>Motivo</th>
<th>Observação</th>
</tr>
</thead>
<form method="POST">
{% 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 %}
<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" }}
@ -27,7 +29,7 @@
{% endfor %}
</select>
</form>
<br />
{% for participacao in participacoes %}
{% if participacao.composicao_id == composicao_id %}
<tr>
@ -44,7 +46,7 @@
</table>
<a href="{% url 'comissao:comissao_parlamentar' pk composicao_id %}" class="button primary">Incluir Parlamentar</a>
{% endif %}
<a href="{% url 'comissao:comissao_parlamentar' pk composicao_id %}" class="btn btn-primary">Incluir Parlamentar</a>
{% endif %}
{% 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 crispy_forms_tags %}
{% block actions %} {% endblock %}

Loading…
Cancel
Save