mirror of https://github.com/interlegis/sapl.git
11 changed files with 70 additions and 53 deletions
@ -0,0 +1,20 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.11.29 on 2020-05-18 18:19 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations |
||||
|
|
||||
|
|
||||
|
def create_first(apps, schema_editor): |
||||
|
db_alias = schema_editor.connection.alias |
||||
|
Type = apps.get_model("materia", "ConfigEtiquetaMateriaLegislativa") |
||||
|
Type.objects.using(db_alias).create() |
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
dependencies = [ |
||||
|
('materia', '0068_configetiquetamaterialegislativa'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.RunPython(create_first), |
||||
|
] |
||||
@ -0,0 +1,19 @@ |
|||||
|
{% extends "crud/form.html" %} |
||||
|
{% load i18n %} |
||||
|
{% load crispy_forms_tags %} |
||||
|
|
||||
|
{% block base_content %} |
||||
|
<h1>Configuração Etiqueta Materia Legislativa</h1> |
||||
|
<form action="." method="post"> |
||||
|
{% csrf_token %} |
||||
|
{{ form|crispy }} |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12"> |
||||
|
<div class="form-group row justify-content-between"> |
||||
|
<a href="{% url 'sapl.base:sistema' %}" class="btn btn-dark">Cancelar</a> |
||||
|
<input type="submit" name="salvar" value="Salvar" class="btn btn-primary float-right" id="submit-id-salvar" onclick="this.form.submit();this.disabled=true;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</form> |
||||
|
{% endblock base_content %} |
||||
Loading…
Reference in new issue