Browse Source

Fix templates

upgrade-sapl
Edward Ribeiro 2 months ago
parent
commit
dc4881b24a
  1. 2
      sapl/templates/base/autor_form.html
  2. 4
      sapl/templates/compilacao/layout/dispositivo_checkbox.html
  3. 4
      sapl/templates/compilacao/layout/dispositivo_radio.html
  4. 2
      sapl/templates/materia/autoria_form.html
  5. 2
      sapl/templates/materia/autoria_multicreate_form.html
  6. 2
      sapl/templates/materia/materialegislativa_form.html
  7. 2
      sapl/templates/materia/proposicao_form.html
  8. 2
      sapl/templates/materia/tipomaterialegislativa_list.html
  9. 2
      sapl/templates/norma/autorianorma_form.html
  10. 2
      sapl/templates/protocoloadm/protocolar_materia.html
  11. 2
      sapl/templates/widgets/image_thumbnail.html

2
sapl/templates/base/autor_form.html

@ -28,7 +28,7 @@ $(document).ready(function(){
var update_search = function(pk, atualizar=true) {
var q = $('#id_q').val();
var url = '{% url 'sapl.api:autor-provaveis'%}'
var url = '{% url 'sapl.api:base-autor-provaveis'%}'
var formData = {
q: q,

4
sapl/templates/compilacao/layout/dispositivo_checkbox.html

@ -2,7 +2,7 @@
{% load i18n compilacao_filters common_tags%}
<div class="controls cp lista-dispositivo"{% if flat_attrs %} {{ flat_attrs|safe }}{% endif %}>
{% include 'bootstrap/layout/field_errors_block.html' %}
{% include 'bootstrap4/layout/field_errors_block.html' %}
{% for choice in field.field.choices %}
{% ifchanged choice.1.ta%}
{% if not forloop.first %}</ul>{% endif %}
@ -62,5 +62,5 @@
{% include 'bootstrap/layout/help_text.html' %}
{% include 'bootstrap4/layout/help_text.html' %}
</div>

4
sapl/templates/compilacao/layout/dispositivo_radio.html

@ -3,7 +3,7 @@
<div class="controls lista-dispositivo"{% if flat_attrs %} {{ flat_attrs|safe }}{% endif %}>
{% include 'bootstrap/layout/field_errors_block.html' %}
{% include 'bootstrap4/layout/field_errors_block.html' %}
{% for choice, dpt in field.field.choices %}
{% ifchanged dpt.ta%}
@ -58,5 +58,5 @@
{% include 'bootstrap/layout/help_text.html' %}
{% include 'bootstrap4/layout/help_text.html' %}
</div>

2
sapl/templates/materia/autoria_form.html

@ -17,7 +17,7 @@
o: 'nome',
get_all: true
}
$.getJSON("{% url 'sapl.api:autor-possiveis' %}", json_data, function(data){
$.getJSON("{% url 'sapl.api:base-autor-possiveis' %}", json_data, function(data){
if (data) {
if (data.length > 1) {
$("#id_autor").append("<option>-----</option>");

2
sapl/templates/materia/autoria_multicreate_form.html

@ -17,7 +17,7 @@
o: 'nome',
get_all: true
}
$.getJSON("{% url 'sapl.api:autor-possiveis' %}", json_data, function(data){
$.getJSON("{% url 'sapl.api:base-autor-possiveis' %}", json_data, function(data){
$("#div_id_autor > div").html('');
if (data) {
$.each(data, function(idx, obj) {

2
sapl/templates/materia/materialegislativa_form.html

@ -68,7 +68,7 @@
o: 'nome',
get_all: true
}
$.getJSON("{% url 'sapl.api:autor-possiveis' %}", json_data, function(data){
$.getJSON("{% url 'sapl.api:base-autor-possiveis' %}", json_data, function(data){
if (data) {
if (data.length > 1) {
$("#id_autor").append("<option>-----</option>");

2
sapl/templates/materia/proposicao_form.html

@ -33,7 +33,7 @@
});
$("select[name=tipo_materia], input[name=numero_materia], input[name=ano_materia]").change(function(event) {
var url = '{% url 'sapl.api:materialegislativa-list'%}'
var url = '{% url 'sapl.api:base-materialegislativa-list'%}'
var formData = {
'tipo' : $("select[name=tipo_materia]").val(),

2
sapl/templates/materia/tipomaterialegislativa_list.html

@ -23,7 +23,7 @@
var pos_fim = ui.item.index() + 1;
var pk = ui.item.find('a[pk]').attr('pk');
var url = "{% url 'sapl.api:tipomaterialegislativa-change-position' 0 %}";
var url = "{% url 'sapl.api:base-tipomaterialegislativa-change-position' 0 %}";
url = url.replace('0', pk) ;
$.ajax({

2
sapl/templates/norma/autorianorma_form.html

@ -18,7 +18,7 @@
o: 'nome',
get_all: true
}
$.getJSON("{% url 'sapl.api:autor-possiveis' %}", json_data, function(data){
$.getJSON("{% url 'sapl.api:base-autor-possiveis' %}", json_data, function(data){
if (data) {
if (data.length > 1) {
$("#id_autor").append("<option>-----</option>");

2
sapl/templates/protocoloadm/protocolar_materia.html

@ -57,7 +57,7 @@
o: 'nome',
get_all: true
}
$.getJSON("{% url 'sapl.api:autor-possiveis' %}", json_data, function(data){
$.getJSON("{% url 'sapl.api:base-autor-possiveis' %}", json_data, function(data){
if (data) {
if (data.length > 1) {
$("#id_autor").append("<option>-----</option>");

2
sapl/templates/widgets/image_thumbnail.html

@ -61,6 +61,6 @@
</div>
</div>
</div>
{% include 'bootstrap3/layout/help_text_and_errors.html' %}
{% include 'bootstrap4/layout/help_text_and_errors.html' %}
</div>
</div>

Loading…
Cancel
Save