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" %} |
{% extends "base.html" %} |
||||
{% load i18n crispy_forms_tags %} |
{% load i18n %} |
||||
|
|
||||
{% block base_content %} |
{% block base_content %} |
||||
|
|
||||
{# FIXME is this the best markup to use? #} |
{# FIXME is this the best markup to use? #} |
||||
<dl class="sub-nav"> |
<div class="clearfix"> |
||||
<dd><a href="{{ view.update_url }}"> |
<dl class="sub-nav right"> |
||||
{% blocktrans with verbose_name=view.verbose_name %} Editar {{ verbose_name }} {% endblocktrans %} |
<dd><a href="{{ view.update_url }}" class="button">{% trans 'Editar' %}</a></dd> |
||||
</a></dd> |
<dd><a href="{{ view.delete_url }}" class="button alert">{% trans 'Excluir' %}</a></dd> |
||||
<dd><a href="{{ view.delete_url }}"> |
</dl> |
||||
{% blocktrans with verbose_name=view.verbose_name %} Excluir {{ verbose_name }} {% endblocktrans %} |
{% block sections_nav %}{% endblock %} |
||||
</a></dd> |
</div> |
||||
</dl> |
|
||||
|
|
||||
{# TODO replace fieldset for something semantically correct, but with similar visual grouping style #} |
{% block detail_content %} |
||||
{% for fieldset in view.fieldsets %} |
{# TODO replace fieldset for something semantically correct, but with similar visual grouping style #} |
||||
<fieldset> |
{% for fieldset in view.fieldsets %} |
||||
<legend>{{ fieldset.legend }}</legend> |
<fieldset> |
||||
{% for row in fieldset.rows %} |
<legend>{{ fieldset.legend }}</legend> |
||||
<div class="row"> |
{% for row in fieldset.rows %} |
||||
{% for column in row %} |
<div class="row"> |
||||
<div class="columns large-{{ column.span }}"> |
{% for column in row %} |
||||
<div id="div_id_{{ column.id }}" class="holder"> |
<div class="columns large-{{ column.span }}"> |
||||
<label>{{ column.verbose_name }}</label> {# TODO replace labels, probably (are they correct here?) #} |
<div id="div_id_{{ column.id }}" class="holder"> |
||||
<p>{{ column.text }}</p> |
<label>{{ column.verbose_name }}</label> {# TODO replace labels, probably (are they correct here?) #} |
||||
</div> |
<p>{{ column.text }}</p> |
||||
</div> |
</div> |
||||
{% endfor %} |
</div> |
||||
</div> |
{% endfor %} |
||||
|
</div> |
||||
|
{% endfor %} |
||||
|
</fieldset> |
||||
{% endfor %} |
{% endfor %} |
||||
</fieldset> |
{% endblock detail_content %} |
||||
{% endfor %} |
|
||||
|
|
||||
{% endblock %} |
{% endblock %} |
||||
|
|
||||
|
Loading…
Reference in new issue