|
@@ -4,6 +4,8 @@ if(!@$intakeOrVisit) {
|
|
|
}
|
|
|
$whenLabel = ($intakeOrVisit === 'INTAKE') ? 'on intake' : 'during visit';
|
|
|
$epPart = ($intakeOrVisit === 'INTAKE') ? 'OnIntake' : 'DuringVisit';
|
|
|
+$whenNotLabel = ($intakeOrVisit === 'INTAKE') ? 'during visit' : 'on intake';
|
|
|
+$epNotPart = ($intakeOrVisit === 'INTAKE') ? 'DuringVisit' : 'OnIntake';
|
|
|
?>
|
|
|
<?php if ($point->is_removed): ?>
|
|
|
<?php if ($point->is_removed_due_to_entry_error): ?>
|
|
@@ -137,11 +139,11 @@ $epPart = ($intakeOrVisit === 'INTAKE') ? 'OnIntake' : 'DuringVisit';
|
|
|
</div>
|
|
|
<div class="border-bottom">
|
|
|
<div visit-moe>
|
|
|
- <a start show href="#" class="px-2 py-1 d-block text-nowrap">Mark as added <?= $whenLabel ?></a>
|
|
|
- <form url="/api/visitPoint/markAdded<?= $epPart ?>" class="mcp-theme-1">
|
|
|
+ <a start show href="#" class="px-2 py-1 d-block text-nowrap">Mark as added <?= $whenNotLabel ?></a>
|
|
|
+ <form url="/api/visitPoint/markAdded<?= $epNotPart ?>" class="mcp-theme-1">
|
|
|
<input type="hidden" name="uid" value="<?= $point->uid ?>">
|
|
|
<input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
|
|
|
- <p class="mb-2"><b>Mark as added <?= $whenLabel ?></b></p>
|
|
|
+ <p class="mb-2"><b>Mark as added <?= $whenNotLabel ?></b></p>
|
|
|
<div class="mb-2">
|
|
|
<label class="text-sm text-secondary mb-1">Addition Reason</label>
|
|
|
<textarea name="additionReasonMemo" class="form-control form-control-sm" rows="2"></textarea>
|