Added Red * to required fields, fixed blank form dates not erroring out because of not being null, current defaults to 0000-00-00 if blank

This commit is contained in:
johnny@pittpc.com
2019-07-27 19:58:59 -04:00
parent 6a83e960f6
commit 56f839809a
65 changed files with 254 additions and 238 deletions

View File

@@ -11,11 +11,11 @@
<input type="hidden" name="category_id" value="<?php echo $category_id; ?>">
<div class="modal-body bg-white">
<div class="form-group">
<label>Name</label>
<label>Name <strong class="text-danger">*</strong></label>
<input type="text" class="form-control" name="name" value="<?php echo $category_name; ?>" required>
</div>
<div class="form-group">
<label>Type</label>
<label>Type <strong class="text-danger">*</strong></label>
<select class="form-control selectpicker show-tick" name="type" required>
<?php foreach($category_types_array as $category_type_select) { ?>
<option <?php if($category_type == $category_type_select) { echo "selected"; } ?>><?php echo $category_type_select; ?></option>
@@ -23,7 +23,7 @@
</select>
</div>
<div class="form-group">
<label>Color</label>
<label>Color <strong class="text-danger">*</strong></label>
<input type="color" class="form-control col-md-2" name="color" value="<?php echo $category_color; ?>">
</div>
</div>