mirror of https://github.com/interlegis/sapl.git
Marcio Mazza
10 years ago
9 changed files with 92 additions and 32 deletions
@ -0,0 +1,14 @@ |
|||
from django.conf.urls import url |
|||
|
|||
from comissoes.views import ( |
|||
comissao_crud, ComposicaoListView, MateriasListView, ReunioesListView) |
|||
|
|||
|
|||
urlpatterns = comissao_crud.urlpatterns + [ |
|||
url(r'^(?P<pk>\d+)/composicao$', ComposicaoListView.as_view(), name='composicao'), |
|||
url(r'^(?P<pk>\d+)/materias$', MateriasListView.as_view(), name='materias'), |
|||
url(r'^(?P<pk>\d+)/reunioes$', ReunioesListView.as_view(), name='reunioes'), |
|||
# url(r'^materias$', MateriasListView.as_view(), name='materias'), |
|||
# url(r'^reunioes$', ReunioesListView.as_view(), name='reunioes'), |
|||
] |
|||
comissoes_urls = urlpatterns, comissao_crud.namespace, comissao_crud.namespace |
@ -0,0 +1,11 @@ |
|||
{% extends "crud/detail.html" %} |
|||
{% load i18n %} |
|||
|
|||
{% block sections_nav %} |
|||
<dl class="sub-nav left"> |
|||
<dd><a href="{% url 'comissao:detail' object.pk %}" class="button secondary">{% trans 'Início' %}</a></dd> |
|||
<dd><a href="{% url 'comissao:composicao' object.pk %}" class="button secondary">{% trans 'Composição' %}</a></dd> |
|||
<dd><a href="{% url 'comissao:materias' object.pk %}" class="button secondary">{% trans 'Matérias em tramitação' %}</a></dd> |
|||
<dd><a href="{% url 'comissao:reunioes' object.pk %}" class="button secondary">{% trans 'Reuniões' %}</a></dd> |
|||
</dl> |
|||
{% endblock sections_nav %} |
@ -0,0 +1,6 @@ |
|||
{% extends "comissoes/comissao_detail.html" %} |
|||
{% load i18n %} |
|||
|
|||
{% block detail_content %} |
|||
TODO ... Composição |
|||
{% endblock detail_content %} |
@ -0,0 +1,6 @@ |
|||
{% extends "comissoes/comissao_detail.html" %} |
|||
{% load i18n %} |
|||
|
|||
{% block detail_content %} |
|||
TODO ... Matérias |
|||
{% endblock detail_content %} |
@ -0,0 +1,6 @@ |
|||
{% extends "comissoes/comissao_detail.html" %} |
|||
{% load i18n %} |
|||
|
|||
{% block detail_content %} |
|||
TODO ... Reuniões |
|||
{% endblock detail_content %} |
@ -1,36 +1,37 @@ |
|||
{% extends "base.html" %} |
|||
{% load i18n crispy_forms_tags %} |
|||
{% load i18n %} |
|||
|
|||
{% block base_content %} |
|||
|
|||
{# FIXME is this the best markup to use? #} |
|||
<dl class="sub-nav"> |
|||
<dd><a href="{{ view.update_url }}"> |
|||
{% blocktrans with verbose_name=view.verbose_name %} Editar {{ verbose_name }} {% endblocktrans %} |
|||
</a></dd> |
|||
<dd><a href="{{ view.delete_url }}"> |
|||
{% blocktrans with verbose_name=view.verbose_name %} Excluir {{ verbose_name }} {% endblocktrans %} |
|||
</a></dd> |
|||
</dl> |
|||
<div class="clearfix"> |
|||
<dl class="sub-nav right"> |
|||
<dd><a href="{{ view.update_url }}" class="button">{% trans 'Editar' %}</a></dd> |
|||
<dd><a href="{{ view.delete_url }}" class="button alert">{% trans 'Excluir' %}</a></dd> |
|||
</dl> |
|||
{% block sections_nav %}{% endblock %} |
|||
</div> |
|||
|
|||
{# TODO replace fieldset for something semantically correct, but with similar visual grouping style #} |
|||
{% for fieldset in view.fieldsets %} |
|||
<fieldset> |
|||
<legend>{{ fieldset.legend }}</legend> |
|||
{% for row in fieldset.rows %} |
|||
<div class="row"> |
|||
{% for column in row %} |
|||
<div class="columns large-{{ column.span }}"> |
|||
<div id="div_id_{{ column.id }}" class="holder"> |
|||
<label>{{ column.verbose_name }}</label> {# TODO replace labels, probably (are they correct here?) #} |
|||
<p>{{ column.text }}</p> |
|||
</div> |
|||
</div> |
|||
{% endfor %} |
|||
</div> |
|||
{% block detail_content %} |
|||
{# TODO replace fieldset for something semantically correct, but with similar visual grouping style #} |
|||
{% for fieldset in view.fieldsets %} |
|||
<fieldset> |
|||
<legend>{{ fieldset.legend }}</legend> |
|||
{% for row in fieldset.rows %} |
|||
<div class="row"> |
|||
{% for column in row %} |
|||
<div class="columns large-{{ column.span }}"> |
|||
<div id="div_id_{{ column.id }}" class="holder"> |
|||
<label>{{ column.verbose_name }}</label> {# TODO replace labels, probably (are they correct here?) #} |
|||
<p>{{ column.text }}</p> |
|||
</div> |
|||
</div> |
|||
{% endfor %} |
|||
</div> |
|||
{% endfor %} |
|||
</fieldset> |
|||
{% endfor %} |
|||
</fieldset> |
|||
{% endfor %} |
|||
{% endblock detail_content %} |
|||
|
|||
{% endblock %} |
|||
|
|||
|
Loading…
Reference in new issue