<commit_before><script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script>
  $(function() {
    $( "#datepickerStart" ).datepicker();
    $( "#datepickerEnd" ).datepicker();
  });
  </script>

<div class="col-lg-6">
    <h1 class="page-title"><?php echo $this->translate("Add a student to a activity")?></h1>
    <?php if(isset($this -> activity)){?>
    <h4><?php echo $this->translate("You are about to edit")?> <strong><?php echo $this->escapehtml($this -> activity -> getName());?></strong></h4>
    <form action="/admin/activities/addstudents" method="post" name="studentsadd">
        <input type="hidden" name="activity" value="<?php echo $this->escapehtml($this -> activity -> getId()) ?>" />
        <div class="form-group">
            <label for="students"><?php echo $this->translate("Select one student you want to add to this activity and give him/her a start and end date")?></label>
            <select multiple="false" class="form-control" name="student" required>
                <?php
                    foreach ($this -> students as $student) {
                        ?>
                        <option value="<?php echo htmlentities($this->escapehtml($student->getId()));?>"><?php echo $this->escapehtml($student -> getFirstname() . " " . $student -> getInsertion() . " " . $student -> getLastname());?></option>
                        <?php
                    }
                ?>
            </select>
            <br>
            <div>Startdate: <input name="startDate" type="text" id="datepickerStart" required></div>
            <br>
            <div>Enddate: <input name="endDate" type="text" id="datepickerEnd" required></div>
        </div>
        <input type="submit" class="btn btn-success pull-right" value="<?php echo $this->translate("Add selected students")?>" />
    </form>
    <?php } else {?>
        <div class="alert alert-danger">
            <?php echo $this->translate("Missing a parameterarray('students' => $students, 'activity' => $activity to specify an activity!")?>
        </div>
        <?php } ?>
</div><commit_msg>mooie datepicker<commit_after>

<div class="col-lg-6">
    <h1 class="page-title"><?php echo $this->translate("Add a student to a activity")?></h1>
    <?php if(isset($this -> activity)){?>
    <h4><?php echo $this->translate("You are about to edit")?> <strong><?php echo $this->escapehtml($this -> activity -> getName());?></strong></h4>
    <form action="/admin/activities/addstudents" method="post" name="studentsadd">
        <input type="hidden" name="activity" value="<?php echo $this->escapehtml($this -> activity -> getId()) ?>" />
        <div class="form-group">
            <label for="students"><?php echo $this->translate("Select one student you want to add to this activity and give him/her a start and end date")?></label>
            <select multiple="false" class="form-control" name="student" required>
                <?php
                    foreach ($this -> students as $student) {
                        ?>
                        <option value="<?php echo htmlentities($this->escapehtml($student->getId()));?>"><?php echo $this->escapehtml($student -> getFirstname() . " " . $student -> getInsertion() . " " . $student -> getLastname());?></option>
                        <?php
                    }
                ?>
            </select>       
        </div>
        <div class="form-group">
	            <label for="startDate">Startdate</label>
	            <input class="form-control" id='startDate'required type="date" name="startDate"/>
	           
        	</div>
        	<div class="form-group">
	            <label for="endDate">Enddate</label>
	            <input class="form-control" id='endDate'required type="date" name="endDate"/>
        	</div>
        <input type="submit" class="btn btn-success pull-right" value="<?php echo $this->translate("Add selected students")?>" />
    </form>
    <?php } else {?>
        <div class="alert alert-danger">
            <?php echo $this->translate("Missing a parameterarray('students' => $students, 'activity' => $activity to specify an activity!")?>
        </div>
        <?php } ?>
</div>
{'fraction_non_alphanumeric': 0.19005917159763314, 'fraction_numerical': 0.004260355029585799, 'mean_word_length': 2.5512605042016805, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 141, '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': '2269927', 'n_tokens_mistral': 1193, 'n_tokens_neox': 1185, 'n_words': 280}