mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Add tag functionality to documents
This commit is contained in:
@@ -14,6 +14,34 @@
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="name" value="<?php echo $document_name; ?>" placeholder="Name" required>
|
||||
</div>
|
||||
|
||||
<!-- Document Tags select start -->
|
||||
<?php
|
||||
if($document_tags) { ?>
|
||||
<div class="form-group">
|
||||
<div class="button-group">
|
||||
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="fa fa-fw fa-tag"></span> <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<?php
|
||||
foreach($document_tags as $document_tag) {
|
||||
?>
|
||||
<li>
|
||||
<div class="form-check">
|
||||
<label>
|
||||
<input class="form-check-input" type="checkbox" value="<?php echo $document_tag['tag_id'] ?>" name="tags_ids[<?php echo $document_tag['tag_id']; ?>]" <?php if(in_array($document_tag['tag_id'],$document_tags_set)) {echo "checked";} ?>> <?php echo htmlentities($document_tag['tag_name']); ?>
|
||||
</label>
|
||||
</div>
|
||||
</li>
|
||||
<?php
|
||||
} ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
} ?>
|
||||
<!-- Document tags select end -->
|
||||
|
||||
<div class="form-group">
|
||||
<textarea class="form-control summernote" name="content"><?php echo $document_content; ?></textarea>
|
||||
|
||||
Reference in New Issue
Block a user