Browse Source

Lista so primeiro_autor (#1582)

#1581
pull/1588/head
Rogério Frá 7 years ago
committed by Edward
parent
commit
7890070743
  1. 19
      sapl/templates/materia/impressos/ficha_pdf.html

19
sapl/templates/materia/impressos/ficha_pdf.html

@ -45,9 +45,13 @@ body
#despacho_inicial #despacho_inicial
{ {
font-family: Arial; font-family: Arial;
line-height: 150%;
border-style: none; border-style: none;
text-align: justify; text-align: justify;
font-size: small; font-size: small;
height:130px;
padding: 0pt 5pt 0pt 0pt;
margin-right:100px;
} }
@media print { @media print {
@ -88,19 +92,8 @@ body
<td height="60pt" valign=top> <td height="60pt" valign=top>
<div> <div>
<!-- Lista os autores --> <!-- Lista primeiro autor -->
{% if materia.autoria_set.all %} <strong class="text_pdf">Autor: </strong><span class="text_pdf">{{materia.autoria_set.first.autor.nome}}</span><br>
<strong class="text_pdf">Autor:</strong>
{% for a in materia.autoria_set.all %}
{% if not forloop.first %}
<span class="text_pdf">{{a.autor}}</span><br>
{% else %}
<span class="text_pdf">{{a.autor}}</span><br>
{% endif %}
{% endfor %}
</br>
{% endif %}
</div>
</td> </td>
</table> </table>

Loading…
Cancel
Save