mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Wider custom report
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
129d44cc70
commit
0e1dc8745c
|
@ -33,7 +33,7 @@
|
|||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-1">
|
||||
<div class="col-md-9">
|
||||
|
||||
<form
|
||||
method="POST"
|
||||
|
@ -48,13 +48,15 @@
|
|||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
@if (request()->routeIs('reports/custom') || request()->routeIs('report-templates.show'))
|
||||
<h2 class="box-title">
|
||||
<h2 class="box-title" style="padding-top: 7px;">
|
||||
{{ trans('general.customize_report') }}
|
||||
</h2>
|
||||
|
||||
@endif
|
||||
|
||||
@if (request()->routeIs('report-templates.edit'))
|
||||
<div class="row">
|
||||
<div class="col-md-7 col-md-offset-5">
|
||||
<div class="col-md-7 col-md-offset-4">
|
||||
<div class="{{ $errors->has('name') ? ' has-error' : '' }}">
|
||||
<label
|
||||
for="name"
|
||||
|
@ -78,29 +80,7 @@
|
|||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@if (request()->routeIs('report-templates.show'))
|
||||
<div class="box-tools pull-right">
|
||||
<a
|
||||
href="{{ route('report-templates.edit', $template) }}"
|
||||
class="btn btn-sm btn-warning"
|
||||
data-tooltip="true"
|
||||
title="{{ trans('admin/reports/general.update_template') }}"
|
||||
>
|
||||
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
|
||||
<span class="sr-only">{{ trans('general.update') }}</span>
|
||||
</a>
|
||||
<button
|
||||
class="btn btn-sm btn-danger delete-asset"
|
||||
data-toggle="modal"
|
||||
data-title="{{ trans('general.delete') }}"
|
||||
data-content="{{ trans('general.delete_confirm', ['item' => $template->name]) }}"
|
||||
data-target="#dataConfirmModal"
|
||||
type="button"
|
||||
>
|
||||
<i class="fas fa-trash" aria-hidden="true"></i><span class="sr-only">{{ trans('general.delete') }}</span>
|
||||
</button>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div><!-- /.box-header -->
|
||||
|
||||
<div class="box-body">
|
||||
|
@ -636,7 +616,7 @@
|
|||
</div>
|
||||
|
||||
<!-- Saved Reports right column -->
|
||||
<div class="col-md-2">
|
||||
<div class="col-md-3">
|
||||
@if (! request()->routeIs('report-templates.edit'))
|
||||
<div class="form-group">
|
||||
<label for="saved_report_select">{{ trans('admin/reports/general.open_saved_template') }}</label>
|
||||
|
@ -653,6 +633,41 @@
|
|||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@if (request()->routeIs('report-templates.show'))
|
||||
<a
|
||||
href="{{ route('report-templates.edit', $template) }}"
|
||||
class="btn btn-sm btn-warning btn-social btn-block"
|
||||
data-tooltip="true"
|
||||
title="{{ trans('admin/reports/general.update_template') }}"
|
||||
style="margin-bottom: 5px;"
|
||||
>
|
||||
<x-icon type="edit" />
|
||||
{{ trans('general.update') }}
|
||||
</a>
|
||||
|
||||
<span data-tooltip="true" title="{{ trans('general.delete') }}">
|
||||
<a href="#"
|
||||
class="btn btn-sm btn-danger btn-social btn-block"
|
||||
data-toggle="modal"
|
||||
data-title="{{ trans('general.delete') }}"
|
||||
data-content="{{ trans('general.delete_confirm', ['item' => $template->name]) }}"
|
||||
data-target="#dataConfirmModal"
|
||||
type="button"
|
||||
>
|
||||
|
||||
<x-icon type="delete" />
|
||||
{{ trans('general.delete') }}
|
||||
|
||||
</a>
|
||||
</span>
|
||||
|
||||
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@if (request()->routeIs('reports/custom'))
|
||||
<hr>
|
||||
|
|
Loading…
Reference in a new issue