{% block form_content %}
<h2>{{ text.subscribe.title }}</h2>
<span id="news_fill_fields">{{ text.subscribe.fields }}</span>
<form id="news_subscribe_form" action="#" method="post">
	<input type="hidden" id="{{ REQUEST.id }}">
	
	<label>{{ text.contact.name }} *</label>
	<input type="text" id="subscribe_name" name="subscribe[name]" class="validate[required,custom[name]] form-control" placeholder="">
	<label>{{ text.misc.email }} *</label>
	<input type="text" id="subscribe_email" name="subscribe[email]" class="validate[required,custom[email]] form-control" placeholder="">
	<label>{{ text.contact.start_date }} </label>
	<input type="text" id="subscribe_start_date" name="subscribe[start_date]" class="validate[custom[phone_world]] form-control" placeholder="">
	<label>{{ text.contact.end_date }} </label>
	<input type="text" id="subscribe_end_date" name="subscribe[end_date]" class="validate[custom[phone_world]] form-control" placeholder="">
	<label>{{ text.contact.phone }} </label>
	<input type="text" id="subscribe_phone" name="subscribe[phone]" class="validate[custom[phone_world]] form-control" placeholder="">
	<label>{{ text.contact.obs }} *</label>
	<textarea id="subscribe_obs" name="subscribe[obs]" class="validate[required,custom[text]] form-control" placeholder=""></textarea>


	{% if captcha_show %}
		<label for="name">{{ text.contact.captcha }}: <span id="captcha_question_sub">{{ captcha_question }}</span> *</label>
		<input type="text" id="captcha" name="subscribe[captcha] " class="validate[required] form-control" />
	{% endif %}
	
	{% block _ext_data_form_content_consent %}{% endblock %}
	
	<input type="submit" id="subscribe_send" name="subscribe[send]" value="{{ text.contact.send }}" class="small-button">
	<span id="news_subscribe_ob_fields">* {{ text.subscribe.ob_fields }}</span>
</form>
{% endblock %}
{% block javascript %}
	<script>
		$("#subscribe_start_date,#subscribe_end_date").datepicker({
			dateFormat:"{{ text.js.date }}",
			beforeShow: function(){
				setTimeout(function(){
					$('.ui-datepicker').css('z-index', 99999999999999);
				}, 0);
			}
		});
	</script>
{% endblock %}