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

@@ -10,11 +10,11 @@
<form action="post.php" method="post" autocomplete="off">
<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" placeholder="Category name" required autofocus>
</div>
<div class="form-group">
<label>Type</label>
<label>Type <strong class="text-danger">*</strong></label>
<select class="form-control selectpicker" name="type" required>
<option value="">- Type -</option>
<?php foreach($category_types_array as $category_type) { ?>
@@ -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">
</div>
</div>