Email config alert

Added alert box to convey that email has not been setup
This commit is contained in:
Manish Verma
2018-08-10 16:12:51 +05:30
parent 0e9e447fbe
commit 0c49050172
4 changed files with 65 additions and 15 deletions

View File

@@ -374,7 +374,22 @@
<!-- Main content -->
<section class="content">
@if (!$is_mail_conigured)
<div class="row">
<div class="col-md-12">
<div class="callout callout-warning lead">
<h4><i class="fa fa-exclamation-triangle"></i>&nbsp;{{Lang::get('Alert')}}</h4>
<p style="font-size:0.8em">
@if (\Auth::user()->role == 'admin')
{{Lang::get('lang.system-outgoing-incoming-mail-not-configured')}}&nbsp;<a href="{{URL::route('emails.create')}}">{{Lang::get('lang.confihure-the-mail-now')}}</a>
@else
{{Lang::get('lang.system-mail-not-configured-agent-message')}}
@endif
</p>
</div>
</div>
</div>
@endif
@yield('content')
</section><!-- /.content -->
<!-- /.content-wrapper -->

View File

@@ -400,6 +400,22 @@ $group = App\Model\helpdesk\Agent\Groups::where('id', '=', $agent_group)->first(
</section>
<!-- Main content -->
<section class="content">
@if (!$is_mail_conigured)
<div class="row">
<div class="col-md-12">
<div class="callout callout-warning lead">
<h4><i class="fa fa-exclamation-triangle"></i>&nbsp;{{Lang::get('Alert')}}</h4>
<p style="font-size:0.8em">
@if (\Auth::user()->role == 'admin')
{{Lang::get('lang.system-outgoing-incoming-mail-not-configured')}}&nbsp;<a href="{{URL::route('emails.create')}}">{{Lang::get('lang.confihure-the-mail-now')}}</a>
@else
{{Lang::get('lang.system-mail-not-configured-agent-message')}}
@endif
</p>
</div>
</div>
</div>
@endif
@yield('content')
</section><!-- /.content -->
</div>