Merge pull request #308 from wrongecho/tags

Document Tags
This commit is contained in:
Johnny 2022-01-20 19:04:47 -05:00 committed by GitHub
commit 06076c8b55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>";