Updated help text

This commit is contained in:
snipe 2020-08-31 19:55:30 -07:00
parent 408435057e
commit ed79eacb9d
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC
3 changed files with 33 additions and 32 deletions

View file

@ -742,7 +742,17 @@
<section class="content-header" style="padding-bottom: 30px;">
<h1 class="pull-left">
@yield('title')
</h1>
@if (isset($helpText))
@include ('partials.more-info',
[
'helpText' => $helpText,
'helpPosition' => (isset($helpPosition)) ? $helpPosition : 'left'
])
@endif
<div class="pull-right">
@yield('header_right')
</div>

View file

@ -24,48 +24,37 @@
<!-- row -->
<div class="row">
<!-- col-md-8 -->
<div class="col-md-8 col-md-offset-2">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1 col-sm-12 col-sm-offset-0">
<form id="create-form" class="form-horizontal" method="post" action="{{ (isset($formAction)) ? $formAction : \Request::url() }}" autocomplete="off" role="form" enctype="multipart/form-data">
<!-- box -->
<div class="box box-default">
<!-- box-header -->
<div class="box-header{{ ($item->id) ? ' with-border' : '' }}">
<div class="box-header with-border text-right">
<div class="box-title col-md-12" style="min-height: 20px;">
<div class="col-md-12 box-title text-right" style="padding: 0px; margin: 0px;">
<div class="col-md-12">
@if (isset($helpText))
<div class="col-md-1 text-left" style="horiz-align: center;">
@include ('partials.more-info',
[
'helpText' => $helpText,
'helpPosition' => (isset($helpPosition)) ? $helpPosition : 'left'
])
</div>
@endif
@if ($item->id)
<div class="col-md-9">
<h2 class="box-title">
<div class="col-md-12" style="padding: 0px; margin: 0px;">
<div class="col-md-9 text-left">
@if ($item->id)
<h2 class="box-title text-left" style="padding-top: 8px;">
{{ $item->display_name }}
</h2>
</div>
@endif
@endif
</div>
<div class="col-md-3 text-right" style="padding-right: 10px;">
<a class="btn btn-link text-left" href="{{ URL::previous() }}">
{{ trans('button.cancel') }}
</a>
<button type="submit" class="btn btn-primary">
<i class="fa fa-check icon-white" aria-hidden="true"></i>
{{ trans('general.save') }}
</button>
</div>
</div>
</div>
@if ((isset($topSubmit)) && ($topSubmit =='true'))
<div class="col-md-2 text-right">
@include('partials.forms.edit.submit-button')
</div>
@endif
</div> <!-- /div.row -->
</div><!-- /.box-header -->
</div><!-- /.box-header -->
<!-- box-body -->

View file

@ -1 +1,3 @@
<a href="#" class="text-dark-gray pull-left" tabindex="0" role="button" data-toggle="popover" data-trigger="focus" data-placement="{{ (isset($helpPosition)) ? $helpPosition : 'right' }}" data-html="true" data-content="{{ (isset($helpText)) ? $helpText : 'Info Missing' }}"><i class="fa fa-life-ring fa-2x"></i></a>
<a style="padding-left: 10px; font-size: 18px;" class="text-dark-gray" data-trigger="focus" tabindex="0" role="button" data-toggle="popover" title="More Info" data-placement="{{ (isset($helpPosition)) ? $helpPosition : 'right' }}" data-html="true" data-content="{{ (isset($helpText)) ? $helpText : 'Help Info Missing' }}">
<i class="fa fa-life-ring" aria-hidden="true"><span class="sr-only">More Info</span></i>
</a>