Browse Source

Refactor base template

pull/6/head
Marcio Mazza 10 years ago
parent
commit
709f129f16
  1. 8
      templates/base.html
  2. 4
      templates/comissoes/comissao_form.html
  3. 4
      templates/comissoes/comissao_list.html
  4. 4
      templates/index.html
  5. 4
      templates/sessao/sessaoplenaria_form.html
  6. 6
      templates/sessao/sessaoplenaria_list.html

8
templates/base.html

@ -35,7 +35,7 @@
</div>
{% endfor %}
{% block content %}{% endblock %}
{% block base_content %}{% endblock %}
</div>
{% endblock %}
<!-- END Content -->
@ -45,13 +45,11 @@
... footer...
</footer>
{% block foot_more_js %}{% endblock %}
{% block foot_js %}{% endblock %}
{# Init Foundation #}
{% block foundation_js_init %}
<script>
$(document).foundation();
</script>
<script> $(document).foundation(); </script>
{% endblock foundation_js_init %}
</body>
</html>

4
templates/comissoes/comissao_form.html

@ -3,9 +3,7 @@
{% block title %}SAPL{% endblock %}
{% block content %}
<div id="content-main">
{% block base_content %}
{% crispy form %}
</div>
{% endblock %}

4
templates/comissoes/comissao_list.html

@ -3,8 +3,7 @@
{% block title %}SAPL{% endblock %}
{% block content %}
<div id="content-main">
{% block base_content %}
<p>Comissões</p>
<a href="/admin/comissoes/comissao/add/">Incluir Comissão</a>
@ -25,6 +24,5 @@
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}

4
templates/index.html

@ -1,9 +1,7 @@
{% extends "base.html" %}
{% load i18n bootstrap3 %}
{% block content %}
<div id="content-main">
{% block base_content %}
<h1>Bem-vindo ao SAPL!</h1>
</div>
{% endblock %}

4
templates/sessao/sessaoplenaria_form.html

@ -3,8 +3,6 @@
{% block title %}SAPL{% endblock %}
{% block content %}
<div id="content-main">
{% block base_content %}
{% crispy form %}
</div>
{% endblock %}

6
templates/sessao/sessaoplenaria_list.html

@ -3,9 +3,8 @@
{% block title %}SAPL{% endblock %}
{% block content %}
<div id="content-main">
<p>Sessão Legislativa</p>
{% block base_content %}
<p>Sessão Plenária</p>
<a href="{% url 'sessao_create' %}" class="btn btn-default">Incluir Sessão</a>
<hr/>
<table class="table table-hover">
@ -25,6 +24,5 @@
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}

Loading…
Cancel
Save