You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<div class="form-row {{ pregunta.alias }} {{ pregunta.class }}"> <div class="form-holder"> {% if casoestudio is defined and casoestudio is not empty %} {% if respuestaca[pregunta.alias] is defined %} <a class="btn btn-primary btn-sm casoestudiobtn" data-toggle="collapse" data-target="#casoestudio{{ pregunta.id }}">{{ 'Caso de estudio'|trans({}) }}</a> <div id="casoestudio{{ pregunta.id }}" class="collapse casoestudiodiv"> <pre>{{ respuestaca[pregunta.alias]|raw }}</pre> </div> {% endif %} {% endif %} {% if pregunta.preTitulo is not empty %} <div class="{{ tarea[0].getProcesosId.alias }}_pretitulo">{{ pregunta.preTitulo|trans({})|raw }}</div> {% endif %} <div class="switch switch-blue"> <label for="{{ pregunta.alias }}"> {% if respuestas is empty %} <input type="hidden" id="{{ pregunta.alias }}" name="{{ pregunta.alias }}" value="off" checked/> <input type="radio" id="{{ pregunta.alias }}-off" class="switch-input" name="{{ pregunta.alias }}-1" placeholder="{{ pregunta.placeholder|trans({}) }}" onclick="$('#{{ pregunta.alias }}').val('off')" {% if not pregunta.editable and 'caso_estudio' not in app.user.username %} readonly {% endif %} value="off" data-sonata-icheck="false" checked> <label for="{{ pregunta.alias }}-off" class="switch-label switch-label-off">OFF</label> <input type="radio" id="{{ pregunta.alias }}-on" class="switch-input" name="{{ pregunta.alias }}-1" placeholder="{{ pregunta.placeholder|trans({}) }}" onclick="$('#{{ pregunta.alias }}').val('on')" {% if not pregunta.editable and 'caso_estudio' not in app.user.username %} readonly {% endif %} value="on" data-sonata-icheck="false" > <label for="{{ pregunta.alias }}-on" class="switch-label switch-label-on">ON</label> <span class="switch-selection"></span> {% else %} {% set encontrada = false %} {% for respuesta in respuestas %} {% if respuesta.preguntas.id == pregunta.id %} {% set encontrada=true %} <input type="hidden" id="{{ pregunta.alias }}" name="{{ pregunta.alias }}" value="{{ respuesta.valor}}"/>
<input type="radio" id="{{ pregunta.alias }}-off" class="switch-input" name="{{ pregunta.alias }}-1" placeholder="{{ pregunta.placeholder|trans({}) }}" onclick="$('#{{ pregunta.alias }}').val('off')" {% if not pregunta.editable and 'caso_estudio' not in app.user.username %} readonly {% endif %} value="off" data-sonata-icheck="false" {% if 'off' == respuesta.valor %}checked {% endif %}> <label for="{{ pregunta.alias }}-off" class="switch-label switch-label-off">OFF</label> <input type="radio" id="{{ pregunta.alias }}-on" class="switch-input" name="{{ pregunta.alias }}-1" placeholder="{{ pregunta.placeholder|trans({}) }}" onclick="$('#{{ pregunta.alias }}').val('on')" {% if not pregunta.editable and 'caso_estudio' not in app.user.username %} readonly {% endif %} value="on" data-sonata-icheck="false" {% if 'on' == respuesta.valor %}checked {% endif %}> <label for="{{ pregunta.alias }}-on" class="switch-label switch-label-on">ON</label> <span class="switch-selection"></span>
{% endif %} {% endfor %} {% if not encontrada %} <input type="hidden" id="{{ pregunta.alias }}" name="{{ pregunta.alias }}" value="off" checked/> <input type="radio" id="{{ pregunta.alias }}-off" class="switch-input" name="{{ pregunta.alias }}-1" placeholder="{{ pregunta.placeholder|trans({}) }}" onclick="$('#{{ pregunta.alias }}').val('off')" {% if not pregunta.editable and 'caso_estudio' not in app.user.username %} readonly {% endif %} value="off" data-sonata-icheck="false" checked> <label for="{{ pregunta.alias }}-off" class="switch-label switch-label-off">OFF</label> <input type="radio" id="{{ pregunta.alias }}-on" class="switch-input" name="{{ pregunta.alias }}-1" placeholder="{{ pregunta.placeholder|trans({}) }}" onclick="$('#{{ pregunta.alias }}').val('on')"{% if not pregunta.editable and 'caso_estudio' not in app.user.username %} readonly {% endif %} value="on" data-sonata-icheck="false" > <label for="{{ pregunta.alias }}-on" class="switch-label switch-label-on">ON</label> <span class="switch-selection"></span> {% endif %} {% endif %} <span class="control-label__text">{{ pregunta.nombre|trans({})|raw }}</span></label> {% if pregunta.descripcion is not empty %} <div class="{{ tarea[0].getProcesosId.alias }}_descripcion">{{ pregunta.descripcion|trans({})|raw }}</div> {% endif %} </div> </div></div>
|