Conjunto 8837872 en sapic
- Fecha y hora:
- 13/09/2018 10:28:09 (hace 6 años)
- Branches:
- master
- Children:
- 1c21737
- Parents:
- 39b8a44
- Ficheros:
-
- 4 editados
Leyenda
- No modificado
- Añadido
- Eliminado
-
explicacion_situacional/templates/caracterizacion.politica.html
r39b8a44 r8837872 9 9 <link rel="stylesheet" type="text/css" href="{% static "DataTables/extensions/Select/css/select.dataTables.min.css" %}"> 10 10 <link rel="stylesheet" type="text/css" href="{% static "DataTables/extensions/Responsive/css/responsive.dataTables.min.css" %}"> 11 <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">12 11 {% endblock extracss %} 13 12 {% block extrajs %} … … 17 16 <script type="text/javascript" language="javascript" src="{% static "DataTables/extensions/Buttons/js/buttons.jqueryui.js" %}"></script> 18 17 <script type="text/javascript" language="javascript" src="{% static "DataTables/extensions/Buttons/js/buttons.html5.min.js" %}"></script> 19 20 <script type="text/javascript"> 21 function abrir_modal(url) 22 { 23 $('#popup').load(url, function() 24 { 25 $(this).modal('show'); 26 }); 27 return false; 28 } 29 30 function cerrar_modal() 31 { 32 $('#popup').modal('hide'); 33 return false; 34 } 35 36 37 $(function() { 38 var table = $('#tabla-participacion').DataTable({ 39 "columnDefs": [ 40 { width: '20%', targets: 2 }, 41 ], 42 initComplete: function () { 43 this.api().columns([2]).every( function () { 44 var column = this; 45 var select = $('#select_filter') 46 .on( 'change', function () { 47 var val = $.fn.dataTable.util.escapeRegex( 48 $(this).val() 49 ); 50 51 column 52 .search( val ? '^'+val+'$' : '', true, false ) 53 .draw(); 54 } ); 55 56 column.data().unique().sort().each( function ( d, j ) { 57 select.append( '<option value="'+d+'">'+d+'</option>' ) 58 } ); 59 } ); 60 }, 61 "language": { 62 url: "//cdn.datatables.net/plug-ins/1.10.16/i18n/Spanish.json" 63 }, 64 "lengthMenu": [ [10, 50, 100, -1], [10, 50, 100, "Todo"] ], 65 66 67 "scrollX": true, 68 "fixedColumns": true , 69 "dom": 'lfrtBSip', 70 "buttons": ['copy', 'csv', 'print'] 71 }); 72 }); 73 74 </script> 18 <script src="{% static "js/funciones.js" %}"></script> 75 19 {% endblock extrajs %} 76 77 78 20 {% block contenido_principal %} 79 21 <div class="col-xs-12"> … … 90 32 <thead> 91 33 <tr> 92 <th>Pregunta</th> 93 <th>Respuesta</th> 94 <th>Consulta</th> 95 <th>Accion</th> 34 <th class="politica0">Pregunta</th> 35 <th class="politica1">Respuesta</th> 36 <th class="politica2">Consulta</th> 96 37 </tr> 97 38 </thead> … … 101 42 <tr> 102 43 <td>{{ respuesta.pregunta }}</td> 103 <td>Si</td> 104 <td>{{ respuesta.pregunta.consulta.nombre_consulta | cut:"Información sobre la " | cut:"información sobre las " | cut:"Información sobre " | title}}</td> 105 <td><a class="btn" onclick="return abrir_modal('{% url 'explicacion:modificar_respuesta_' respuesta.pregunta.tipo_pregunta.pk respuesta.pk %}')"><i class="glyphicon glyphicon-edit"></i></a></td> 44 <td onclick="return abrir_modal('{% url 'explicacion:modificar_respuesta_' respuesta.pregunta.tipo_pregunta.pk respuesta.pk %}')">Si</td> 45 <td>{{ respuesta.pregunta.consulta.nombre_consulta | cut:"Información sobre la " | cut:"información sobre las " | cut:"Información sobre " | title}}</td> 106 46 </tr> 107 47 {% else %} … … 110 50 {% for justificacion in abierta %} 111 51 {% if justificacion.es_justificacion and justificacion.pregunta.pk == respuesta.pregunta.pk %} 112 <td >No,{{justificacion.texto_respuesta}} </td>52 <td onclick="return abrir_modal('{% url 'explicacion:modificar_respuesta_' respuesta.pregunta.tipo_pregunta.pk respuesta.pk %}')">No,{{justificacion.texto_respuesta}} </td> 113 53 {% endif %} 114 54 {% endfor %} 115 55 <td>{{ respuesta.pregunta.consulta.nombre_consulta | cut:"Información sobre la " | cut:"información sobre las " | cut:"Información sobre " | title}}</td> 116 <td><a class="btn" onclick="return abrir_modal('{% url 'explicacion:modificar_respuesta_' respuesta.pregunta.tipo_pregunta.pk respuesta.pk %}')" ><i class="glyphicon glyphicon-edit"></i></a></td>117 56 </tr> 118 57 {% endif %} … … 123 62 <tr> 124 63 <td>{{ respuesta.opcion.pregunta }}</td> 125 <td>{{ respuesta.opcion }}</td> 126 <td>{{ respuesta.opcion.pregunta.consulta.nombre_consulta | cut:"Información sobre la " | cut:"información sobre las " | cut:"Información sobre " | title}}</td> 127 <td><a class="btn" onclick="return abrir_modal('{% url 'explicacion:modificar_respuesta_' respuesta.opcion.pregunta.tipo_pregunta.pk respuesta.pk %}')"><i class="glyphicon glyphicon-edit"></i></a></td> 64 <td onclick="return abrir_modal('{% url 'explicacion:modificar_respuesta_' respuesta.opcion.pregunta.tipo_pregunta.pk respuesta.pk %}')">{{ respuesta.opcion }}</td> 65 <td>{{ respuesta.opcion.pregunta.consulta.nombre_consulta | cut:"Información sobre la " | cut:"información sobre las " | cut:"Información sobre " | title}}</td> 128 66 </tr> 129 67 {% endfor %} … … 133 71 <tr> 134 72 <td>{{ respuesta.pregunta }}</td> 135 <td >{{ respuesta.texto_respuesta }}</td>73 <td onclick="return abrir_modal('{% url 'explicacion:modificar_respuesta_' respuesta.pregunta.tipo_pregunta.pk respuesta.pk %}')">{{ respuesta.texto_respuesta }}</td> 136 74 <td>{{ respuesta.pregunta.consulta.nombre_consulta | cut:"Información sobre la " | cut:"información sobre las " | cut:"Información sobre " | title}}</td> 137 <td><a class="btn" onclick="return abrir_modal('{% url 'explicacion:modificar_respuesta_' respuesta.pregunta.tipo_pregunta.pk respuesta.pk %}')"><i class="glyphicon glyphicon-edit"></i></a></td>138 75 </tr> 139 76 {% endif %} … … 144 81 <td>{{ respuesta.pregunta }}</td> 145 82 <td>{{ respuesta.coordenadas }}</td> 146 <td>{{ respuesta.pregunta.consulta.nombre_consulta }}</td> 147 <td><a class="btn" href="#"><i class="icon"></i></a></td> 83 <td>{{ respuesta.pregunta.consulta.nombre_consulta }}</td> 148 84 </tr> 149 85 {% endfor %} -
explicacion_situacional/templates/caracterizacion.social.html
rc7b7e3b r8837872 8 8 <link rel="stylesheet" type="text/css" href="{% static "DataTables/extensions/Select/css/select.dataTables.min.css" %}"> 9 9 <link rel="stylesheet" type="text/css" href="{% static "DataTables/extensions/Responsive/css/responsive.dataTables.min.css" %}"> 10 <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">11 10 {% endblock extracss %} 12 11 {% block extrajs %} … … 16 15 <script type="text/javascript" language="javascript" src="{% static "DataTables/extensions/Buttons/js/buttons.jqueryui.js" %}"></script> 17 16 <script type="text/javascript" language="javascript" src="{% static "DataTables/extensions/Buttons/js/buttons.html5.min.js" %}"></script> 18 19 20 21 <script type="text/javascript"> 22 function abrir_modal(url) 23 { 24 $('#popup').load(url, function() 25 { 26 $(this).modal('show'); 27 }); 28 return false; 29 } 30 31 function cerrar_modal() 32 { 33 $('#popup').modal('hide'); 34 return false; 35 } 36 37 38 $(function() { 39 var table = $('#tabla-participacion').DataTable({ 40 "columnDefs": [ 41 { width: '50%', targets: 0 }, 42 { width: '35%', targets: 1 }, 43 ], 44 initComplete: function () { 45 this.api().columns([2]).every( function () { 46 var column = this; 47 var select = $('#select_filter') 48 .on( 'change', function () { 49 var val = $.fn.dataTable.util.escapeRegex( 50 $(this).val() 51 ); 52 53 column 54 .search( val ? '^'+val+'$' : '', true, false ) 55 .draw(); 56 } ); 57 58 column.data().unique().sort().each( function ( d, j ) { 59 select.append( '<option value="'+d+'">'+d+'</option>' ) 60 } ); 61 } ); 62 }, 63 "language": { 64 url: "//cdn.datatables.net/plug-ins/1.10.16/i18n/Spanish.json" 65 }, 66 "lengthMenu": [ [10, 50, 100, -1], [10, 50, 100, "Todo"] ], 67 68 69 "scrollX": true, 70 "fixedColumns": true , 71 "dom": 'lfrtBSip', 72 "buttons": ['copy', 'csv', 'print'] 73 }); 74 }); 75 76 </script> 17 <script src="{% static 'js/funciones.js' %}"></script> 77 18 {% endblock extrajs %} 78 19 {% block contenido_principal %} … … 90 31 <thead> 91 32 <tr> 92 <th>Pregunta</th> 93 <th>Respuesta</th> 94 <th>Consulta</th> 95 <th>Accion</th> 33 <th class="social0">Pregunta</th> 34 <th class="social1">Respuesta</th> 35 <th class="social2">Consulta</th> 96 36 </tr> 97 37 </thead> … … 101 41 <tr> 102 42 <td>{{ respuesta.pregunta }}</td> 103 <td >Si</td>43 <td onclick="return abrir_modal('{% url 'explicacion:modificar_respuesta_' respuesta.pregunta.tipo_pregunta.pk respuesta.pk %}')">Si</td> 104 44 <td>{{ respuesta.pregunta.consulta.nombre_consulta | cut:" de mi comunidad" | cut:"Calidad del servicio de " | cut:"Calidad de servicios de " | cut:"Calidad de servicios " | cut:"Calidad de los servicios asociados a " | cut:"en " | cut:"relacionados a " | title}}</td> 105 <td><a class="btn" onclick="return abrir_modal('{% url 'explicacion:modificar_respuesta_' respuesta.pregunta.tipo_pregunta.pk respuesta.pk %}')"><i class="glyphicon glyphicon-edit"></i></a></td>106 45 </tr> 107 46 {% else %} … … 110 49 {% for justificacion in abierta %} 111 50 {% if justificacion.es_justificacion and justificacion.pregunta.pk == respuesta.pregunta.pk %} 112 <td >No,{{justificacion.texto_respuesta}} </td>51 <td onclick="return abrir_modal('{% url 'explicacion:modificar_respuesta_' respuesta.pregunta.tipo_pregunta.pk respuesta.pk %}')">No,{{justificacion.texto_respuesta}} </td> 113 52 {% endif %} 114 53 {% endfor %} 115 54 <td>{{ respuesta.pregunta.consulta.nombre_consulta | cut:" de mi comunidad" | cut:"Calidad del servicio de " | cut:"Calidad de servicios de " | cut:"Calidad de servicios " | cut:"Calidad de los servicios asociados a " | cut:"en " | cut:"relacionados a " | title}}</td> 116 <td><a class="btn" onclick="return abrir_modal('{% url 'explicacion:modificar_respuesta_' respuesta.pregunta.tipo_pregunta.pk respuesta.pk %}')" ><i class="glyphicon glyphicon-edit"></i></a></td>117 55 </tr> 118 56 {% endif %} 119 120 57 {% endfor %} 121 122 58 {% for respuesta in opciones %} 123 59 <tr> 124 60 <td>{{ respuesta.opcion.pregunta }}</td> 125 <td >{{ respuesta.opcion }}</td>61 <td onclick="return abrir_modal('{% url 'explicacion:modificar_respuesta_' respuesta.opcion.pregunta.tipo_pregunta.pk respuesta.pk %}')">{{ respuesta.opcion }}</td> 126 62 <td>{{ respuesta.opcion.pregunta.consulta.nombre_consulta | cut:" de mi comunidad" | cut:"Calidad del servicio de " | cut:"Calidad de servicios de " | cut:"Calidad de servicios " | cut:"Calidad de los servicios asociados a " | cut:"en " | cut:"relacionados a " | title}}</td> 127 <td><a class="btn" onclick="return abrir_modal('{% url 'explicacion:modificar_respuesta_' respuesta.opcion.pregunta.tipo_pregunta.pk respuesta.pk %}')"><i class="glyphicon glyphicon-edit"></i></a></td>128 63 </tr> 129 64 {% endfor %} 130 65 {% for respuesta in abierta %} 131 132 66 {% if not respuesta.es_justificacion %} 133 67 <tr> 134 68 <td>{{ respuesta.pregunta }}</td> 135 <td >{{ respuesta.texto_respuesta }}</td>69 <td onclick="return abrir_modal('{% url 'explicacion:modificar_respuesta_' respuesta.pregunta.tipo_pregunta.pk respuesta.pk %}')">{{ respuesta.texto_respuesta }}</td> 136 70 <td>{{ respuesta.pregunta.consulta.nombre_consulta | cut:" de mi comunidad" | cut:"Calidad del servicio de " | cut:"Calidad de servicios de " | cut:"Calidad de servicios " | cut:"Calidad de los servicios asociados a " | cut:"en " | cut:"relacionados a " | title}}</td> 137 <td><a class="btn" onclick="return abrir_modal('{% url 'explicacion:modificar_respuesta_' respuesta.pregunta.tipo_pregunta.pk respuesta.pk %}')"><i class="glyphicon glyphicon-edit"></i></a></td>138 71 </tr> 139 {% endif %} 140 72 {% endif %} 141 73 {% endfor %} 142 74 {% for respuesta in ubicacion %} … … 148 80 </tr> 149 81 {% endfor %} 150 </tbody> 151 82 </tbody> 152 83 </table> 153 84 {% endif %} … … 160 91 <div class="inner"> 161 92 <h3 title="titulo-estado-agua">Estado del Servicio de Agua </h3> 162 163 93 <p align="justify">En este sub-módulo podrá registrar, consultar y modificar la situación de aguas blancas y aguas negras. </p> 164 94 </div> … … 178 108 <div class="inner"> 179 109 <h3 title="titulo-estado-electricidad">Estado del Servicio de Electricidad y Gas </h3> 180 181 110 <p align="justify">En este sub-módulo podrá registrar, consultar y modificar la situación de la electricidad y el gas. </p> 182 111 </div> … … 196 125 <div class="inner"> 197 126 <h3 title="titulo-estado-infraestructura">Estado de la Infraestructura Vial </h3> 198 199 127 <p align="justify">En este sub-módulo podrá registrar, consultar y modificar la situación de la vialidad. </p> 200 128 </div> … … 214 142 <div class="inner"> 215 143 <h3 title="titulo-estado-saneamiento">Estado de los Servicios Ambientales </h3> 216 217 144 <p align="justify">En este sub-módulo podrá registrar, consultar y modificar la situación ambiental. </p> 218 145 </div> … … 232 159 <div class="inner"> 233 160 <h3 title="titulo-estado-salud">Estado de los Servicios de Salud </h3> 234 235 161 <p align="justify">En este sub-módulo podrá registrar, consultar y modificar las situaciones de salud social. </p> 236 162 </div> -
explicacion_situacional/templates/modificar.respuesta.html
rc7b7e3b r8837872 1 {% block extracss %} 2 {% load staticfiles %} 3 <link type="text/css" rel="stylesheet" href="{% static 'jquery-entropizer-master/dist/css/jquery-entropizer.min.css' %}" /> 4 <link href="{% static 'bootstrap-3/css/bootstrap-toggle.min.css'%}" rel="stylesheet"> 5 {% endblock extracss %} 6 {% block extrajs %} 7 <script src="{% static 'bootstrap-3/js/bootstrap-toggle.min.js'%}"></script> 8 <script type="text/javascript" src="{% static 'jquery-entropizer-master/lib/entropizer.js' %}"></script> 9 <script type="text/javascript" src="{% static 'jquery-entropizer-master/dist/js/jquery-entropizer.min.js' %}"></script> 10 <script type="text/javascript" src="{% static 'users/user_register.js' %}"></script> 11 {% endblock extrajs %} 1 12 <div class="modal-dialog modal-lg"> 2 13 <div class="modal-content"> … … 14 25 <div class="panel panel-default"> 15 26 <div class="panel-body" style="text-align: center;"> 16 17 27 <div class="row"><label>Respuesta</label></div> 18 28 {{ formulario.respuesta}} … … 24 34 {{ formulario.justificacion }} 25 35 </div> 26 27 36 </div> 28 37 {% endif %} … … 41 50 </div> 42 51 </div> 43 44 45 52 <script type="text/javascript"> 46 53 $(function(){ … … 61 68 } 62 69 }); 63 }); 64 70 }); 65 71 function validacion() { 66 72 var select = document.getElementById('id_respuesta'); -
static/js/funciones.js
rc609db6 r8837872 127 127 } 128 128 } 129 130 /** 131 * Función para abrir el modal de moficicar las respuestas 132 **/ 133 134 function abrir_modal(url) 135 { 136 $('#popup').load(url, function() 137 { 138 $(this).modal('show'); 139 }); 140 return false; 141 } 142 143 /** 144 * Función para cerrar el modal de moficicar las respuestas 145 **/ 146 147 function cerrar_modal() 148 { 149 $('#popup').modal('hide'); 150 return false; 151 } 152 153 /** 154 * Función que crea la tabla DataTable con las respuestas a las encuestas 155 * 156 **/ 157 $(document).ready(function() { 158 var table = $('#tabla-participacion').DataTable({ 159 "columnDefs": [ 160 { width: '40%', targets: 'social0' }, 161 { width: '50%', targets: 'social1' }, 162 { width: '20%', targets: 'politica2' }, 163 ], 164 initComplete: function () { 165 this.api().columns([2]).every( function () { 166 var column = this; 167 var select = $('#select_filter') 168 .on( 'change', function () { 169 var val = $.fn.dataTable.util.escapeRegex( 170 $(this).val() 171 ); 172 173 column 174 .search( val ? '^'+val+'$' : '', true, false ) 175 .draw(); 176 } ); 177 178 column.data().unique().sort().each( function ( d, j ) { 179 select.append( '<option value="'+d+'">'+d+'</option>' ) 180 } ); 181 } ); 182 }, 183 "language": { 184 url: "/static/DataTables/media/js/Spanish.json" 185 }, 186 "lengthMenu": [ [10, 50, 100, -1], [10, 50, 100, "Todo"] ], 187 188 189 "scrollX": true, 190 "fixedColumns": true , 191 "dom": 'lfrtBSip', 192 "buttons": ['copy', 'csv', 'print'] 193 }); 194 }); 195 196 197 198 199 200
Nota: Vea TracChangeset
para ayuda en el uso del visor de conjuntos de cambios.