Browse Source

refatorando composicao_list

pull/3084/head
ricardocanela 5 years ago
committed by Leandro Roberto
parent
commit
f696e1e3af
  1. 63
      sapl/templates/comissoes/composicao_list.html
  2. 1
      sapl/templates/parlamentares/parlamentares_list.html

63
sapl/templates/comissoes/composicao_list.html

@ -1,5 +1,24 @@
{% extends "crud/list.html" %} {% extends "base.html" %}
{% load i18n common_tags crispy_forms_tags%} {% load i18n %}
{% load crispy_forms_tags cropping%}
{% load common_tags %}
{% load render_bundle from webpack_loader %}
{% load webpack_static from webpack_loader %}
{% block base_content %}
<div id="app3">
<fieldset class="form-group">
<legend>Selecione o Período</legend>
<form method="GET">
<select @change="getParlamentares" class="form-control" v-model="composicao_id">
<option v-for="option in periodo_list" v-bind:value="option.id">
[[ option.__str__ ]]
</option>
</select>
</form>
</fieldset>
{% block actions %} {% block actions %}
{% if user.is_authenticated and perms.comissoes.add_composicao %} {% if user.is_authenticated and perms.comissoes.add_composicao %}
@ -54,20 +73,40 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for p in participacao_set %} <tr v-for="p in parlamentares">
<tr>
<td> <td>
<a href="{% url 'sapl.comissoes:participacao_detail' p.pk %}">{{ p.parlamentar }}</a> <a v-bind:href="'/comissao/participacao/' + p.id">[[ p.nome ]]</a>
</td> </td>
<td>{{p.cargo}}</td> <td>[[p.cargo]]</td>
<td>{{p.titular|yesno:"Sim,Não"}}</td> <td>[[p.titular]]</td>
<td>{{p.data_designacao}}</td> <td>[[p.data_designacao]]</td>
<td>{{p.data_desligamento|default:""}}</td> <td>[[p.data_desligamento]]</td>
<td>{{p.motivo_desligamento}}</td> <td>[[p.motivo_desligamento]]</td>
<td>{{p.observacao}}</td> <td>[[p.observacao]]</td>
</tr> </tr>
{% endfor %}
</tbody> </tbody>
</table> </table>
</div> </div>
{% endblock %} {% endblock %}
</div>
{% endblock base_content %}
{% block webpack_loader_css %}
{{ block.super }}
{% render_bundle 'comissoes' 'css' %}
{% endblock %}
{% block webpack_loader_js %}
{% render_chunk_vendors 'js' %}
{% render_bundle 'global' 'js' %}
{% render_bundle 'comissoes' 'js' %}
{% endblock %}

1
sapl/templates/parlamentares/parlamentares_list.html

@ -82,6 +82,7 @@
</tbody> </tbody>
</table> </table>
</div> </div>
</div>
{% endblock base_content %} {% endblock base_content %}

Loading…
Cancel
Save