|
@@ -31,7 +31,7 @@ else {
|
|
|
}
|
|
|
?>
|
|
|
<div visit-moe large relative class="d-inline">
|
|
|
- <a start show href="#">
|
|
|
+ <a start show href="#" class="px-1 text-center d-block" title="<?= !empty($currentValue) ? 'Edit Subjective' : 'Add Subjective'?>">
|
|
|
<i class="fa <?= !empty($currentValue) ? 'fa-pencil-alt' : 'fa-plus-square'?>"></i>
|
|
|
</a>
|
|
|
<form url="/api/visitPoint/upsertChildReview" class="mcp-theme-1" right>
|
|
@@ -65,4 +65,22 @@ else {
|
|
|
<button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
</div>
|
|
|
</form>
|
|
|
-</div>
|
|
|
+</div>
|
|
|
+<?php if(!empty($currentValue)): ?>
|
|
|
+ <div visit-moe relative class="d-inline">
|
|
|
+ <a start show href="#" class="px-1 text-center d-block" title="Delete Subjective">
|
|
|
+ <i class="fa fa-trash-alt text-danger on-hover-opaque"></i>
|
|
|
+ </a>
|
|
|
+ <form url="/api/visitPoint/destroyCurrentChildReview" class="mcp-theme-1" right>
|
|
|
+ <input type="hidden" name="uid" value="<?= $point->uid ?>">
|
|
|
+
|
|
|
+ <p class="mb-2">Delete this subjective?</p>
|
|
|
+
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-danger mr-2">Delete</button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+<?php endif; ?>
|
|
|
+
|