<!-- Form for editing comments -->
<?php 
echo heading(lang('comments'), 2);
?>

<?php 
echo form_open($action, array('class' => 'pure-form pure-form-aligned'));
echo form_fieldset($page_title);
?>

<?php 
echo form_textarea_and_label('comment', $comment, NULL, 'required');
echo form_hidden('referrer', $referrer);
?>

<?php 
echo form_controls();
echo form_fieldset_close();
echo form_close();
?>
</p>
<?php 
echo form_textarea_and_label('comment', $comment, lang('part_comment'), 'required');
?>
<p class="warning"><?php 
echo lang('pp_comment_info');
?>
</p>
<?php 
echo form_textarea_and_label('pp_comment', $pp_comment, lang('pp_comment'));
?>
<p class="warning"><?php 
echo lang('tech_comment_info');
?>
</p>
<?php 
echo form_textarea_and_label('tech_comment', $tech_comment, lang('tech_comment'));
?>

<?php 
echo form_fieldset(lang('actions'));
echo form_single_checkbox_and_label('cancelled_complete', '1');
?>

<!-- TODO: add result file here. -->

<?php 
echo form_controls('participation/experiment/' . $experiment_id);
echo form_fieldset_close();
echo form_close();
            echo ' <a class="add_l">+ voeg taal toe</a>';
        } else {
            echo ' <a class="del_l">x verwijder taal</a>';
        }
        echo '</div>';
        $i++;
    }
    ?>
	<?php 
}
?>
</div>

	<?php 
echo form_fieldset(lang('data_end'));
?>
	<?php 
echo form_dropdown_and_label('origin', array('letter' => lang('origin_letter'), 'zwazat' => lang('origin_zwazat'), 'mouth' => lang('origin_mouth'), 'info' => lang('origin_info'), 'other' => lang('origin_other')), $origin);
?>
	<?php 
echo form_textarea_and_label('comment', $comment, lang('comment_space'));
?>

	<?php 
echo form_controls();
?>
	<?php 
echo form_fieldset_close();
?>
	<?php 
echo form_close();
echo form_fieldset($page_title);
?>

<?php 
if ($new_dyslexia) {
    echo form_dropdown_and_label('participant', $participants, array(), 'class="chosen-select"');
} else {
    echo form_input_and_label('participant', name($participant), 'readonly');
}
?>

<div class="pure-control-group">
<?php 
echo form_label(lang('parent'), 'gender');
echo form_radio_and_label('gender', Gender::Female, $gender, gender_parent(Gender::Female));
echo form_radio_and_label('gender', Gender::Male, $gender, gender_parent(Gender::Male));
echo form_error('gender');
?>
</div>
<?php 
echo form_single_checkbox_and_label('statement', '1', $statement);
echo form_input_and_label('emt_score', $emt_score, 'class="positive-integer"');
echo form_input_and_label('klepel_score', $klepel_score, 'class="positive-integer"');
echo form_input_and_label('vc_score', $vc_score, 'class="positive-integer"');
echo form_textarea_and_label('comment', $comment);
?>

<?php 
echo form_controls();
echo form_fieldset_close();
echo form_close();
<script type="text/javascript" src="js/dob.js"></script>

<?php 
echo heading($page_title, 2);
?>

<p><?php 
echo lang('deregister_pageintro');
?>
</p> 

<?php 
echo form_open($action, array('class' => 'pure-form pure-form-aligned'));
?>

<?php 
echo form_fieldset(lang('data_child'));
echo form_input_and_label('firstname', $firstname, 'required');
echo form_input_and_label('lastname', $lastname, 'required');
echo form_input_and_label('dob', $dob, 'id="birth_datepicker" required');
echo form_fieldset(lang('data_end'));
echo form_input_and_label('email', $email, 'required email="true"');
echo form_textarea_and_label('reason');
?>

<?php 
echo form_controls();
echo form_fieldset_close();
echo form_close();
echo validation_errors();
<?php 
echo form_open($action, array('class' => 'pure-form pure-form-aligned'));
echo form_fieldset($page_title);
?>

<?php 
if ($new_testsurvey) {
    echo form_dropdown_and_label('test', test_options($tests), $test_id);
} else {
    echo form_input_and_label('test', $test->name, 'readonly');
}
echo form_input_and_label('limesurvey_id', $limesurvey_id, 'required class="positive-integer"');
?>
<div class="pure-control-group">
<?php 
echo form_label(lang('whensent'), 'whensent');
echo form_radio_and_label('whensent', TestWhenSent::Participation, $whensent, lcfirst(lang(TestWhenSent::Participation)));
echo form_radio_and_label('whensent', TestWhenSent::Months, $whensent, lang(TestWhenSent::Months));
echo form_radio_and_label('whensent', TestWhenSent::Manual, $whensent, lang(TestWhenSent::Manual));
?>
</div>
<?php 
echo form_input_and_label('whennr', $whennr, 'required class="positive-integer"');
echo form_textarea_and_label('description', $description, lang('survey_description'));
?>

<?php 
echo form_controls();
echo form_fieldset_close();
echo form_close();