Added correct box class
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
@if ($snipeSettings->dashboard_message!='')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<div class="box box-default">
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
@@ -151,7 +151,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h2 class="box-title">{{ trans('general.dashboard_info') }}</h2>
|
||||
</div>
|
||||
@@ -235,6 +235,7 @@
|
||||
data-side-pagination="server"
|
||||
data-id-table="dashActivityReport"
|
||||
data-sort-order="desc"
|
||||
data-show-columns="false"
|
||||
data-sort-name="created_at"
|
||||
id="dashActivityReport"
|
||||
class="table table-striped snipe-table"
|
||||
@@ -315,6 +316,7 @@
|
||||
data-pagination="false"
|
||||
data-side-pagination="server"
|
||||
data-sort-order="desc"
|
||||
data-show-columns="false"
|
||||
data-sort-field="assets_count"
|
||||
id="dashCompanySummary"
|
||||
class="table table-striped snipe-table"
|
||||
@@ -385,6 +387,7 @@
|
||||
data-sort-order="desc"
|
||||
data-sort-field="assets_count"
|
||||
id="dashLocationSummary"
|
||||
data-show-columns="false"
|
||||
class="table table-striped snipe-table"
|
||||
data-url="{{ route('api.locations.index', ['sort' => 'assets_count', 'order' => 'asc']) }}">
|
||||
<thead>
|
||||
@@ -444,6 +447,7 @@
|
||||
data-height="400"
|
||||
data-pagination="false"
|
||||
data-side-pagination="server"
|
||||
data-show-columns="false"
|
||||
data-sort-order="desc"
|
||||
data-sort-field="assets_count"
|
||||
id="dashCategorySummary"
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<div class="box box-default">
|
||||
<div class="box-body">
|
||||
|
||||
<div class="row">
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<div class="box box-default">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
--header-color: #000000;
|
||||
--link-color: {{ $snipeSettings->header_color }};
|
||||
--nav-primary-font-color: #ffffff;
|
||||
--table-border-row-top: 1px solid #434243;
|
||||
--table-border-row-top: 1px solid #ecf0f5;
|
||||
--table-stripe-bg-alt: rgba(211, 211, 211, 0.25);
|
||||
--table-stripe-bg: #ffffff;
|
||||
--text-blue: #d6d6d6;
|
||||
@@ -200,10 +200,15 @@
|
||||
border-bottom: var(--box-header-top-border);
|
||||
border-top-right-radius: 3px;
|
||||
border-top-left-radius: 3px;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 2px;
|
||||
margin-bottom: -1px;
|
||||
padding-bottom: 0;
|
||||
|
||||
}
|
||||
|
||||
.nav-tabs > li > a {
|
||||
margin-right: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.box,
|
||||
.box-footer,
|
||||
@@ -225,14 +230,17 @@
|
||||
.nav-tabs-custom > .nav-tabs > li.active
|
||||
{
|
||||
border-top-color: var(--main-theme-color) !important;
|
||||
background-color: var(--box-header-top-border) !important;
|
||||
border-bottom-color: var(--box-bg) !important;
|
||||
border-left: 1px solid var(--box-header-top-border) ;
|
||||
border-right: 1px solid var(--box-header-top-border) ;
|
||||
background-color: var(--box-header-top-border-color) !important;
|
||||
border-bottom: 1px solid var(--box-bg) !important;
|
||||
border-right: 1px solid var(--box-header-top-border-color) ;
|
||||
border-top-right-radius: 3px;
|
||||
border-top-left-radius: 3px;
|
||||
}
|
||||
|
||||
.nav-tabs-custom > .nav-tabs > li:first-of-type {
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
table rows
|
||||
@@ -250,13 +258,18 @@
|
||||
|
||||
|
||||
.table-striped > tbody > tr:nth-of-type(even),
|
||||
.row-new-striped > .row:nth-of-type(even) {
|
||||
background-color: var(--table-stripe-bg);
|
||||
.row-new-striped > .row:nth-of-type(even),
|
||||
.row-new-striped > .div:nth-of-type(odd) {
|
||||
background-color: var(--table-stripe-bg) !important;
|
||||
border-top: var(--table-border-row-top) !important;
|
||||
}
|
||||
|
||||
.table-striped > tbody > tr:nth-of-type(odd),
|
||||
.row-new-striped > .row:nth-of-type(odd){
|
||||
background-color: var(--table-stripe-bg-alt);
|
||||
.row-new-striped > .row:nth-of-type(even),
|
||||
.row-new-striped > .div:nth-of-type(odd)
|
||||
{
|
||||
background-color: var(--table-stripe-bg-alt) !important;
|
||||
border-top: var(--table-border-row-top) !important;
|
||||
}
|
||||
|
||||
|
||||
@@ -348,13 +361,6 @@
|
||||
color: var(--nav-primary-font-color);
|
||||
}
|
||||
|
||||
|
||||
.btn-primary {
|
||||
background-color: var(--main-theme-color);
|
||||
border-color: hsl(from var(--main-theme-color) h s calc(l - 15));
|
||||
}
|
||||
|
||||
|
||||
.btn:link,
|
||||
.btn:hover,
|
||||
.btn:visited,
|
||||
@@ -363,16 +369,21 @@
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
|
||||
.btn-primary,
|
||||
.btn-primary:hover,
|
||||
.btn-primary:active,
|
||||
.btn-primary.hover {
|
||||
background-color: hsl(from var(--main-theme-color) h s calc(l - 5));
|
||||
border-color: hsl(from var(--main-theme-color) h s calc(l - 15));
|
||||
color: hsl(from var(--main-theme-color) h s calc(l + 55)) !important;
|
||||
color: white;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.navbar-nav > .notifications-menu > .dropdown-menu > li.header,
|
||||
.navbar-nav > .messages-menu > .dropdown-menu > li.header,
|
||||
.navbar-nav > .tasks-menu > .dropdown-menu > li.header,
|
||||
@@ -468,12 +479,13 @@
|
||||
.table > tfoot > tr > th,
|
||||
.table > thead > tr > td,
|
||||
.table > tbody > tr > td,
|
||||
.table > tfoot > tr > td,
|
||||
.sticky-header {
|
||||
.table > tfoot > tr > td
|
||||
{
|
||||
border-top-color: var(--box-header-bottom-border-color) !important;
|
||||
border-bottom-color: var(--box-header-bottom-border-color) !important;
|
||||
}
|
||||
|
||||
|
||||
.help-block {
|
||||
color: var(--text-help);
|
||||
}
|
||||
@@ -491,6 +503,14 @@
|
||||
color: hsl(from var(--main-theme-color) h s calc(l - 5));
|
||||
}
|
||||
|
||||
.dropdown-menu > .divider {
|
||||
background-color: hsl(from var(--main-theme-color) h s calc(l - 10));
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
padding-top: 1px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
@@ -823,6 +843,11 @@
|
||||
</li>
|
||||
@endif
|
||||
|
||||
<li>
|
||||
<a type="button" data-theme-toggle aria-label="Light mode" class="btn-link btn-anchor" href="" onclick="event.preventDefault();">
|
||||
{{ trans('general.dark_mode') }}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@can('self.api')
|
||||
<li>
|
||||
@@ -832,12 +857,7 @@
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
<li>
|
||||
<a type="button" data-theme-toggle aria-label="Light mode" class="btn-link btn-anchor" href="" onclick="event.preventDefault();">
|
||||
Dark Mode
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider" style="margin-top: -1px; margin-bottom: -1px"></li>
|
||||
<li class="divider"></li>
|
||||
<li>
|
||||
<a href="{{ route('logout.get') }}"
|
||||
onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
|
||||
@@ -1541,7 +1561,7 @@
|
||||
* Utility function to update the button text and aria-label.
|
||||
*/
|
||||
function updateButton({ buttonEl, isDark }) {
|
||||
const newCta = isDark ? '<i class="fa-regular fa-sun fa-fw"></i> Light mode' : '<i class="fa-solid fa-moon fa-fw"></i> Dark theme';
|
||||
const newCta = isDark ? '<i class="fa-regular fa-sun fa-fw"></i> {{ trans('general.light_mode') }}' : '<i class="fa-solid fa-moon fa-fw"></i> {{ trans('general.dark_mode') }}';
|
||||
// use an aria-label if you are omitting text on the button
|
||||
// and using a sun/moon icon, for example
|
||||
buttonEl.setAttribute("aria-label", newCta);
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<div class="box box-default">
|
||||
<div class="box-body">
|
||||
|
||||
<table
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
@if($import_errors)
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<div class="box box-default">
|
||||
<div class="box-body">
|
||||
<div class="alert alert-warning">
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
@endif
|
||||
|
||||
<div class="col-md-9">
|
||||
<div class="box">
|
||||
<div class="box box-default">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
|
||||
|
||||
@@ -226,7 +226,7 @@
|
||||
},
|
||||
attributes: {
|
||||
title: '{{ trans('general.create') }}',
|
||||
class: 'btn-info',
|
||||
class: 'btn-sm btn-info',
|
||||
@if ($snipeSettings->shortcuts_enabled == 1)
|
||||
accesskey: 'n'
|
||||
@endif
|
||||
@@ -1048,18 +1048,18 @@
|
||||
}
|
||||
|
||||
if ((row.available_actions) && (row.available_actions.clone === true)) {
|
||||
actions += '<a href="{{ config('app.url') }}/' + dest + '/' + row.id + '/clone" class="actions btn btn-sm btn-info" data-tooltip="true" title="{{ trans('general.clone_item') }}"><x-icon type="clone" /><span class="sr-only">{{ trans('general.clone_item') }}</span></a> ';
|
||||
actions += '<a href="{{ config('app.url') }}/' + dest + '/' + row.id + '/clone" class="actions btn btn-sm btn-info" data-tooltip="true" title="{{ trans('general.clone_item') }}"><x-icon type="clone" class="fa-fw" /><span class="sr-only">{{ trans('general.clone_item') }}</span></a> ';
|
||||
}
|
||||
|
||||
if ((row.available_actions) && (row.available_actions.audit === true)) {
|
||||
actions += '<a href="{{ config('app.url') }}/' + dest + '/' + row.id + '/audit" class="actions btn btn-sm btn-primary" data-tooltip="true" title="{{ trans('general.audit') }}"><x-icon type="audit" /><span class="sr-only">{{ trans('general.audit') }}</span></a> ';
|
||||
actions += '<a href="{{ config('app.url') }}/' + dest + '/' + row.id + '/audit" class="actions btn btn-sm btn-primary" data-tooltip="true" title="{{ trans('general.audit') }}"><x-icon type="audit" class="fa-fw" /><span class="sr-only">{{ trans('general.audit') }}</span></a> ';
|
||||
}
|
||||
|
||||
if ((row.available_actions) && (row.available_actions.update === true)) {
|
||||
actions += '<a href="{{ config('app.url') }}/' + dest + '/' + row.id + '/edit" class="actions btn btn-sm btn-warning" data-tooltip="true" title="{{ trans('general.update') }}"><x-icon type="edit" /><span class="sr-only">{{ trans('general.update') }}</span></a> ';
|
||||
actions += '<a href="{{ config('app.url') }}/' + dest + '/' + row.id + '/edit" class="actions btn btn-sm btn-warning" data-tooltip="true" title="{{ trans('general.update') }}"><x-icon type="edit" class="fa-fw" /><span class="sr-only">{{ trans('general.update') }}</span></a> ';
|
||||
} else {
|
||||
if ((row.available_actions) && (row.available_actions.update != true)) {
|
||||
actions += '<span data-tooltip="true" title="{{ trans('general.cannot_be_edited') }}"><a class="btn btn-warning btn-sm disabled" onClick="return false;"><x-icon type="edit" /></a></span> ';
|
||||
actions += '<span data-tooltip="true" title="{{ trans('general.cannot_be_edited') }}"><a class="btn btn-warning btn-sm disabled" onClick="return false;"><x-icon type="edit" class="fa-fw" /></a></span> ';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1080,11 +1080,11 @@
|
||||
+ ' data-toggle="modal" data-icon="fa-trash"'
|
||||
+ ' data-content="{{ trans('general.sure_to_delete') }}: ' + name_for_box + '?" '
|
||||
+ ' data-title="{{ trans('general.delete') }}" onClick="return false;">'
|
||||
+ '<x-icon type="delete" /><span class="sr-only">{{ trans('general.delete') }}</span></a> ';
|
||||
+ '<x-icon type="delete" class="fa-fw" /><span class="sr-only">{{ trans('general.delete') }}</span></a> ';
|
||||
} else {
|
||||
// Do not show the delete button on things that are already deleted
|
||||
if ((row.available_actions) && (row.available_actions.restore != true)) {
|
||||
actions += '<span data-tooltip="true" title="{{ trans('general.cannot_be_deleted') }}"><a class="btn btn-danger btn-sm delete-asset disabled" onClick="return false;"><x-icon type="delete" /><span class="sr-only">{{ trans('general.cannot_be_deleted') }}</span></a></span> ';
|
||||
actions += '<span data-tooltip="true" title="{{ trans('general.cannot_be_deleted') }}"><a class="btn btn-danger btn-sm delete-asset disabled" onClick="return false;"><x-icon type="delete" class="fa-fw" /><span class="sr-only">{{ trans('general.cannot_be_deleted') }}</span></a></span> ';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<div class="col-md-3">
|
||||
<h2>{{ trans('admin/statuslabels/table.about') }}</h2>
|
||||
|
||||
<div class="box">
|
||||
<div class="box box-default">
|
||||
<div class="box-body">
|
||||
<p>{!! trans('admin/statuslabels/table.info') !!}</p>
|
||||
</div>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<div class="box box-default">
|
||||
<div class="box-body">
|
||||
@include('partials.asset-bulk-actions')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user