Fix form label naming

This commit is contained in:
Bernd Bestel
2018-01-04 12:53:15 +01:00
parent e40979a874
commit dd1d253ea5

View File

@@ -22,7 +22,7 @@
</div>
<div class="form-group">
<label for="period_type">Location</label>
<label for="period_type">Period type</label>
<select required class="form-control input-group-habit-period-type" id="period_type" name="period_type">
<?php foreach ($periodTypes as $periodType) : ?>
<option <?php if ($mode == 'edit' && $periodType == $habit->period_type) echo 'selected="selected"'; ?> value="<?php echo $periodType; ?>"><?php echo $periodType; ?></option>