Skip to content

A free open source IT asset/license management system

Added nicer formatting for model details

snipe3dae464c34b5
diff --git a/resources/views/models/view.blade.php b/resources/views/models/view.blade.php
index c285eb2185..691fd796c0 100755
--- a/resources/views/models/view.blade.php
+++ b/resources/views/models/view.blade.php
@@ -67,85 +67,98 @@
<!-- side address column -->
<div class="col-md-3">
- <h4>More Info:</h4>
- <ul class="list-unstyled">
- @if ($model->manufacturer)
- <li>
- {{ trans('general.manufacturer') }}:
- @can('view', \App\Models\Manufacturer::class)
- <a href="{{ route('manufacturers.show', $model->manufacturer->id) }}">
- {{ $model->manufacturer->name }}
- </a>
- @else
- {{ $model->manufacturer->name }}
- @endcan
- </li>
- @endif
- @if ($model->manufacturer->url)
- <li>
- <i class="fa fa-globe"></i> <a href="{{ $model->manufacturer->url }}">{{ $model->manufacturer->url }}</a>
- </li>
- @endif
+ <div class="box box-default">
+ <div class="box-header with-border">
+ <div class="box-heading">
+ <h3 class="box-title"> More Info:</h3>
+ </div>
+ </div><!-- /.box-header -->
+ <div class="box-body">
+
+ @if ($model->image)
+ <img src="{{ url('/') }}/uploads/models/{{ $model->image }}" class="img-responsive"></li>
+ @endif
- @if ($model->manufacturer->support_url)
+
+ <ul class="list-unstyled" style="line-height: 25px;">
+ @if ($model->manufacturer)
<li>
- <i class="fa fa-life-ring"></i> <a href="{{ $model->manufacturer->support_url }}">{{ $model->manufacturer->support_url }}</a>
+ {{ trans('general.manufacturer') }}:
+ @can('view', \App\Models\Manufacturer::class)
+ <a href="{{ route('manufacturers.show', $model->manufacturer->id) }}">
+ {{ $model->manufacturer->name }}
+ </a>
+ @else
+ {{ $model->manufacturer->name }}
+ @endcan
</li>
- @endif
-
- @if ($model->manufacturer->support_phone)
+ @endif
+ @if ($model->manufacturer->url)
+ <li>
+ <i class="fa fa-globe"></i> <a href="{{ $model->manufacturer->url }}">{{ $model->manufacturer->url }}</a>
+ </li>
+ @endif
+
+ @if ($model->manufacturer->support_url)
+ <li>
+ <i class="fa fa-life-ring"></i> <a href="{{ $model->manufacturer->support_url }}">{{ $model->manufacturer->support_url }}</a>
+ </li>
+ @endif
+
+ @if ($model->manufacturer->support_phone)
+ <li>
+ <i class="fa fa-phone"></i> {{ $model->manufacturer->support_phone }}
+ </li>
+ @endif
+
+ @if ($model->manufacturer->support_email)
+ <li>
+ <i class="fa fa-envelope"></i> <a href="mailto:{{ $model->manufacturer->support_email }}">{{ $model->manufacturer->support_email }}</a>
+ </li>
+ @endif
+
+ @if ($model->model_number)
<li>
- <i class="fa fa-phone"></i> {{ $model->manufacturer->support_phone }}
+ {{ trans('general.model_no') }}:
+ {{ $model->model_number }}
</li>
- @endif
+ @endif
- @if ($model->manufacturer->support_email)
+ @if ($model->depreciation)
<li>
- <i class="fa fa-envelope"></i> <a href="mailto:{{ $model->manufacturer->support_email }}">{{ $model->manufacturer->support_email }}</a>
+ {{ trans('general.depreciation') }}:
+ {{ $model->depreciation->name }} ({{ $model->depreciation->months.' '.trans('general.months')}})
</li>
- @endif
+ @endif
- @if ($model->model_number)
- <li>
- {{ trans('general.model_no') }}:
- {{ $model->model_number }}
- </li>
- @endif
+ @if ($model->eol)
+ <li>{{ trans('general.eol') }}:
+ {{ $model->eol .' '. trans('general.months') }}
+ </li>
+ @endif
- @if ($model->depreciation)
- <li>
- {{ trans('general.depreciation') }}:
- {{ $model->depreciation->name }} ({{ $model->depreciation->months.' '.trans('general.months')}})
- </li>
- @endif
+ @if ($model->fieldset)
+ <li>{{ trans('admin/models/general.fieldset') }}:
+ <a href="{{ route('fieldsets.show', $model->fieldset->id) }}">{{ $model->fieldset->name }}</a>
+ </li>
+ @endif
- @if ($model->eol)
- <li>{{ trans('general.eol') }}:
- {{ $model->eol .' '. trans('general.months') }}
- </li>
- @endif
- @if ($model->fieldset)
- <li>{{ trans('admin/models/general.fieldset') }}:
- <a href="{{ route('fieldsets.show', $model->fieldset->id) }}">{{ $model->fieldset->name }}</a>
- </li>
- @endif
- @if ($model->image)
- <li><br /><img src="{{ url('/') }}/uploads/models/{{ $model->image }}" class="img-responsive"></li>
- @endif
+ @if ($model->deleted_at!='')
+ <li><br /><a href="{{ route('restore/model', $model->id) }}" class="btn-flat large info ">{{ trans('admin/models/general.restore') }}</a></li>
+ @endif
+ </ul>
- @if ($model->deleted_at!='')
- <li><br /><a href="{{ route('restore/model', $model->id) }}" class="btn-flat large info ">{{ trans('admin/models/general.restore') }}</a></li>
- @endif
- </ul>
-
- @if ($model->note)
- Notes:
- <p>
- {!! $model->present()->note() !!}
- </p>
- @endif
+ @if ($model->note)
+ Notes:
+ <p>
+ {!! $model->present()->note() !!}
+ </p>
+ @endif
+ </div>
+ </div>
+ </div>
</div>
</div>
@stop