mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Added asset
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
0734d5b0b6
commit
556d0b44a3
|
@ -34,7 +34,7 @@
|
||||||
{{csrf_field()}}
|
{{csrf_field()}}
|
||||||
@if ($asset->model->name)
|
@if ($asset->model->name)
|
||||||
<!-- Asset name -->
|
<!-- Asset name -->
|
||||||
<div class="form-group {{ $errors->has('name') ? 'error' : '' }}">
|
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
|
||||||
{{ Form::label('name', trans('admin/hardware/form.model'), array('class' => 'col-md-3 control-label')) }}
|
{{ Form::label('name', trans('admin/hardware/form.model'), array('class' => 'col-md-3 control-label')) }}
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<p class="form-control-static">{{ $asset->model->name }}</p>
|
<p class="form-control-static">{{ $asset->model->name }}</p>
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<!-- Asset Name -->
|
<!-- Asset Name -->
|
||||||
<div class="form-group {{ $errors->has('name') ? 'error' : '' }}">
|
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
|
||||||
{{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }}
|
{{ Form::label('name', trans('admin/hardware/form.name'), array('class' => 'col-md-3 control-label')) }}
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<p class="form-control-static">{{ $asset->name }}</p>
|
<p class="form-control-static">{{ $asset->name }}</p>
|
||||||
|
@ -66,21 +66,40 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Show last audit date -->
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-md-3">
|
||||||
|
{{ trans('general.last_audit') }}
|
||||||
|
</label>
|
||||||
|
<div class="col-md-8">
|
||||||
|
|
||||||
|
<p class="form-control-static">
|
||||||
|
@if ($asset->last_audit_date)
|
||||||
|
{{ Helper::getFormattedDateObject($asset->last_audit_date, 'datetime', false) }}
|
||||||
|
@else
|
||||||
|
{{ trans('admin/settings/general.none') }}
|
||||||
|
@endif
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- Next Audit -->
|
<!-- Next Audit -->
|
||||||
<div class="form-group {{ $errors->has('next_audit_date') ? 'error' : '' }}">
|
<div class="form-group{{ $errors->has('next_audit_date') ? ' has-error' : '' }}">
|
||||||
{{ Form::label('name', trans('general.next_audit_date'), array('class' => 'col-md-3 control-label')) }}
|
{{ Form::label('name', trans('general.next_audit_date'), array('class' => 'col-md-3 control-label')) }}
|
||||||
<div class="col-md-9">
|
<div class="col-md-8">
|
||||||
<div class="input-group date col-md-5" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-clear-btn="true">
|
<div class="input-group date col-md-5" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-clear-btn="true">
|
||||||
<input type="text" class="form-control" placeholder="{{ trans('general.next_audit_date') }}" name="next_audit_date" id="next_audit_date" value="{{ old('next_audit_date', $next_audit_date) }}">
|
<input type="text" class="form-control" placeholder="{{ trans('general.next_audit_date') }}" name="next_audit_date" id="next_audit_date" value="{{ old('next_audit_date', $next_audit_date) }}">
|
||||||
<span class="input-group-addon"><i class="fas fa-calendar" aria-hidden="true"></i></span>
|
<span class="input-group-addon"><i class="fas fa-calendar" aria-hidden="true"></i></span>
|
||||||
</div>
|
</div>
|
||||||
{!! $errors->first('next_audit_date', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('next_audit_date', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
|
<p class="help-block">{!! trans('general.next_audit_date_help') !!}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- Note -->
|
<!-- Note -->
|
||||||
<div class="form-group {{ $errors->has('note') ? 'error' : '' }}">
|
<div class="form-group{{ $errors->has('note') ? ' has-error' : '' }}">
|
||||||
{{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }}
|
{{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }}
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<textarea class="col-md-6 form-control" id="note" name="note">{{ old('note', $asset->note) }}</textarea>
|
<textarea class="col-md-6 form-control" id="note" name="note">{{ old('note', $asset->note) }}</textarea>
|
||||||
|
@ -88,13 +107,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Audit Image -->
|
||||||
<!-- Images -->
|
@include ('partials.forms.edit.image-upload', ['help_text' => trans('general.audit_images_help')])
|
||||||
@include ('partials.forms.edit.image-upload')
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div> <!--/.box-body-->
|
</div> <!--/.box-body-->
|
||||||
|
|
Loading…
Reference in a new issue