mirror of
https://github.com/itflow-org/itflow
synced 2026-06-26 11:40:40 +00:00
Categories: Moved note type, software type, rack type to be creatable/editable Categories with common defaults and descriptions
This commit is contained in:
@@ -43,8 +43,17 @@ ob_start();
|
||||
</div>
|
||||
<select class="form-control select2" name="type" required>
|
||||
<option value="">- Type -</option>
|
||||
<?php foreach($rack_type_select_array as $rack_type) { ?>
|
||||
<option><?php echo $rack_type; ?></option>
|
||||
<?php
|
||||
$sql_rack_types_select = mysqli_query($mysqli, "
|
||||
SELECT category_name FROM categories
|
||||
WHERE category_type = 'rack_type'
|
||||
AND category_archived_at IS NULL
|
||||
ORDER BY category_order ASC, category_name ASC
|
||||
");
|
||||
while ($row = mysqli_fetch_assoc($sql_rack_types_select)) {
|
||||
$rack_type_select = nullable_htmlentities($row['category_name']);
|
||||
?>
|
||||
<option><?= $rack_type_select ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user