mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-29 07:29:44 -08:00
9b167d87d2
(Updating assets isn’t currently working - investigating that)
64 lines
1.7 KiB
PHP
64 lines
1.7 KiB
PHP
@extends('layouts.default')
|
||
|
||
{{-- Page title --}}
|
||
@section('title')
|
||
@if ($item->id)
|
||
{{ $updateText }}
|
||
@else
|
||
{{ $createText }}
|
||
@endif
|
||
@parent
|
||
@stop
|
||
|
||
@section('header_right')
|
||
<a href="{{ URL::previous() }}" class="btn btn-primary pull-right">
|
||
{{ trans('general.back') }}</a>
|
||
@stop
|
||
|
||
|
||
|
||
{{-- Page content --}}
|
||
|
||
@section('content')
|
||
|
||
<div class="row">
|
||
<div class="col-md-8 col-md-offset-2">
|
||
<div class="box box-default">
|
||
<div class="box-header with-border">
|
||
<h3 class="box-title">
|
||
@if ($item->id)
|
||
{{ $item->display_name }}
|
||
@endif
|
||
</h3>
|
||
<div class="box-tools pull-right">
|
||
<button class="slideout-menu-toggle btn btn-box-tool btn-box-tool-lg" data-toggle="tooltip" title="Help"><i class="fa fa-question"></i></button>
|
||
</div>
|
||
</div><!-- /.box-header -->
|
||
|
||
<div class="box-body">
|
||
<form id="create-form" class="form-horizontal" method="post" action="{{ (isset($formAction)) ? $formAction : \Request::url() }}" autocomplete="off" role="form" enctype="multipart/form-data">
|
||
|
||
@if ($item->id)
|
||
{{ method_field('PUT') }}
|
||
@endif
|
||
|
||
|
||
<!-- CSRF Token -->
|
||
{{ csrf_field() }}
|
||
@yield('inputFields')
|
||
@include('partials.forms.edit.submit')
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="slideout-menu">
|
||
<a href="#" class="slideout-menu-toggle pull-right">×</a>
|
||
<h3>
|
||
{{ $helpTitle}}
|
||
</h3>
|
||
<p>{{ $helpText }} </p>
|
||
</div>
|
||
</div>
|
||
|
||
@stop
|