Browse Source

Fix #151

pull/153/head
Edward Ribeiro 9 years ago
parent
commit
7cc0ea9b6b
  1. 23
      protocoloadm/views.py
  2. 4
      templates/protocoloadm/protocolar_documento.html
  3. 4
      templates/protocoloadm/protocolar_materia.html

23
protocoloadm/views.py

@ -454,7 +454,17 @@ class ProtocoloDocumentForm(forms.Form):
self.helper.layout = Layout(
Fieldset('Protocolo - Opção de Numeração', row1),
Fieldset('Identificação de Documento',
row2, row3, row4, row5, row6)
row2,
row3,
row4,
row5,
row6,
HTML(" "),
ButtonHolder(Submit('submit', 'Protocolar Documento',
css_class='button primary'
)
)
)
)
super(ProtocoloDocumentForm, self).__init__(
*args, **kwargs)
@ -561,7 +571,16 @@ class ProtocoloMateriaForm(forms.Form):
self.helper.layout = Layout(
Fieldset('Protocolo - Opção de Numeração', row1),
Fieldset('Identificação da Matéria',
row2, row3, row4, row5)
row2,
row3,
row4,
row5,
HTML(" "),
ButtonHolder(Submit('submit', 'Protocolar Matéria',
css_class='button primary'
)
)
)
)
super(ProtocoloMateriaForm, self).__init__(
*args, **kwargs)

4
templates/protocoloadm/protocolar_documento.html

@ -3,9 +3,5 @@
{% load crispy_forms_tags %}
{% block detail_content %}
<form method="POST">
{% csrf_token %}
{% crispy form %}
<input type="submit" value="Protocolar Documento" class="button primary" />
</form>
{% endblock detail_content %}

4
templates/protocoloadm/protocolar_materia.html

@ -3,9 +3,5 @@
{% load crispy_forms_tags %}
{% block detail_content %}
<form method="POST">
{% csrf_token %}
{% crispy form %}
<input type="submit" value="Protocolar Matéria" class="button primary" />
</form>
{% endblock detail_content %}
Loading…
Cancel
Save