mirror of https://github.com/interlegis/sigi.git
Sesostris Vieira
3 years ago
6 changed files with 147 additions and 117 deletions
@ -1,24 +1,18 @@ |
|||||
{% extends 'base_report.html' %} |
{% extends 'pdf/base_report.html' %} |
||||
{% load i18n %} |
{% load i18n %} |
||||
|
|
||||
{% block pagesize %}{{ pagesize }}{% endblock pagesize %} |
{% block page_size %}{{ pagesize }}{% endblock page_size %} |
||||
{% block pagemargin %}4cm {{ pagemargin }}cm {{ pagemargin }}cm 2cm{% endblock pagemargin %} |
{% block page_margin %}4cm {{ pagemargin }}cm {{ pagemargin }}cm 2cm{% endblock page_margin %} |
||||
|
|
||||
{% block report %} |
{% block main_content %} |
||||
{% for convite in evento.convite_set.all %} |
{% for convite in evento.convite_set.all %} |
||||
{% with convite.casa as casa %} |
{% with convite.casa as casa %} |
||||
{% for nome in convite.nomes_participantes.splitlines %} |
{% for nome in convite.nomes_participantes.splitlines %} |
||||
{% block text_body %}{% endblock %} |
{% block text_body %}{% endblock %} |
||||
<pdf:nextpage /> |
{% if not forloop.last %} |
||||
{% endfor %} |
<div class="new-page"/> |
||||
{% endwith %} |
{% endif %} |
||||
{% endfor %} |
{% endfor %} |
||||
{% endblock %} |
{% endwith %} |
||||
|
{% endfor %} |
||||
{%block page_foot%} |
|
||||
<table> |
|
||||
<tr> |
|
||||
<td class="footer-left">{% trans 'Emissão:' %} {% now "d/m/Y H:i:s" %}</td> |
|
||||
</tr> |
|
||||
</table> |
|
||||
{% endblock %} |
{% endblock %} |
@ -1,25 +1,48 @@ |
|||||
{% extends "admin/base_site.html" %} |
{% extends "admin/base_site.html" %} |
||||
{% load i18n bootstrap3 %} |
{% load i18n static %} |
||||
|
|
||||
{% block content_title %} |
{% block extrastyle %} |
||||
<h1 class="pull-left">{% trans 'Emitir declaração de comparecimento' %}</h1> |
{{ block.super }} |
||||
|
<link rel="stylesheet" href="{% static 'material/admin/css/submit_line.min.css' %}"> |
||||
{% endblock %} |
{% endblock %} |
||||
|
|
||||
|
{% block breadcrumbs %}{% endblock %} |
||||
|
|
||||
|
{% block messages %} |
||||
|
{% if error %} |
||||
|
<ul class="messagelist"> |
||||
|
<li class="error">{{ error|capfirst }}</li> |
||||
|
</ul> |
||||
|
{% endif %} |
||||
|
{% endblock messages %} |
||||
|
|
||||
{% block content %} |
{% block content %} |
||||
{% if error %} |
<div class="container"> |
||||
<div class="alert alert-danger" role="alert"> |
<div class="card"> |
||||
{{ error }} |
<div class="card-content"> |
||||
</div> |
<span class="card-title">{% trans 'Emitir declaração de comparecimento' %}</span> |
||||
{% endif %} |
<form id="select-form" name="select-form" action="" method="post" novalidate> |
||||
<div id="content-main"> |
{% csrf_token %} |
||||
<form action="" method="post">{% csrf_token %} |
<div class="form-group"> |
||||
{% csrf_token %} |
{{ form }} |
||||
<div class="form-group"> |
</div> |
||||
{% bootstrap_form form %} |
</form> |
||||
|
</div> |
||||
|
<div class="card-action"> |
||||
|
<div class="submit-row"> |
||||
|
<div class="open-actions"> |
||||
|
<button class="default waves-effect waves-light btn" type="submit" form="select-form" name="submit" value="print"> |
||||
|
<i class="material-icons">picture_as_pdf</i> |
||||
|
{% trans "Imprimir" %} |
||||
|
</button> |
||||
|
<a class="default waves-effect waves-light btn" role="button" href="{% url 'admin:eventos_evento_change' evento_id %}"> |
||||
|
<i class="material-icons">undo</i> |
||||
|
{% trans "Voltar" %} |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
</div> |
</div> |
||||
<input type="submit" value="Imprimir" class="btn btn-primary"/> |
</div> |
||||
<a class="btn btn-danger" role="button" href="{% url 'admin:eventos_evento_change' evento_id %}">{% trans "Voltar" %}</a> |
|
||||
</form> |
|
||||
</div> |
</div> |
||||
{% endblock %} |
{% endblock %} |
||||
|
|
||||
|
@ -1,45 +1,46 @@ |
|||||
{% load static i18n %} |
{% load static i18n %} |
||||
<!DOCTYPE HTML> |
<!DOCTYPE HTML> |
||||
<html lang="pt-BR"> |
<html lang="pt-BR"> |
||||
<head> |
<head> |
||||
<meta charset="utf-8"/> |
<meta charset="utf-8"/> |
||||
<meta name="description" content="SIGI reports"> |
<meta name="description" content="SIGI reports"> |
||||
<meta name="author" content="Interlegis"> |
<meta name="author" content="Interlegis"> |
||||
<style type="text/css"> |
<style type="text/css"> |
||||
@page { |
@page { |
||||
size: {% block page_size %}A4 portrait{% endblock page_size %}; |
size: {% block page_size %}A4 portrait{% endblock page_size %}; |
||||
margin: {% block page_margin %}3cm 2cm 2cm 2cm{% endblock page_margin %}; |
margin: {% block page_margin %}3cm 2cm 2cm 2cm{% endblock page_margin %}; |
||||
font-family: "Helvetica, Arial, sans-serif"; |
font-family: "Helvetica, Arial, sans-serif"; |
||||
font-size: 10px; |
font-size: 10px; |
||||
@top-right { content: url("{% static 'img/logo-interlegis.png' %}");} |
@top-right { content: url("{% static 'img/logo-interlegis.png' %}");} |
||||
@top-left {content: url("{% static 'img/logo-senado.png' %}");} |
@top-left {content: url("{% static 'img/logo-senado.png' %}");} |
||||
@top-center { content: element(header); } |
@top-center { content: element(header); } |
||||
@bottom-center { content: element(footer); } |
@bottom-center { content: element(footer); } |
||||
@bottom-right { content: "{% trans "Página: " %}" counter(page); } |
@bottom-right { content: "{% trans "Página: " %}" counter(page); } |
||||
{% block extra_page_settings %}{% endblock extra_page_settings %} |
{% block extra_page_settings %}{% endblock extra_page_settings %} |
||||
} |
} |
||||
h1 { bookmark-level: 1 } |
h1 { bookmark-level: 1 } |
||||
h2 { bookmark-level: 2 } |
h2 { bookmark-level: 2 } |
||||
h3 { bookmark-level: 3 } |
h3 { bookmark-level: 3 } |
||||
h4 { bookmark-level: 4 } |
h4 { bookmark-level: 4 } |
||||
h5 { bookmark-level: 5 } |
h5 { bookmark-level: 5 } |
||||
h6 { bookmark-level: 6 } |
h6 { bookmark-level: 6 } |
||||
@media print { |
@media print { |
||||
header {position: running(header);} |
header {position: running(header);} |
||||
footer {position: running(footer);} |
footer {position: running(footer);} |
||||
} |
} |
||||
@media print { |
body { |
||||
} |
font-family: Helvetica, Arial, sans-serif; |
||||
body { |
font-size: 10px; |
||||
font-family: Helvetica, Arial, sans-serif; |
} |
||||
font-size: 10px; |
div.new-page { |
||||
} |
break-before: always; |
||||
{% block extra_style %}{% endblock extra_style %} |
} |
||||
</style> |
{% block extra_style %}{% endblock extra_style %} |
||||
{% block extra_head %}{% endblock extra_head %} |
</style> |
||||
<title>{% block title %}{% endblock title %}</title> |
{% block extra_head %}{% endblock extra_head %} |
||||
</head> |
<title>{% block title %}{% endblock title %}</title> |
||||
<body class="{% block body_class %}{% endblock body_class %}"> |
</head> |
||||
{% block body_content %}{% endblock body_content %} |
<body class="{% block body_class %}{% endblock body_class %}"> |
||||
</body> |
{% block body_content %}{% endblock body_content %} |
||||
|
</body> |
||||
</html> |
</html> |
||||
|
Loading…
Reference in new issue