Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: Factor out views for participant attributes
- Loading branch information
1 parent
3296f12
commit 75e8016
Showing
8 changed files
with
155 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
application/views/admin/participants/modal_subviews/attributes/date.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<div class="form-horizontal form-group"> | ||
<label class="col-sm-4 control-label" for="datepickerInputField_[<?php echo $name; ?>]"><?php echo $defaultname; ?></label> | ||
<div> | ||
<div class='col-sm-8'> | ||
<input class="form-control" name="datepickerInputField_<?php echo $name; ?>" id="datepickerInputField_<?php echo $name; ?>" type="text" value="<?php echo $value; ?>"> | ||
<input name="Attributes[<?php echo $name; ?>]" id="Attributes_<?php echo $name; ?>" type="hidden" value="<?php echo $value; ?>"> | ||
<script type="text/javascript"> | ||
$(function () { | ||
$('#datepickerInputField_<?php echo $name; ?>').datetimepicker(datepickerConfig.initDatePickerObject); | ||
$('#datepickerInputField_<?php echo $name; ?>').on("dp.change", function(e){ | ||
$("#Attributes_<?php echo $name; ?>").val(e.date.format(datepickerConfig.dateformatdetailsjs)); | ||
}) | ||
}); | ||
</script> | ||
</div> | ||
</div> | ||
</div> |
18 changes: 18 additions & 0 deletions
18
application/views/admin/participants/modal_subviews/attributes/dropdown.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<div class="form-horizontal form-group"> | ||
<label class="col-sm-4 control-label" for="datepickerInputField_[<?php echo $name; ?>]"><?php echo $defaultname; ?></label> | ||
<div> | ||
<div class='col-sm-8'> | ||
<select class="form-control" name="Attributes[<?php echo $name; ?>]" id="Attributes_<?php echo $name; ?>"> | ||
<option></option> <!-- Nothing selected --> | ||
<?php foreach ($options as $option): ?> | ||
<option | ||
<?php if ($option['value'] == $value): echo 'selected'; endif; ?> | ||
value='<?php echo $option['value']; ?>' | ||
> | ||
<?php echo $option['value']; ?> | ||
</option> | ||
<?php endforeach; ?> | ||
</select> | ||
</div> | ||
</div> | ||
</div> |
8 changes: 8 additions & 0 deletions
8
application/views/admin/participants/modal_subviews/attributes/textbox.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="form-group"> | ||
<label class="col-sm-4 control-label" for="Attributes[<?php echo $name; ?>]"><?php echo $defaultname; ?></label> | ||
<div> | ||
<div class='col-sm-8'> | ||
<input class="form-control" name="Attributes[<?php echo $name; ?>]" id="Attributes_<?php echo $name; ?>" type="text" maxlength="254" value="<?php echo $value; ?>"> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters