|
@@ -53,6 +53,7 @@
|
|
<tr>
|
|
<tr>
|
|
<th class="px-2 text-secondary">Created</th>
|
|
<th class="px-2 text-secondary">Created</th>
|
|
<th class="px-2 text-secondary">Report</th>
|
|
<th class="px-2 text-secondary">Report</th>
|
|
|
|
+ <th class="px-2 text-secondary">Sign</th>
|
|
<th class="px-2 text-secondary">Title</th>
|
|
<th class="px-2 text-secondary">Title</th>
|
|
<th class="px-2 text-secondary">Category</th>
|
|
<th class="px-2 text-secondary">Category</th>
|
|
<th class="px-2 text-secondary">Memo</th>
|
|
<th class="px-2 text-secondary">Memo</th>
|
|
@@ -68,7 +69,13 @@
|
|
<a class="pdf-viewer-trigger" native target="_blank"
|
|
<a class="pdf-viewer-trigger" native target="_blank"
|
|
href="/api/incomingReport/download/{{ $document->uid }}"
|
|
href="/api/incomingReport/download/{{ $document->uid }}"
|
|
title="View">View</a>
|
|
title="View">View</a>
|
|
- <span class="mx-2 text-secondary">|</span>
|
|
|
|
|
|
+ @if($document->is_entry_error)
|
|
|
|
+ <span class="ml-auto text-danger on-hover-opaque" title="Entry Error"><i class="fa fa-exclamation-triangle"></i></span>
|
|
|
|
+ @endif
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="px-2">
|
|
|
|
+ @if(!$document->has_hcp_pro_signed)
|
|
<div moe relative class="mr-2">
|
|
<div moe relative class="mr-2">
|
|
<a start show class="">Sign</a>
|
|
<a start show class="">Sign</a>
|
|
<form url="/api/incomingReport/signAsHcp" right>
|
|
<form url="/api/incomingReport/signAsHcp" right>
|
|
@@ -80,10 +87,12 @@
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
- @if($document->is_entry_error)
|
|
|
|
- <span class="ml-auto text-danger on-hover-opaque" title="Entry Error"><i class="fa fa-exclamation-triangle"></i></span>
|
|
|
|
- @endif
|
|
|
|
- </div>
|
|
|
|
|
|
+ @else
|
|
|
|
+ <span class="text-secondary">
|
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
|
+ Signed
|
|
|
|
+ </span>
|
|
|
|
+ @endif
|
|
</td>
|
|
</td>
|
|
<td class="px-2">{{ $document->title }}</td>
|
|
<td class="px-2">{{ $document->title }}</td>
|
|
<td class="px-2">{{ $document->category }}{{ $document->subcategory ? ' / ' . $document->subcategory : '' }}</td>
|
|
<td class="px-2">{{ $document->category }}{{ $document->subcategory ? ' / ' . $document->subcategory : '' }}</td>
|
|
@@ -93,76 +102,78 @@
|
|
<a class="on-hover-opaque mr-3" native target="_blank"
|
|
<a class="on-hover-opaque mr-3" native target="_blank"
|
|
href="/api/incomingReport/download/{{ $document->uid }}"
|
|
href="/api/incomingReport/download/{{ $document->uid }}"
|
|
title="Download"><i class="fa fa-download"></i></a>
|
|
title="Download"><i class="fa fa-download"></i></a>
|
|
- <div moe relative class="mr-3">
|
|
|
|
- <a href="#" start show class="on-hover-opaque" title="Edit"><i class="fa fa-edit text-primary"></i></a>
|
|
|
|
- <form url="dummy" action="/api/incomingReport/updateBasic"
|
|
|
|
- method="post"
|
|
|
|
- onsubmit="return submitIncomingReport(this)"
|
|
|
|
- enctype="multipart/form-data">
|
|
|
|
- <input type="hidden" name="uid" value="{{ $document->uid }}">
|
|
|
|
-
|
|
|
|
- <div class="mb-2">
|
|
|
|
- <label for="" class="text-sm text-secondary mb-1">Category</label>
|
|
|
|
- <input type="text" class="form-control form-control-sm" name="category"
|
|
|
|
- value="{{$document->category}}" placeholder="Category">
|
|
|
|
- </div>
|
|
|
|
- <div class="mb-2">
|
|
|
|
- <label for="" class="text-sm text-secondary mb-1">Sub-category</label>
|
|
|
|
- <input type="text" class="form-control form-control-sm" name="subcategory"
|
|
|
|
- value="{{$document->subcategory}}" placeholder="Sub-category">
|
|
|
|
- </div>
|
|
|
|
- <div class="mb-2">
|
|
|
|
- <label for="" class="text-sm text-secondary mb-1">Report Date</label>
|
|
|
|
- <input type="date" class="form-control form-control-sm" name="reportDate"
|
|
|
|
- value="{{$document->reportDate}}" placeholder="Report Date">
|
|
|
|
- </div>
|
|
|
|
- <div class="mb-2">
|
|
|
|
- <label for="" class="text-sm text-secondary mb-1">Title</label>
|
|
|
|
- <input type="text" class="form-control form-control-sm" name="title"
|
|
|
|
- value="{{$document->title}}" placeholder="Title">
|
|
|
|
- </div>
|
|
|
|
- <div class="mb-2">
|
|
|
|
- <label for="" class="text-sm text-secondary mb-1">File *</label>
|
|
|
|
- <input type="file" class="form-control form-control-sm" name="pdf"
|
|
|
|
- value="" placeholder="File">
|
|
|
|
- <span class="text-sm text-secondary">Leave blank if not changing</span>
|
|
|
|
- </div>
|
|
|
|
- <div class="mb-2">
|
|
|
|
- <label for="" class="text-sm text-secondary mb-1">Memo</label>
|
|
|
|
- <input type="text" class="form-control form-control-sm" name="memo"
|
|
|
|
- value="{{$document->memo}}" placeholder="Memo">
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="d-flex align-items-center">
|
|
|
|
- <button class="btn btn-sm btn-primary mr-2" submit>Submit</button>
|
|
|
|
- <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
|
|
|
|
- </div>
|
|
|
|
- </form>
|
|
|
|
- </div>
|
|
|
|
- @if(!$document->is_entry_error)
|
|
|
|
|
|
+ @if(!$document->has_hcp_pro_signed)
|
|
<div moe relative class="mr-3">
|
|
<div moe relative class="mr-3">
|
|
- <a start show class="on-hover-opaque" title="Mark as entry-error"><i class="fa fa-trash-alt text-danger"></i></a>
|
|
|
|
- <form url="/api/incomingReport/setIsEntryErrorToTrue" right>
|
|
|
|
|
|
+ <a href="#" start show class="on-hover-opaque" title="Edit"><i class="fa fa-edit text-primary"></i></a>
|
|
|
|
+ <form url="dummy" action="/api/incomingReport/updateBasic"
|
|
|
|
+ method="post"
|
|
|
|
+ onsubmit="return submitIncomingReport(this)"
|
|
|
|
+ enctype="multipart/form-data">
|
|
<input type="hidden" name="uid" value="{{ $document->uid }}">
|
|
<input type="hidden" name="uid" value="{{ $document->uid }}">
|
|
- <p class="small">Are you sure you want to set this report as entry error?</p>
|
|
|
|
- <div class="d-flex align-items-center">
|
|
|
|
- <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
|
|
|
|
- <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
|
|
|
|
|
|
+
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <label for="" class="text-sm text-secondary mb-1">Category</label>
|
|
|
|
+ <input type="text" class="form-control form-control-sm" name="category"
|
|
|
|
+ value="{{$document->category}}" placeholder="Category">
|
|
</div>
|
|
</div>
|
|
- </form>
|
|
|
|
- </div>
|
|
|
|
- @else
|
|
|
|
- <div moe relative class="mr-3">
|
|
|
|
- <a start show class="on-hover-opaque" title="Undo mark as entry-error"><i class="fa fa-undo"></i></a>
|
|
|
|
- <form url="/api/incomingReport/setIsEntryErrorToFalse" right>
|
|
|
|
- <input type="hidden" name="uid" value="{{ $document->uid }}">
|
|
|
|
- <p class="small">Are you sure you want to set unset this report as entry error?</p>
|
|
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <label for="" class="text-sm text-secondary mb-1">Sub-category</label>
|
|
|
|
+ <input type="text" class="form-control form-control-sm" name="subcategory"
|
|
|
|
+ value="{{$document->subcategory}}" placeholder="Sub-category">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <label for="" class="text-sm text-secondary mb-1">Report Date</label>
|
|
|
|
+ <input type="date" class="form-control form-control-sm" name="reportDate"
|
|
|
|
+ value="{{$document->reportDate}}" placeholder="Report Date">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <label for="" class="text-sm text-secondary mb-1">Title</label>
|
|
|
|
+ <input type="text" class="form-control form-control-sm" name="title"
|
|
|
|
+ value="{{$document->title}}" placeholder="Title">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <label for="" class="text-sm text-secondary mb-1">File *</label>
|
|
|
|
+ <input type="file" class="form-control form-control-sm" name="pdf"
|
|
|
|
+ value="" placeholder="File">
|
|
|
|
+ <span class="text-sm text-secondary">Leave blank if not changing</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <label for="" class="text-sm text-secondary mb-1">Memo</label>
|
|
|
|
+ <input type="text" class="form-control form-control-sm" name="memo"
|
|
|
|
+ value="{{$document->memo}}" placeholder="Memo">
|
|
|
|
+ </div>
|
|
|
|
+
|
|
<div class="d-flex align-items-center">
|
|
<div class="d-flex align-items-center">
|
|
- <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
|
|
|
|
|
|
+ <button class="btn btn-sm btn-primary mr-2" submit>Submit</button>
|
|
<button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
|
|
<button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
+ @if(!$document->is_entry_error)
|
|
|
|
+ <div moe relative class="mr-3">
|
|
|
|
+ <a start show class="on-hover-opaque" title="Mark as entry-error"><i class="fa fa-trash-alt text-danger"></i></a>
|
|
|
|
+ <form url="/api/incomingReport/setIsEntryErrorToTrue" right>
|
|
|
|
+ <input type="hidden" name="uid" value="{{ $document->uid }}">
|
|
|
|
+ <p class="small">Are you sure you want to set this report as entry error?</p>
|
|
|
|
+ <div class="d-flex align-items-center">
|
|
|
|
+ <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
|
|
|
|
+ <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+ @else
|
|
|
|
+ <div moe relative class="mr-3">
|
|
|
|
+ <a start show class="on-hover-opaque" title="Undo mark as entry-error"><i class="fa fa-undo"></i></a>
|
|
|
|
+ <form url="/api/incomingReport/setIsEntryErrorToFalse" right>
|
|
|
|
+ <input type="hidden" name="uid" value="{{ $document->uid }}">
|
|
|
|
+ <p class="small">Are you sure you want to set unset this report as entry error?</p>
|
|
|
|
+ <div class="d-flex align-items-center">
|
|
|
|
+ <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
|
|
|
|
+ <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</td>
|