Skip to content

A free open source IT asset/license management system

Reformatted help popover

snipedb765e4a0bf6
diff --git a/resources/views/hardware/audit.blade.php b/resources/views/hardware/audit.blade.php
index b3d91f8066..b9d8a9840c 100644
--- a/resources/views/hardware/audit.blade.php
+++ b/resources/views/hardware/audit.blade.php
@@ -60,7 +60,7 @@
<input type="checkbox" value="1" name="update_location" class="minimal" {{ Input::old('update_location') == '1' ? ' checked="checked"' : '' }}> Update asset location
</label>
- @include ('partials.more-info', ['helpText' => trans('help.audit_help')])
+ @include ('partials.more-info', ['helpText' => trans('help.audit_help'), 'helpPosition' => 'right'])
diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.php
index 708d296eaf..b596965625 100755
--- a/resources/views/hardware/edit.blade.php
+++ b/resources/views/hardware/edit.blade.php
@@ -2,8 +2,8 @@
@extends('layouts/edit-form', [
'createText' => trans('admin/hardware/form.create'),
'updateText' => trans('admin/hardware/form.update'),
- 'helpTitle' => trans('admin/hardware/general.about_assets_title'),
'helpText' => trans('admin/hardware/general.about_assets_text'),
+ 'helpPosition' => 'right',
'formAction' => ($item) ? route('hardware.update', ['hardware' => $item->id]) : route('hardware.store'),
])
diff --git a/resources/views/layouts/edit-form.blade.php b/resources/views/layouts/edit-form.blade.php
index 1e136ba4a3..2f462134ab 100644
--- a/resources/views/layouts/edit-form.blade.php
+++ b/resources/views/layouts/edit-form.blade.php
@@ -27,15 +27,21 @@
<div class="box box-default">
<div class="box-header with-border">
+
<h3 class="box-title" style="min-height: 20px;">
+ @if (isset($helpText))
+ @include ('partials.more-info',
+ [
+ 'helpText' => trans('help.audit_help'),
+ 'helpPosition' => (isset($helpPosition)) ? $helpPosition : 'left'
+ ])
+ @endif
+
@if ($item->id)
{{ $item->display_name }}
@endif
</h3>
<div class="box-tools pull-right">
- @if (isset($helpText))
- <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>
- @endif
@include('partials.forms.edit.submit-button')
</div>
</div><!-- /.box-header -->
@@ -55,16 +61,6 @@
</div>
</div>
</form>
-
- @if ((isset($helpText)) && (isset($helpTitle)))
- <div class="slideout-menu">
- <a href="#" class="slideout-menu-toggle pull-right">×</a>
- <h3>
- {{ $helpTitle}}
- </h3>
- <p>{{ $helpText }} </p>
- </div>
- @endif
</div>
@stop
diff --git a/resources/views/partials/more-info.blade.php b/resources/views/partials/more-info.blade.php
index b66c13395c..ca704c29f2 100644
--- a/resources/views/partials/more-info.blade.php
+++ b/resources/views/partials/more-info.blade.php
@@ -1 +1 @@
-<a href="#" class="text-dark-gray" tabindex="0" role="button" data-toggle="popover" data-trigger="focus" title="<i class='fa fa-life-ring'></i> {{ trans('help.more_info_title') }}" data-html="true" data-content="{{ (isset($helpText)) ? $helpText : 'Info Missing' }}"><i class="fa fa-life-ring"></i></a>
+<a href="#" class="text-dark-gray" tabindex="0" role="button" data-toggle="popover" data-trigger="focus" title="<i class='fa fa-life-ring'></i> {{ trans('help.more_info_title') }}" data-placement="{{ (isset($helpPosition)) ? $helpPosition : 'left' }}" data-html="true" data-content="{{ (isset($helpText)) ? $helpText : 'Info Missing' }}"><i class="fa fa-life-ring"></i></a>