Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
432606760b | ||
|
958dbc7092 | ||
|
12f33b6853 | ||
|
b67df24219 | ||
|
7ffcdb139a | ||
|
5a9437db37 | ||
|
9389fd9e83 |
@@ -12,7 +12,7 @@
|
|||||||
"require": {
|
"require": {
|
||||||
"igaster/laravel-theme": "^2.0.15",
|
"igaster/laravel-theme": "^2.0.15",
|
||||||
"creativeorange/gravatar": "^1.0",
|
"creativeorange/gravatar": "^1.0",
|
||||||
"orchestra/asset": "^4.0"
|
"orchestra/asset": "^5.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
},
|
},
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
<link rel="stylesheet" href="{{ asset('//use.fontawesome.com/releases/v5.13.0/css/v4-shims.css') }}">
|
<link rel="stylesheet" href="{{ asset('//use.fontawesome.com/releases/v5.13.0/css/v4-shims.css') }}">
|
||||||
|
|
||||||
<!-- Google Font: Source Sans Pro -->
|
<!-- Google Font: Source Sans Pro -->
|
||||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family={{ str_replace(' ','+',config('app.font') ?: 'IBM Plex Sans') }}:wght@300&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
@if(file_exists('css/social.css'))
|
@if(file_exists('css/social.css'))
|
||||||
<!-- Social Logins -->
|
<!-- Social Logins -->
|
||||||
|
@@ -75,15 +75,25 @@
|
|||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
@section('page-scripts')
|
@section('page-scripts')
|
||||||
@js('/plugin/bootstrap3-typeahead/js/bootstrap3-typeahead.min.js','bs-typeahead')
|
<style>
|
||||||
|
/* Solid border */
|
||||||
|
div.typeahead.dropdown-menu > .dropdown-header {
|
||||||
|
color: #000000;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$("input[name=q]").typeahead({
|
$("input[name=q]").typeahead({
|
||||||
|
autoSelect: false,
|
||||||
|
scrollHeight: 10,
|
||||||
|
theme: 'bootstrap4',
|
||||||
delay: 500,
|
delay: 500,
|
||||||
minLength: 2,
|
minLength: 2,
|
||||||
items: {{ isset($search_limit) ? $search_limit : 15 }},
|
items: {{ isset($search_limit) ? $search_limit : 100 }},
|
||||||
fitToElement: false,
|
fitToElement: false,
|
||||||
|
selectOnBlur: false,
|
||||||
appendTo: "#search_results",
|
appendTo: "#search_results",
|
||||||
source: function (query,process) {
|
source: function (query,process) {
|
||||||
search('{{ url("search",['date'=>isset($ido) ? $ido->id : NULL]) }}',query,process);
|
search('{{ url("search",['date'=>isset($ido) ? $ido->id : NULL]) }}',query,process);
|
||||||
@@ -91,8 +101,13 @@
|
|||||||
|
|
||||||
matcher: function () { return true; },
|
matcher: function () { return true; },
|
||||||
|
|
||||||
|
// Disable sorting and just return the items (items should by the ajax method)
|
||||||
|
sorter: function(items) {
|
||||||
|
return items;
|
||||||
|
},
|
||||||
|
|
||||||
updater: function (item) {
|
updater: function (item) {
|
||||||
window.parent.location.href = '{{ url("/") }}'+users[item];
|
window.parent.location.href = item.value;
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.on('keyup keypress', function(event) {
|
.on('keyup keypress', function(event) {
|
||||||
@@ -126,17 +141,7 @@
|
|||||||
// if json is null, means no match, won't do again.
|
// if json is null, means no match, won't do again.
|
||||||
if(data==null || (data.length===0)) return;
|
if(data==null || (data.length===0)) return;
|
||||||
|
|
||||||
users = {};
|
process(data);
|
||||||
userLabels = [];
|
|
||||||
_.each(data,function(item,ix,list) {
|
|
||||||
if (_.includes(users,item.label))
|
|
||||||
item.label = item.label + ' #' + item.value;
|
|
||||||
|
|
||||||
userLabels.push(item.label);
|
|
||||||
users[item.label] = item.value;
|
|
||||||
});
|
|
||||||
|
|
||||||
process(userLabels);
|
|
||||||
},
|
},
|
||||||
complete : function() {
|
complete : function() {
|
||||||
if (--c == 0) {
|
if (--c == 0) {
|
||||||
|
23
resources/themes/adminlte/views/widget/status.blade.php
Normal file
23
resources/themes/adminlte/views/widget/status.blade.php
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<!-- Success -->
|
||||||
|
@if(session()->has('success'))
|
||||||
|
<div class="alert alert-success alert-dismissible">
|
||||||
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||||
|
<h5><i class="icon fas fa-check"></i> Success!</h5>
|
||||||
|
<ul>
|
||||||
|
<li>{{ session()->get('success') }}</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
<!-- Errors -->
|
||||||
|
@if ($errors->any())
|
||||||
|
<div class="alert alert-danger alert-dismissible">
|
||||||
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||||
|
<h5><i class="icon fas fa-ban"></i> Whoops!</h5>
|
||||||
|
<ul>
|
||||||
|
@foreach ($errors->all() as $error)
|
||||||
|
<li>{!! $error !!}</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
@endif
|
@@ -26,9 +26,6 @@ class AdminController extends Controller
|
|||||||
return ! Session::get('orig_user');
|
return ! Session::get('orig_user');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @todo Change the background color (or something) so we know we are switched
|
|
||||||
*/
|
|
||||||
public function user_switch_start($id)
|
public function user_switch_start($id)
|
||||||
{
|
{
|
||||||
if ($this->switch_session() AND $this->switch_authorised($id))
|
if ($this->switch_session() AND $this->switch_authorised($id))
|
||||||
|
Reference in New Issue
Block a user