mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 03:31:31 +00:00
updated streamline-setup v2
This commit is contained in:
Executable
+96
@@ -0,0 +1,96 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
|
||||
<style>
|
||||
.no-padding {
|
||||
padding: 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">{{ __('general_settings.general_settings') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('general_settings.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('general_settings.activate_streamline_modules') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<h3><font color="blue">{{ __('general_settings.activate_streamline_modules') }}</font></h3>
|
||||
|
||||
{{ Form::open(['route' => 'streamline_modules.store_activated']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
{{-- <h3 class="box-title">{{ __('general_settings.activate_streamline_modules') }}</h3> --}}
|
||||
<div class="table-responsive">
|
||||
<table class="table color-table success-table table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('general_settings.check_streamline_modules_to_activate') }} <span class="float-right">{{ __('roles.check_all') }} <input type="checkbox" id="check-all"></span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($permission_categories as $category)
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::checkbox('permission_category[]', $category->id, $category->is_module_active == 1 ? true : false, ['class' => "permission_category"]) }}
|
||||
{{ $category->name }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::submit(__('general_settings.activate_streamline_modules'), ["class" => "btn btn-success"])}}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
/* $(document).ready(function(){
|
||||
$('#service_id').select2({});
|
||||
}); */
|
||||
|
||||
function show(id) {
|
||||
if (document.getElementById(id).style.display == 'none') {
|
||||
document.getElementById(id).style.display = '';
|
||||
}
|
||||
}
|
||||
|
||||
function hide(id) {
|
||||
document.getElementById(id).style.display = 'none';
|
||||
}
|
||||
|
||||
$("[id^=check-all]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('id'));
|
||||
|
||||
if ($('.permission_category').is(':checked')) {
|
||||
$('.permission_category').removeAttr('checked');
|
||||
} else {
|
||||
$('.permission_category').prop("checked", true);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
File diff suppressed because it is too large
Load Diff
+125
@@ -0,0 +1,125 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
|
||||
<style>
|
||||
.no-padding {
|
||||
padding: 0px;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg- col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">{{ __('general_settings.limit_number_of_active_users') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-8 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('general_settings.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('general_settings.edit_general_settings') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
@if (session()->has('streamline_setup'))
|
||||
<h3><font color="blue">{{ __('general_settings.streamline_setup') }}</font></h3>
|
||||
@endif
|
||||
|
||||
{{ Form::open(['route' => 'general_settings.save_number_of_active_users_limit_settings']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div>
|
||||
<h3 class="text-center">{{ __('general_settings.number_of_active_users_limit') }}</h3>
|
||||
|
||||
<h4>{{ __('general_settings.description') }}</h4>
|
||||
<div class="card card-inverse card-secondary text-center text-white">
|
||||
<div class="card-block">
|
||||
<p>{{ __('general_settings.number_of_active_users_limit_label') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4>{{ __('general_settings.options') }}</h4>
|
||||
|
||||
<div class="card card-outline-secondary text-dark">
|
||||
<div class="card-block">
|
||||
{{ Form::radio('number_of_active_users_limit_option', 'unlimited', ($general_settings->number_of_active_users_limit == 'unlimited' ? true : false)) }} {{ __('general_settings.unlimited_users_label') }}
|
||||
<br>
|
||||
{{ Form::radio('number_of_active_users_limit_option', 'limited', ($general_settings->number_of_active_users_limit < 'unlimited' ? true : false)) }} {{ __('general_settings.limited_users_label') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="limited_users_div" class="card card-outline-secondary text-dark mt-4" style="display: none;">
|
||||
<p class="pt-2 px-4 mb-0">{{ __('general_settings.number_of_active_users_limit_label') }}</p>
|
||||
<div class="card-block">
|
||||
{{ Form::text('number_of_active_users_limit', $general_settings->number_of_active_users_limit, ['class' => 'form-control', 'placeholder' => '1', 'required' => 'true', 'disabled' => 'true', 'id' => 'limited_users_input']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div id="unlimited_users_div" class="" style="display: none;">
|
||||
{{ Form::hidden('number_of_active_users_limit', 'unlimited', ['class' => 'form-control', 'placeholder' => '1', 'required' => 'true', 'disabled' => 'true', 'id' => 'unlimited_users_input']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
@if (session()->has('streamline_setup'))
|
||||
{{ Form::button(__('general_settings.finish'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
@else
|
||||
{{ Form::button(__('general_settings.save_settings'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('general_settings.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
@endif
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
|
||||
const show_or_hide_limited_users_input = () => {
|
||||
let selectedValue = $('input[name="number_of_active_users_limit_option"]:checked').val();
|
||||
if(selectedValue === "limited") {
|
||||
document.getElementById('limited_users_div').style.display = '';
|
||||
document.getElementById('limited_users_input').disabled = false;
|
||||
document.getElementById('limited_users_input').value = '';
|
||||
document.getElementById('unlimited_users_div').style.display = 'none';
|
||||
document.getElementById('unlimited_users_input').disabled = true;
|
||||
|
||||
} else {
|
||||
document.getElementById('unlimited_users_div').style.display = '';
|
||||
document.getElementById('unlimited_users_input').disabled = false;
|
||||
document.getElementById('limited_users_div').style.display = 'none';
|
||||
document.getElementById('limited_users_input').disabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
show_or_hide_limited_users_input();
|
||||
$('input[name="number_of_active_users_limit_option"]').on('change', function() {
|
||||
show_or_hide_limited_users_input();
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
|
||||
<style>
|
||||
.no-padding {
|
||||
padding: 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">{{ __('general_settings.personal_settings') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('general_settings.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('general_settings.edit_general_settings') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
@if (session()->has('streamline_setup'))
|
||||
<h3><font color="blue">{{ __('general_settings.streamline_setup') }}</font></h3>
|
||||
@endif
|
||||
|
||||
{{ Form::open(['route' => 'personal_settings.save']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="card card-outline-secondary text-dark" style="max-height:500px;overflow:auto;">
|
||||
<div class="card-block no-padding">
|
||||
<ul class="feeds">
|
||||
<li id="system_language_setting_list">
|
||||
<div class="bg-info"><i class="fa fa-eye text-white"></i></div>{{ __('general_settings.manage_user_language') }} <i class="fa fa-lg fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div id="no_setting_selected_div">
|
||||
<div class="card card-inverse card-danger text-center text-white">
|
||||
<div class="card-block">
|
||||
<p>{{ __('general_settings.settings_info') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="system_language_div" style="display: none">
|
||||
<h3 class="text-center">{{ __('general_settings.set_personal_system_language') }}</h3>
|
||||
<h4>{{ __('general_settings.description') }}</h4>
|
||||
<div class="card card-inverse card-secondary text-center text-white">
|
||||
<div class="card-block">
|
||||
<p>{{ __('general_settings.set_language_explanation_with_example') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4>{{ __('general_settings.options') }}</h4>
|
||||
<div class="card card-outline-secondary text-dark">
|
||||
<div class="card-block">
|
||||
{{ Form::select('system_language', ['1'=>'English', '2' => 'Portuguese', '3' => 'French'] , $general_settings->system_language, ['id'=>'system_language','class'=>'form-control']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br><br>
|
||||
|
||||
@if (session()->has('streamline_setup'))
|
||||
{{ Form::button(__('general_settings.finish'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
@else
|
||||
{{ Form::button(__('general_settings.save_settings'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('general_settings.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
@endif
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#service_id').select2({});
|
||||
});
|
||||
|
||||
$('#system_language_setting_list').click(function () {
|
||||
enable_disable_divs("system_language_div");
|
||||
});
|
||||
|
||||
function enable_disable_divs(div_to_enable) {
|
||||
let settings = ['system_language_div'];
|
||||
|
||||
for (const setting of settings){
|
||||
if (setting == div_to_enable) {
|
||||
$('#' + div_to_enable).show();
|
||||
} else {
|
||||
$('#' + setting).hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function show(id) {
|
||||
if (document.getElementById(id).style.display == 'none') {
|
||||
document.getElementById(id).style.display = '';
|
||||
}
|
||||
}
|
||||
|
||||
function hide(id) {
|
||||
document.getElementById(id).style.display = 'none';
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user