mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 19:51:30 +00:00
Build modified streamline images
The official image from streamline does not currently work for the arm64 platform. As a temporary measure, the source code and docker build scripts have been lifted from the official images and are used to build locally. Some additional modifications are made to reduce overall image size, these are documented in docker/README.md
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('/elite/bower_components/datatables/jquery.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('elite/tables/css/buttons.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<style type="text/css">
|
||||
.color-bordered-table.success-bordered-table {
|
||||
border-top: 0px;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">{{ __('blood_donations.new_blood_donation') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('blood_donations.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('blood_donations.index') }}">{{ __('blood_donations.blood_donors') }}</a></li>
|
||||
<li class="active">{{ __('blood_donations.new_blood_donation') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 20%">{{ __('blood_donations.blood_group') }}</th>
|
||||
<th style="width: 20%">{{ __('blood_donations.name') }}</th>
|
||||
<th style="width: 20%">{{ __('blood_donations.phone') }}</th>
|
||||
<th style="width: 20%">{{ __('blood_donations.new_donation_date') }}</th>
|
||||
<th style="width: 20%">{{ __('blood_donations.action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
@php $blood_group = \Streamline\Models\BloodGroup::find($donor->blood_group_id); @endphp
|
||||
<td>{{ $blood_group->name }}</td>
|
||||
<td>{{ $donor->first_name }} {{ $donor->last_name }}</td>
|
||||
<td>{{ $donor->phone }}</td>
|
||||
<td>
|
||||
{{ Form::open(['method' => 'POST', 'route' => ['blood_donations.store']]) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('donation_date','',['class' => 'form-control compulsory', 'required','readonly','id'=>'datepicker-autoclose']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<input type="hidden" name="donor_id" value="{{ $donor->id }}">
|
||||
<button type="submit" class="btn btn-success btn-sm"> {{ __('blood_donations.update') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/dataTables.buttons.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/buttons.flash.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/jszip.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/pdfmake.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/vfs_fonts.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/buttons.html5.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/buttons.print.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
jQuery('#datepicker-autoclose').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,127 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('/elite/bower_components/datatables/jquery.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('elite/tables/css/buttons.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<style type="text/css">
|
||||
.color-bordered-table.success-bordered-table {
|
||||
border-top: 0px;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">{{ __('blood_donations.blood_donations') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('blood_donations.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('blood_donations.index') }}">{{ __('blood_donations.blood_donors') }}</a></li>
|
||||
<li class="active">{{ __('blood_donations.view') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-sm-4"></div>
|
||||
<div class="col-sm-4">
|
||||
{{ Form::open(['method' => 'post', 'route'=>'select.blood_group'])}}
|
||||
|
||||
{{ Form::label('blood_group_id', __('blood_donations.select_blood_group')) }}
|
||||
{{ Form::select('blood_group_id', $blood_groups, null, ['class'=>'form-control compulsory','required']) }}
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="col-sm-3 form-group" style="padding-top: 28px;">
|
||||
{{ Form::button(__('blood_donations.search'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('blood_donations.name') }}</th>
|
||||
<th>{{ __('blood_donations.blood_group') }}</th>
|
||||
<th>{{ __('blood_donations.phone') }}</th>
|
||||
<th>{{ __('blood_donations.last_donated') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(count($willing_donors) > 0)
|
||||
@foreach($willing_donors as $donor)
|
||||
<tr>
|
||||
<td>{{ $donor->first_name }} {{ $donor->last_name }}</td>
|
||||
@php $blood_group = \Streamline\Models\BloodGroup::find($donor->blood_group_id); @endphp
|
||||
<td>{{ is_null($blood_group) ? '' : $blood_group->name }}</td>
|
||||
<td>{{ $donor->phone }}</td>
|
||||
<td>
|
||||
{{ (get_name($donor->id, "donor_id", "last_donation_date", "blood_donations") != 'N/A') ? streamline_date(get_name($donor->id, "donor_id", "last_donation_date", "blood_donations")) : 'N/A' }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::open(['method' => 'POST', 'route' => ['blood_donations.create_donation', $donor->id]]) }}
|
||||
<input type="hidden" name="donor_id" value="{{ $donor->id }}">
|
||||
<button type="submit" class="btn btn-success btn-rounded btn-sm"><i class="fa fa-plus"></i><span style="margin-left: 10px;">{{ __('blood_donations.add_donation') }}</span></button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
<td>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" href="blood_donations/{{$donor->id}}"><i class="fa fa-eye"></i><span style="margin-left: 10px;">{{ __('blood_donations.view_details') }}</span></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr><td colspan="5"><font color="red">{{ __('blood_donations.no_records_found') }}</font></td></tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/dataTables.buttons.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/buttons.flash.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/jszip.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/pdfmake.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/vfs_fonts.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/buttons.html5.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/buttons.print.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', {
|
||||
extend: 'pdf',
|
||||
exportOptions: {
|
||||
columns: [ 0, 1, 2, 3 ]
|
||||
},
|
||||
title: '<?php echo __('blood_donations.blood_donations'); ?>'
|
||||
},
|
||||
{
|
||||
extend: 'print',
|
||||
exportOptions: {
|
||||
columns: [ 0, 1, 2, 3 ]
|
||||
},
|
||||
title: '<?php echo __('blood_donations.blood_donations'); ?>'
|
||||
},
|
||||
{
|
||||
extend: 'excel',
|
||||
exportOptions: {
|
||||
columns: [ 0, 1, 2, 3 ]
|
||||
},
|
||||
title: '<?php echo __('blood_donations.blood_donations'); ?>'
|
||||
}
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,90 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<style type="text/css">
|
||||
.color-bordered-table.success-bordered-table {
|
||||
border-top: 0px;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">{{ __('blood_donations.blood_donations') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('blood_donations.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('blood_donations.index') }}">{{ __('blood_donations.blood_donors') }}</a></li>
|
||||
<li class="active">{{ __('blood_donations.blood_donations') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<h4>{{ __('blood_donations.member_details') }}</h4>
|
||||
<br>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover table-condensed table-thead-simple">
|
||||
<tr>
|
||||
@php $blood_group = \Streamline\Models\BloodGroup::find($donor->blood_group_id); @endphp
|
||||
<th>{{ __('blood_donations.blood_group') }} : </th><td><font color="green"> {{ $blood_group->name }} </font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('blood_donations.name') }} : </th><td>{{ $donor->first_name }} {{ $donor->last_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('blood_donations.phone') }} : </th><td>{{ $donor->phone }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('blood_donations.willing_to_donate') }} : </th><td>{{ $donor->willing_to_donate == 1 ? __('blood_donations.yes') : __('blood_donations.no') }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<h4>{{ __('blood_donations.donation_details') }}</h4>
|
||||
<br>
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-bordered">
|
||||
<thead>
|
||||
<th style="width: 20%">#</th>
|
||||
<th style="width: 80%">{{ __('blood_donations.donation_date') }}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $counter = 1; @endphp
|
||||
@foreach($blood_donations as $donation)
|
||||
<tr>
|
||||
<td>{{ $counter }}. </td>
|
||||
<td>{{ streamline_date($donation->last_donation_date) }}</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
jQuery('#datepicker-autoclose').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user