Skip to content

A free open source IT asset/license management system

Pulled help icon text into its own blade

snipe252341fd5c4b
diff --git a/resources/views/hardware/audit.blade.php b/resources/views/hardware/audit.blade.php
index 7b3de62d6a..6e996c1b56 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>
- <a href="#" class="text-dark-gray" tabindex="0" role="button" data-toggle="popover" data-trigger="focus" title="<i class='fa fa-life-ring'></i> More Info" data-html="true" data-content="Checking this box will edit the asset record to reflect this new location. Leaving it unchecked will simply note the location in the audit log.<br><br>Note that is this asset is checked out, it will not change the location of the person, asset or location it is checked out to."><i class="fa fa-life-ring"></i></a>
+ @include ('partials.more-info', ['helpText' => 'Checking this box will edit the asset record to reflect this new location. Leaving it unchecked will simply note the location in the audit log.<br><br>Note that is this asset is checked out, it will not change the location of the person, asset or location it is checked out to.'])
diff --git a/resources/views/partials/more-info.blade.php b/resources/views/partials/more-info.blade.php
new file mode 100644
index 0000000000..42c0e62951
--- /dev/null
+++ b/resources/views/partials/more-info.blade.php
@@ -0,0 +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> More Info" data-html="true" data-content="{{ (isset($helpText)) ? $helpText : 'Info Missing' }}"><i class="fa fa-life-ring"></i></a>