Conjunto 14afbd3 en participacion_consulta
- Fecha y hora:
- 08/11/2017 11:52:06 (hace 7 años)
- Branches:
- master
- Children:
- 1c0c0d9
- Parents:
- 3625c13
- Ficheros:
-
- 2 editados
Leyenda
- No modificado
- Añadido
- Eliminado
-
participacion/views.py
rfd72443 r14afbd3 127 127 campo += '<label for="'+str(pregunta['id'])+'_2">No</label></p>' 128 128 else: 129 campo += '<p><input type="radio" name="consulta_respuesta_sino_'+str(pregunta['id'])+'" id="'+str(opcion['id'])+'"value="Si" class="need_justification">' 130 campo += '<label for="'+str(opcion['id'])+'">SÃ</label></p>' 131 campo += '<p><input type="radio" name="consulta_respuesta_sino_'+str(pregunta['id'])+'" id="'+str(opcion['id'])+'"value="No">' 132 campo += '<label for="'+str(opcion['id'])+'">No</label></p>' 133 campo += '<div id="div_justificar_'+kwargs['pk']+'" style="display:none;">' 134 campo += '<textarea class="form-control" id="respuesta_justificar_'+kwargs['pk']+'" name="consulta_respuesta_justificar_'+str(pregunta['id'])+'">' 129 campo += '<p><input type="radio" name="consulta_respuesta_sino_'+str(pregunta['id'])+'" id="'+str(pregunta['id'])+'_1" value="Si" ' 130 campo += 'class="need_justification" onclick=show_justification(this,true)>' 131 campo += '<label for="'+str(pregunta['id'])+'_1">SÃ</label></p>' 132 campo += '<p><input type="radio" name="consulta_respuesta_sino_'+str(pregunta['id'])+'" id="'+str(pregunta['id'])+'_2" value="No" onclick=show_justification(this,false)>' 133 campo += '<label for="'+str(pregunta['id'])+'_2">No</label></p>' 134 campo += '<div id="div_justificar_'+str(pregunta['id'])+'" style="display:none;">' 135 campo += '<textarea class="form-control" id="respuesta_justificar_'+str(pregunta['id'])+'" name="consulta_respuesta_justificar_'+str(pregunta['id'])+'">' 135 136 campo += '</textarea></div>' 136 137 else: -
static/js/funciones.js
r3625c13 r14afbd3 234 234 return html; 235 235 } 236 237 function show_justification(element,show) { 238 var id = $(element).attr("name").split("_"); 239 id = id[id.length-1]; 240 if (show) { 241 $('#div_justificar_'+id).show(); 242 } 243 else{ 244 $('#div_justificar_'+id).hide(); 245 } 246 }
Nota: Vea TracChangeset
para ayuda en el uso del visor de conjuntos de cambios.