| |
| 16 |
{{tabindex.startint}}1{{tabindex.end}}
|
| 17 |
<h2>{[faq_contact_header]}</h2>
|
| 18 |
|
19 | |
<div class="c_r_cont1"><div class="c_r_top1"><div></div></div><div class="c_r_content1" > |
| 19 |
<div id="errorlist" class="{{show_error==false.start}}hidden{{show_error==false.end}}" class="c_r_cont1"><div class="c_r_top1"><div></div></div><div class="c_r_content1" > |
| 20 |
<div>
|
| 21 |
<div >
|
22 | |
|
23 | |
<section id="errorlist" class="{{show_error==false.start}}hidden{{show_error==false.end}}"> |
| 22 |
|
| 23 |
<p id="error_captcha" class="well bg-danger {{error_captcha==false.start}}hidden{{error_captcha==false.end}}">{[error_captcha]}</p>
|
| 24 |
<p id="error_email" class="well bg-danger {{error_email==false.start}}hidden{{error_email==false.end}}">{[signup_error_mail_invalid]}</p>
|
| 25 |
<p id="error_message_empty" class="well bg-danger {{error_message_empty==false.start}}hidden{{error_message_empty==false.end}}">{[name_insert_text]}</p>
|
| |
| 56 |
<span class="faq_contact_info_general hidden">{[faq_contact_info_general]}.</span>
|
| 57 |
<span class="faq_contact_info_violation hidden">{[faq_contact_info_violation]}.</span>
|
| 58 |
<br/><br/>
|
59 | |
<form action="{{faq_contact_action}}" method="POST"> |
| 59 |
<form action="{{faq_contact_action}}" method="POST" onsubmit="return checkContactForm();"> |
| 60 |
<div class="form-group">
|
61 | |
<label for="name">{[faq_contact_name]}</label>{{name_mandatory==false.start}} <small>({[blog_optional]})</small>{{name_mandatory==false.end}}<br/> |
| 61 |
<label for="name">{[faq_contact_name]}</label>{{name_mandatory==false.start}} <small class="optional">({[blog_optional]})</small>{{name_mandatory==false.end}}<br/> |
| 62 |
<input class="inputbox" style="min-width:250px;" data-validate="notempty" type="text" name="name" id="name" tabindex="{{tabindex}}" class="form-control" placeholder="{[faq_contact_name_placeholder]}" value="{{name}}" /><br/><br/>
|
| 63 |
</div>
|
| 64 |
{{tabindex.startint}}{{tabindex}}+1{{tabindex.end}}
|
| 65 |
<div class="form-group">
|
| 66 |
<label for="email">{[faq_contact_mail]}</label>
|
67 | |
{{email_mandatory==false.start}} <small>({[blog_optional]})</small>{{email_mandatory==false.end}}<br/> |
| 67 |
{{email_mandatory==false.start}} <small class="optional">({[blog_optional]})</small>{{email_mandatory==false.end}}<br/> |
| 68 |
<input class="inputbox" style="min-width:250px;" data-validate="notempty" type="text" name="email" id="email" tabindex="{{tabindex}}" class="form-control" placeholder="{[faq_contact_mail_placeholder]}" value="{{email}}" /><br/><br/>
|
| 69 |
</div>
|
| 70 |
{{tabindex.startint}}{{tabindex}}+1{{tabindex.end}}
|
| |
| 102 |
</form>
|
| 103 |
</div>
|
| 104 |
</div>
|
| 105 |
<style>#faq_contact_form.generic .optional{display:none;}</style> |
| 106 |
<script>
|
| 107 |
function checkContactForm(){ |
| 108 |
|
| 109 |
$('#errorlist').addClass('hidden'); |
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
if($('#contactmessage').val() === ""){ |
| 114 |
|
| 115 |
$('#error_message_empty').removeClass('hidden'); |
| 116 |
|
| 117 |
$('#error_message_empty').addClass('hidden'); |
| 118 |
|
| 119 |
|
| 120 |
if($('#faq_contact_form').hasClass('generic')){ |
| 121 |
//hier auch noch email checken: |
| 122 |
if($('#error_email').val() === ""){ |
| 123 |
|
| 124 |
$('#error_email').removeClass('hidden'); |
| 125 |
|
| 126 |
$('#error_email').addClass('hidden'); |
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
$('#errorlist').removeClass('hidden'); |
| 132 |
console.log("dont send"); |
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
function toggle_contact_form(violation){
|
| 142 |
$('#faq_contact_selector').addClass('hidden');
|
| 143 |
if(violation){
|
| 144 |
$('.faq_contact_info_violation').removeClass('hidden');
|
| 145 |
$('.faq_contact_info_general').addClass('hidden');
|
| 146 |
$('#mtype').val('violation');
|
| 147 |
$('#faq_contact_form').addClass('violation').removeClass('generic'); |
| 148 |
}else{
|
| 149 |
$('.faq_contact_info_violation').addClass('hidden');
|
| 150 |
$('.faq_contact_info_general').removeClass('hidden');
|
| 151 |
$('#mtype').val('message');
|
| 152 |
$('#faq_contact_form').removeClass('violation').addClass('generic'); |
| 153 |
}
|
| 154 |
|
| 155 |
$('#faq_contact_form').removeClass('hidden');
|
| 156 |
|