Make name required. Make delete box select2 so it's filterable

This commit is contained in:
Marcus Hill 2022-01-20 21:47:33 +00:00
parent f27a902b04
commit 3da4e3ce46
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
<form action="post.php" method="post" autocomplete="off">
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
<div class="form-group">
<input type="text" class="form-control" name="tag_name" placeholder="Tag Name" autofocus>
<input type="text" class="form-control" name="tag_name" placeholder="Tag Name" required autofocus>
</div>
<button type="submit" name="add_document_tag" class="btn btn-primary">Add Tag</button>
</form>
@ -22,7 +22,7 @@
<form action="post.php" method="post" autocomplete="off">
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
<div class="form-group">
<select class="form-select" name="tag_id">
<select class="form-control select2" name="tag_id">
<?php
foreach($document_tags as $document_tag) {
echo "<option value='$document_tag[tag_id]'>"; echo htmlentities($document_tag['tag_name']); echo "</option>";