Browse Source

Restringe informações do detail de parlamentar

pull/505/head
Eduardo Calil 9 years ago
parent
commit
c8ba0122de
  1. 6
      sapl/parlamentares/views.py
  2. 17
      sapl/templates/parlamentares/parlamentar_perfil_publico.html

6
sapl/parlamentares/views.py

@ -100,6 +100,12 @@ class DependenteCrud(MasterDetailCrud):
class DeleteView(PermissionRequiredMixin, MasterDetailCrud.DeleteView):
permission_required = permissoes_parlamentares()
class ListView(PermissionRequiredMixin, MasterDetailCrud.ListView):
permission_required = permissoes_parlamentares()
class DetailView(PermissionRequiredMixin, MasterDetailCrud.DetailView):
permission_required = permissoes_parlamentares()
class MandatoCrud(MasterDetailCrud):
model = Mandato

17
sapl/templates/parlamentares/parlamentar_perfil_publico.html

@ -12,7 +12,8 @@
{% block detail_content %}
<p class="legend"></p>
<div class="row-fluid">
<div class="row-fluid">
{% if parlamentar.fotografia %}
<div class="col-sm-3">
<div id="div_fotografia" class="form-group">
<div class="controls">
@ -20,6 +21,7 @@
</div>
</div>
</div>
{% endif %}
<div class="col-sm-8">
<div id="div_nome" class="form-group">
@ -66,19 +68,6 @@
</div>
<!--
<h2 class="legend">{{ fieldset.legend }}</h2>
<div class="row-fluid">
<div class="col-md-3-offset-3">
<img src="{{ object.fotografia.path }}">
</div>
<div class="col-md-12">
<p>SADASDADS</p>
</div>
<div> -->
{% endblock detail_content %}
{% endblock base_content %}

Loading…
Cancel
Save