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,179 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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">{{ __('roles.new_role') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('roles.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('roles.index') }}">{{ __('roles.roles') }}</a></li>
|
||||
<li class="active">{{ __('roles.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<!-- .row -->
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
<div>@include('flash::message')</div>
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
{{ __('roles.input_error') }}<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<div class="white-box">
|
||||
{!! Form::open(array('route' => 'roles.store','method'=>'POST')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name',__('roles.name_of_role')) }}
|
||||
{{ Form::text('name',null,['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<!--<div class="form-group">-->
|
||||
<h3 class="box-title">{{ __('roles.permissions') }}</h3>
|
||||
<div class="table-responsive">
|
||||
<table class="table color-table success-table table-sm">
|
||||
|
||||
@foreach($categories as $category)
|
||||
<thead>
|
||||
<tr>
|
||||
<th># {{ __('roles.assign') }}</th>
|
||||
<th>{{ $category->name }} <span class="float-right">{{ __('roles.check_all') }} <input type="checkbox" id="check-all{{ $category->id }}"></span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@php
|
||||
$permissions = Streamline\Models\PermissionCategory::find($category->id)->permissions;
|
||||
@endphp
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item list-group-item-success"><input type="checkbox" id="" class="viewing{{$category->id}}"> {{ __('roles.viewing') }} </li>
|
||||
<li class="list-group-item list-group-item-success"><input type="checkbox" id="" class="creating{{$category->id}}"> {{ __('roles.creating') }} </li>
|
||||
<li class="list-group-item list-group-item-info"><input type="checkbox" id="" class="editing{{$category->id}}"> {{ __('roles.editing') }}</li>
|
||||
<li class="list-group-item list-group-item-danger"><input type="checkbox" id="" class="deleting{{$category->id}}"> {{ __('roles.deleting') }}</li>
|
||||
<li class="list-group-item list-group-item-warning"><input type="checkbox" id="" class="othering{{$category->id}}"> {{ __('roles.other') }}</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
@foreach($permissions->chunk(3) AS $permission)
|
||||
<div class="row">
|
||||
@foreach($permission as $item)
|
||||
<div class="col-sm-4">
|
||||
|
||||
{{ Form::checkbox('permission[]', $item->id, false, array('class' => "permission{$category->id} {$item->crud}{$category->id}")) }}
|
||||
{{ $item->description }} <br>
|
||||
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
<!--</div>-->
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<hr>
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
{{ Form::button(__('roles.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('roles.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript">
|
||||
$('document').ready(function () {
|
||||
|
||||
$("[id^=check-all]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('id'));
|
||||
|
||||
if ($('.permission' + id).is(':checked')) {
|
||||
$('.permission' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.permission' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$("[class^=viewing]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('class'));
|
||||
|
||||
if ($('.view' + id).is(':checked')) {
|
||||
$('.view' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.view' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$("[class^=creating]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('class'));
|
||||
|
||||
if ($('.create' + id).is(':checked')) {
|
||||
$('.create' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.create' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$("[class^=editing]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('class'));
|
||||
|
||||
if ($('.edit' + id).is(':checked')) {
|
||||
$('.edit' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.edit' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$("[class^=deleting]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('class'));
|
||||
|
||||
if ($('.delete' + id).is(':checked')) {
|
||||
$('.delete' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.delete' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$("[class^=othering]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('class'));
|
||||
|
||||
if ($('.other' + id).is(':checked')) {
|
||||
$('.other' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.other' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush('scripts')
|
||||
|
||||
Reference in New Issue
Block a user