<commit_before>{% extends 'MunicipalesBundle:theme:layout.html.twig' %}

{% block title %}{{ 'candidate.html_title'|trans }}{% endblock %}

{% block head %}
    {{ parent() }}
    <script>
    $(document).ready(function() 
    {
		$(document).on('submit','#candidate_step6', function(event)
	    {
		    if($("#candidate_step6 .countable[type='checkbox']:checked").length > 3)
		    {
		    	alert('Solo pueden seleccionarse hasta maximo 3 opciones');
	    		// $( "span" ).text( "Not valid!" ).show().fadeOut( 1000 );
	    		event.preventDefault();
		    }
		    else
		    {
		    	return;
		    }
	    });
    });
    
	</script>
{% endblock %}

{% block content %}
    <h1>{{ 'candidate.h1_title'|trans }}</h1>
    
    <p class="important">
    	<div>
			{{ form_start(form, { 'attr': {'class': 'form_settings', 'id': 'candidate_step6'}}) }}
			
			<p><div style="background-color:gold;color:black">{{ form_errors(form) }}</div><p>
			
			<p>
				{{ 'candidate.step6.govern_priorities_title'|trans }}

				<table>
				{% for child in form.govern_priorities %}
					<tr>
				        <td>{{ form_widget(child, {'attr' : {'class' : 'countable'}}) }}</td> 
				        <td style="padding:5px">{{ form_label(child) }}</td>       
				    </tr>
				{% endfor %}
				</table>
			</p>
			
			<p>
			    {{ form_widget(form.continue, { 'label': 'candidate.step6.continue'|trans }) }}
			</p>
			
			{{ form_rest(form) }}
			
			{{ form_end(form) }}
		</div>
    </p>
{% endblock %}<commit_msg>Add missing checkbox types for step 6<commit_after>{% extends 'MunicipalesBundle:theme:layout.html.twig' %}

{% block title %}{{ 'candidate.html_title'|trans }}{% endblock %}

{% form_theme form _self %}

{% block checkbox_widget %}
{% spaceless %}
<input type="checkbox" style="width:25px" {{ block('widget_attributes') }}{% if value is defined %} value="{{ value }}"{% endif %}{% if checked %} checked="checked"{% endif %} />
{% endspaceless %}
{% endblock checkbox_widget %}

{% block head %}
    {{ parent() }}
    <script>
    $(document).ready(function() 
    {
		$(document).on('submit','#candidate_step6', function(event)
	    {
		    if($("#candidate_step6 .countable[type='checkbox']:checked").length > 3)
		    {
		    	alert('Solo pueden seleccionarse hasta maximo 3 opciones');
	    		// $( "span" ).text( "Not valid!" ).show().fadeOut( 1000 );
	    		event.preventDefault();
		    }
		    else
		    {
		    	return;
		    }
	    });
    });
    
	</script>
{% endblock %}

{% block content %}
    <h1>{{ 'candidate.h1_title'|trans }}</h1>
    
    <p class="important">
    	<div>
			{{ form_start(form, { 'attr': {'class': 'form_settings', 'id': 'candidate_step6'}}) }}
			
			<p><div style="background-color:gold;color:black">{{ form_errors(form) }}</div><p>
			
			<p>
				{{ 'candidate.step6.govern_priorities_title'|trans }}

				<table>
				{% for child in form.govern_priorities %}
					<tr>
				        <td>{{ form_widget(child, {'attr' : {'class' : 'countable'}}) }}</td> 
				        <td style="padding:5px">{{ form_label(child) }}</td>       
				    </tr>
				{% endfor %}
				</table>
			</p>
			
			<p>
			    {{ form_widget(form.continue, { 'label': 'candidate.step6.continue'|trans }) }}
			</p>
			
			{{ form_rest(form) }}
			
			{{ form_end(form) }}
		</div>
    </p>
{% endblock %}
{'fraction_non_alphanumeric': 0.21059001512859304, 'fraction_numerical': 0.009984871406959153, 'mean_word_length': 2.8, 'pattern_counts': {'":': 0, '<': 52, '<?xml version=': 0, '>': 54, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1095089', 'n_tokens_mistral': 1396, 'n_tokens_neox': 1148, 'n_words': 200}