|
@@ -17,6 +17,8 @@
|
|
|
}
|
|
|
?>
|
|
|
<script>window.userShortcuts = <?= json_encode($shortCutsObject); ?>;</script>
|
|
|
+ <link href="/select2/select2.min.css" rel="stylesheet" />
|
|
|
+ <script src="/select2/select2.min.js"></script>
|
|
|
<div>
|
|
|
|
|
|
{{-- CARE PLAN START --}}
|
|
@@ -66,7 +68,7 @@
|
|
|
<?php $availableDevices++; ?>
|
|
|
@endif
|
|
|
@endforeach
|
|
|
- <div class="mt-2 pb-1">
|
|
|
+ <div class="mt-2 pb-1" id="patient-dashboard-devices">
|
|
|
<div class="d-flex align-items-center mb-2 py-2 border-top border-bottom">
|
|
|
<h6 class="my-0 font-weight-bold text-secondary">Devices</h6>
|
|
|
@if($availableDevices > 0)
|
|
@@ -930,4 +932,14 @@
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
+ <script>
|
|
|
+ (function() {
|
|
|
+ function init() {
|
|
|
+ $('select[name="deviceUid"]').select2({
|
|
|
+ width: '100%'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ addMCInitializer('patient-dashboard-devices', init, '#patient-dashboard-devices');
|
|
|
+ }).call(window);
|
|
|
+ </script>
|
|
|
@endsection
|