mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 11:41:31 +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:
+101
@@ -0,0 +1,101 @@
|
||||
@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" />
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
@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">{{ __('frequently_asked_questions.faq') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('frequently_asked_questions.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('frequently_asked_questions.index') }}">{{ __('frequently_asked_questions.faq') }}</a></li>
|
||||
<li class="active">{{ __('frequently_asked_questions.add_faq') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('frequently_asked_questions.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'frequently_asked_questions.store','data-toggle'=>'validator']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('question', __('frequently_asked_questions.question')) }}
|
||||
{{ Form::text('question', '', ['class'=>'form-control compulsory','required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('module_id', __('frequently_asked_questions.modules')) }}
|
||||
{{ Form::select('module_id', $modules, '', ['class'=>'form-control', 'id'=>'module_id']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('answer', __('frequently_asked_questions.answer')) }}
|
||||
{{ Form::textarea('answer', '', ['class'=>'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('reference_url', 'Primary Reference URL') }}
|
||||
{{ Form::text('reference_url', '', ['class'=>'form-control', 'id'=>'reference_url']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('additional_reference_url', 'Secondary Reference URL') }}
|
||||
{{ Form::text('additional_reference_url', '', ['class'=>'form-control', 'id'=>'additional_reference_url']) }}
|
||||
</div>
|
||||
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button('Cancel',['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</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>
|
||||
|
||||
<!-- data time piker dependency -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<!-- -->
|
||||
|
||||
<script>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
$('#datepicker-autoclose,#datepicker-autoclose2').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
setDate: new Date(),
|
||||
readOnly: true
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
@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" />
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@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">{{ __('frequently_asked_questions.faq') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('frequently_asked_questions.dashboard') }}</a></li>
|
||||
<li><a class="btn btn-outline-success btn-sm btn-rounded" href="{{ route('frequently_asked_questions.create') }}">{{ __('frequently_asked_questions.add_faqs') }}</a></li>
|
||||
<li class="active">{{ __('frequently_asked_questions.add_faq') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('frequently_asked_questions.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">{{ __('frequently_asked_questions.export_csv') }}</p>
|
||||
{{ Form::open(['route' => 'frequently_asked_questions.bulk_update','data-toggle'=>'validator']) }}
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
{{ Form::submit(__('frequently_asked_questions.save'), ['class'=>'btn btn-success']) }}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped success-bordered-table color-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('frequently_asked_questions.question') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.module_category') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.answered') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('frequently_asked_questions.question') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.module_category') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.answered') }}</th>
|
||||
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@php $count = 1; @endphp
|
||||
@if(count($frequently_asked_questions) > 0)
|
||||
@foreach($frequently_asked_questions as $question)
|
||||
<tr>
|
||||
{{ Form::hidden('id[]', $question->id) }}
|
||||
<td>{{ $count }}.</td>
|
||||
<td>{{ Form::text('question[]', $question->question,['class'=>'form-control compulsory', 'required']) }}</td>
|
||||
<td>{{ Form::select('module_id[]', $modules, $question->module_id, ['class'=>'form-control select'])}}</td>
|
||||
<td>{{ Form::textarea('answers[]', $question->answer,['class'=>'form-control', 'rows'=>'5']) }}</td>
|
||||
</tr>
|
||||
@php ++$count; @endphp
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
{{ Form::submit(__('frequently_asked_questions.save'), ['class'=>'btn btn-success']) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.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', 'excel', 'pdf', 'print'
|
||||
],
|
||||
pageLength : 100,
|
||||
});
|
||||
|
||||
$('.select').select2();
|
||||
</script>
|
||||
@endpush
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
@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" />
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
@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">{{ __('frequently_asked_questions.faq') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('frequently_asked_questions.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('frequently_asked_questions.index') }}">{{ __('frequently_asked_questions.faq') }}</a></li>
|
||||
<li class="active">{{ __('frequently_asked_questions.add_faq') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('frequently_asked_questions.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
|
||||
{{ Form::model($frequently_asked_question, ['method' => 'PUT', 'route' => ['frequently_asked_questions.update',$frequently_asked_question], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('question', __('frequently_asked_questions.question')) }}
|
||||
{{ Form::text('question', $frequently_asked_question->question, ['class'=>'form-control compulsory','required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('module_id', __('frequently_asked_questions.modules')) }}
|
||||
{{ Form::select('module_id', $modules, $frequently_asked_question->module_id, ['class'=>'form-control', 'id'=>'module_id']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('answer', __('frequently_asked_questions.answer')) }}
|
||||
{{ Form::textarea('answer', $frequently_asked_question->answer, ['class'=>'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('reference_url', 'Primary Reference URL') }}
|
||||
{{ Form::text('reference_url', $frequently_asked_question->reference_url, ['class'=>'form-control', 'id'=>'reference_url']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('additional_reference_url', 'Secondary Reference URL') }}
|
||||
{{ Form::text('additional_reference_url', $frequently_asked_question->additional_reference_url, ['class'=>'form-control', 'id'=>'additional_reference_url']) }}
|
||||
</div>
|
||||
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button('Cancel',['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</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>
|
||||
|
||||
<!-- data time piker dependency -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<!-- -->
|
||||
|
||||
<script>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
$('#datepicker-autoclose,#datepicker-autoclose2').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
setDate: new Date(),
|
||||
readOnly: true
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
@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" />
|
||||
@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">{{ __('frequently_asked_questions.faq') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('frequently_asked_questions.dashboard') }}</a></li>
|
||||
<li><a class="btn btn-outline-success btn-sm btn-rounded" href="{{ route('frequently_asked_questions.create') }}">{{ __('frequently_asked_questions.add_faqs') }}</a></li>
|
||||
<li class="active">{{ __('frequently_asked_questions.add_faq') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('frequently_asked_questions.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">{{ __('frequently_asked_questions.export_csv') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped success-bordered-table color-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('frequently_asked_questions.question') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.module_category') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.answered') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('frequently_asked_questions.question') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.module_category') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.answered') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@php $count = 1; @endphp
|
||||
@if(count($frequently_asked_questions) > 0)
|
||||
@foreach($frequently_asked_questions as $question)
|
||||
<tr>
|
||||
<td>{{ $count }}.</td>
|
||||
<td>{{ (!is_null($question->question) ? $question->question : '') }}</td>
|
||||
<td>{{ (!is_null($question->module_id) ? get_name($question->module_id, 'id', 'name', 'modules') : '') }}</td>
|
||||
<td>
|
||||
@if($question->answer != "")
|
||||
<label class='label label-success'>{{ __('frequently_asked_questions.answere') }}</label>
|
||||
@else
|
||||
<label class='label label-danger'>{{ __('frequently_asked_questions.not_answered') }}</label>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<a href="/frequently_asked_questions/{{ $question->id }}/edit/" class="btn btn-warning btn-rounded btn-sm"><i class="fa fa-pencil"></i> {{ __('frequently_asked_questions.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($question->id ,['method' => 'DELETE', 'route' => ['frequently_asked_questions.destroy', $question->id]]) }}
|
||||
<button type="submit" class="btn btn-danger btn-rounded btn-sm" onclick="return confirm('Are you sure?')"><i class="fa fa-trash"></i> {{ __('frequently_asked_questions.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@php ++$count; @endphp
|
||||
@endforeach
|
||||
@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', 'excel', 'pdf', 'print'
|
||||
],
|
||||
pageLength : 100,
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<a href="{{ route('frequently_asked_questions.search') }}" class="nav-item btn btn-primary" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 5px">{{ __('frequently_asked_questions.search') }}</span></a>
|
||||
<a href="{{ route('frequently_asked_questions.create') }}" class="nav-item btn btn-success" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 5px">{{ __('frequently_asked_questions.add_question') }}</span></a>
|
||||
<a href="{{ route('modules.index') }}" class="nav-item btn btn-success" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 5px">{{ __('frequently_asked_questions.manage_modules') }}</span></a>
|
||||
<a href="{{ route('frequently_asked_questions.index') }}" class="nav-item btn btn-warning" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 5px">{{ __('frequently_asked_questions.view_question') }}</span></a>
|
||||
<a href="{{ route('frequently_asked_questions.bulk_edit') }}" class="nav-item btn btn-info" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 5px">{{ __('frequently_asked_questions.edit_all_questions') }}</span></a>
|
||||
<a href="{{ route('frequently_asked_questions.inactive') }}" class="nav-item btn btn-danger" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 5px">{{ __('frequently_asked_questions.inactive_question') }}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
+116
@@ -0,0 +1,116 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
<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" />
|
||||
@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">{{ __('frequently_asked_questions.faq') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('frequently_asked_questions.dashboard') }}</a></li>
|
||||
<li><a class="btn btn-outline-success btn-sm btn-rounded" href="{{ route('frequently_asked_questions.create') }}">{{ __('frequently_asked_questions.add_faqs') }}</a></li>
|
||||
<li class="active">{{ __('frequently_asked_questions.add_faq') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('frequently_asked_questions.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-3 b-r">
|
||||
{{ __('frequently_asked_questions.search_more') }}
|
||||
{{ Form::open(['route'=>'frequently_asked_questions.result', 'data-toggle' => 'validator']) }}
|
||||
<div class="input-group" id="questions">
|
||||
{{ Form::text('question', '', ['class' => 'form-control typeahead', 'required', 'placeholder' => __('frequently_asked_questions.search_for'), 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
||||
<span class="input-group-btn">
|
||||
{{ Form::submit(__('frequently_asked_questions.search'), ['class'=>'btn btn-info']) }}
|
||||
</span>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<img src="{{ asset('uploads/streamline/color/280X50-06.png') }}" style="height: 25px; width: 130px;" alt="home" /><br/><br/>
|
||||
@foreach($questions as $question)
|
||||
<label class="label label-success">{{ __('frequently_asked_questions.question') }}</label>
|
||||
<h3>{{ $question->question }}</h3><br>
|
||||
|
||||
<label class="label label-success">{{ __('frequently_asked_questions.answer') }}</label>
|
||||
<article>
|
||||
{{ $question->answer }}
|
||||
</article>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
{{ __('frequently_asked_questions.related_questions') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/typeahead.js-master/dist/typeahead.bundle.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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
let substringMatcher = function(strs) {
|
||||
return function findMatches(q, cb) {
|
||||
let matches, substrRegex;
|
||||
|
||||
// an array that will be populated with substring matches
|
||||
matches = [];
|
||||
|
||||
// regex used to determine if a string contains the substring `q`
|
||||
substrRegex = new RegExp(q, 'i');
|
||||
|
||||
// iterate through the pool of strings and for any string that
|
||||
// contains the substring `q`, add it to the `matches` array
|
||||
$.each(strs, function(i, str) {
|
||||
if (substrRegex.test(str)) {
|
||||
matches.push(str);
|
||||
}
|
||||
});
|
||||
|
||||
cb(matches);
|
||||
};
|
||||
};
|
||||
|
||||
$('#questions .typeahead').typeahead(
|
||||
{
|
||||
hint: true,
|
||||
highlight: true,
|
||||
minLength: 1
|
||||
},
|
||||
{
|
||||
name: 'patient_numbers',
|
||||
source: substringMatcher(<?php echo json_encode($faqs); ?>)
|
||||
}
|
||||
);
|
||||
</script>
|
||||
@endpush
|
||||
+135
@@ -0,0 +1,135 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
<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" />
|
||||
@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">{{ __('frequently_asked_questions.faq') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('frequently_asked_questions.dashboard') }}</a></li>
|
||||
<li><a class="btn btn-outline-success btn-sm btn-rounded" href="{{ route('frequently_asked_questions.create') }}">{{ __('frequently_asked_questions.add_faqs') }}</a></li>
|
||||
<li class="active">{{ __('frequently_asked_questions.add_faq') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('frequently_asked_questions.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 offset-3">
|
||||
<h2 style="text-align: center;"><b>Stre@mline {{ __('frequently_asked_questions.faq') }}</b></h2>
|
||||
<br/>
|
||||
{{ Form::open(['route'=>'frequently_asked_questions.result', 'data-toggle' => 'validator']) }}
|
||||
<div class="input-group" id="questions">
|
||||
{{ Form::text('question', '', ['class' => 'form-control typeahead', 'required', 'placeholder' => 'Search for...', 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
||||
<span class="input-group-btn">
|
||||
{{ Form::submit(__('frequently_asked_questions.search'), ['class'=>'btn btn-info']) }}
|
||||
</span>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<div class="row">
|
||||
<div class="col-sm-6 offset-3 text-center">
|
||||
<h3><b>{{ __('frequently_asked_questions.search_categories') }}</b></h3>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<div class="row">
|
||||
@foreach($modules as $module)
|
||||
<div class="col-md-3 col-sm-6">
|
||||
<div class="white-box">
|
||||
<a href="{{ route('frequently_asked_questions.result', ['module'=>$module->id]) }}">
|
||||
<div class="r-icon-stats">
|
||||
<i class="ti-user bg-megna"></i>
|
||||
<div class="bodystate">
|
||||
<h4>{{ $module->name }}</h4><br/>
|
||||
@php if($questions_per_module[$module->id] > 0){ $color = 'success'; }else{ $color = 'danger'; } @endphp
|
||||
<label class="label label-{{ $color }}">
|
||||
{{ $questions_per_module[$module->id] }}
|
||||
</label>
|
||||
<span class="text-muted" style="margin-left: 10px;">{{ __('frequently_asked_questions.questions_answered') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/typeahead.js-master/dist/typeahead.bundle.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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
let substringMatcher = function(strs) {
|
||||
return function findMatches(q, cb) {
|
||||
let matches, substrRegex;
|
||||
|
||||
// an array that will be populated with substring matches
|
||||
matches = [];
|
||||
|
||||
// regex used to determine if a string contains the substring `q`
|
||||
substrRegex = new RegExp(q, 'i');
|
||||
|
||||
// iterate through the pool of strings and for any string that
|
||||
// contains the substring `q`, add it to the `matches` array
|
||||
$.each(strs, function(i, str) {
|
||||
if (substrRegex.test(str)) {
|
||||
matches.push(str);
|
||||
}
|
||||
});
|
||||
|
||||
cb(matches);
|
||||
};
|
||||
};
|
||||
|
||||
$('#questions .typeahead').typeahead(
|
||||
{
|
||||
hint: true,
|
||||
highlight: true,
|
||||
minLength: 1
|
||||
},
|
||||
{
|
||||
name: 'patient_numbers',
|
||||
source: substringMatcher(<?php echo json_encode($faqs); ?>)
|
||||
}
|
||||
);
|
||||
</script>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user