update v 1.0.7.5
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
|
||||
@section('Emails')
|
||||
active
|
||||
@stop
|
||||
@@ -17,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{!! Lang::get('lang.ban_email') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -29,72 +28,59 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
{!! Form::open(['action' => 'Admin\helpdesk\BanlistController@store','method' => 'POST']) !!}
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{{Lang::get('lang.ban_email')}}</h3>
|
||||
<div class="pull-right">
|
||||
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}</div>
|
||||
</div>
|
||||
<!-- Ban Status : Radio form : Required -->
|
||||
<div class="box-body table-responsive"style="overflow:hidden;">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('ban') ? 'has-error' : '' }}">
|
||||
{!! Form::label('ban',Lang::get('lang.ban_status')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban',1) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban',0) !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- email Address : Text form : Required -->
|
||||
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!}
|
||||
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- intrnal Notes : Textarea : -->
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_note',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.create_a_banned_email')}}</h3>
|
||||
</div>
|
||||
<!-- Ban Status : Radio form : Required -->
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('ban'))
|
||||
<li class="error-message-padding">{!! $errors->first('ban', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('email'))
|
||||
<li class="error-message-padding">{!! $errors->first('email', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="form-group {{ $errors->has('ban') ? 'has-error' : '' }}">
|
||||
{!! Form::label('ban',Lang::get('lang.ban_status')) !!} <span class="text-red"> *</span>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban',1) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban',0) !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- email Address : Text form : Required -->
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('email',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
<!-- intrnal Notes : Textarea : -->
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_note',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@@ -16,65 +16,59 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{!! Lang::get('lang.ban_email') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
{!! Form::model($bans,['url'=>'banlist/'.$bans->id,'method'=>'PATCH']) !!}
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{{Lang::get('lang.ban_email')}}</h3>
|
||||
<div class="pull-right">
|
||||
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}</div>
|
||||
</div>
|
||||
<!-- Ban Status : Radio form : Required -->
|
||||
<div class="box-body table-responsive"style="overflow:hidden;">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('ban') ? 'has-error' : '' }}">
|
||||
{!! Form::label('ban',Lang::get('lang.ban_status')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban',1) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban',0) !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- email Address : Text form : Required -->
|
||||
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!}
|
||||
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email',null,['disabled'=>'disabled','class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- intrnal Notes : Textarea : -->
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_note',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.edit_banned_email')}}</h3>
|
||||
</div>
|
||||
<!-- Ban Status : Radio form : Required -->
|
||||
<div class="box-body">
|
||||
@if(Session::has('errors'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('ban'))
|
||||
<li class="error-message-padding">{!! $errors->first('ban', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="form-group {{ $errors->has('ban') ? 'has-error' : '' }}">
|
||||
{!! Form::label('ban',Lang::get('lang.ban_status')) !!} <span class="text-red"> *</span>
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('ban',1) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('ban',0) !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- email Address : Text form : Required -->
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('email',null,['disabled'=>'disabled','class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- intrnal Notes : Textarea : -->
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_note',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.update'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{!! Lang::get('lang.ban_email') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -28,59 +28,49 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.banlists')}}</h2><a href="{{route('banlist.create')}}" class="pull-right btn btn-primary">{{Lang::get('lang.ban_email')}}</a>
|
||||
</div>
|
||||
<div class="box-body table-responsive">
|
||||
|
||||
|
||||
<!-- check whether success or not -->
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h2 class="box-title">{{Lang::get('lang.list_of_banned_emails')}}</h2><a href="{{route('banlist.create')}}" class="pull-right btn btn-primary">{{Lang::get('lang.ban_email')}}</a>
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
<div class="box-body">
|
||||
<!-- check whether success or not -->
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.fails') !!} ! </b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
<tr>
|
||||
<th width="100px">{{Lang::get('lang.email_address')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
<!-- Foreach @var bans as @var ban -->
|
||||
@foreach($bans as $ban)
|
||||
<tr>
|
||||
<!-- Email Address with Link to Edit page along Id -->
|
||||
<td><a href="{{route('banlist.edit',$ban->id)}}">{!! $ban->email !!}</a></td>
|
||||
<!-- Last Updated -->
|
||||
<td> {!! UTC::usertimezone($ban->updated_at) !!} </td>
|
||||
<!-- Deleting Fields -->
|
||||
<td>
|
||||
<a href="{{route('banlist.edit',$ban->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> {!! Lang::get('lang.edit') !!}</a> <a href="{{route('banlist.delete',$ban->id)}}" class="btn btn-danger btn-xs btn-flat"><i class="fa fa-trash" style="color:black;"> </i> {!! Lang::get('lang.delete') !!}</a>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
<!-- Set a link to Create Page -->
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
<tr>
|
||||
<th width="100px">{{Lang::get('lang.email_address')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
<!-- Foreach @var bans as @var ban -->
|
||||
@foreach($bans as $ban)
|
||||
<tr>
|
||||
|
||||
<!-- Email Address with Link to Edit page along Id -->
|
||||
<td><a href="{{route('banlist.edit',$ban->id)}}">{!! $ban->email !!}</a></td>
|
||||
<!-- Last Updated -->
|
||||
<td> {!! UTC::usertimezone($ban->updated_at) !!} </td>
|
||||
<!-- Deleting Fields -->
|
||||
<td>
|
||||
<a href="{{route('banlist.edit',$ban->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
<!-- Set a link to Create Page -->
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
|
||||
@@ -45,19 +45,19 @@ class="active"
|
||||
<div class="row">
|
||||
<!-- email address -->
|
||||
<div class="col-xs-4 form-group {!! $errors->has('email_address') ? 'has-error' : '' !!}" id = "email_address_error">
|
||||
{!! Form::label('email_address',Lang::get('lang.email_address')) !!}
|
||||
{!! Form::label('email_address',Lang::get('lang.email_address')) !!} <span class="text-red"> *</span>
|
||||
{!! $errors->first('email_address', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email_address',null,['class' => 'form-control', 'id' => 'email_address']) !!}
|
||||
</div>
|
||||
<!-- Email name -->
|
||||
<div class="col-xs-4 form-group {!! $errors->has('email_name') ? 'has-error' : ''!!}" id="email_name_error">
|
||||
{!! Form::label('email_name',Lang::get('lang.from_name')) !!}
|
||||
{!! Form::label('email_name',Lang::get('lang.from_name')) !!} <span class="text-red"> *</span>
|
||||
{!! $errors->first('email_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email_name',null,['class' => 'form-control', 'id' => 'email_name']) !!}
|
||||
</div>
|
||||
<!-- password -->
|
||||
<div class="col-xs-4 form-group {!! $errors->has('password') ? 'has-error' : ''!!}" id="password_error">
|
||||
{!! Form::label('password',Lang::get('lang.password')) !!}
|
||||
{!! Form::label('password',Lang::get('lang.password')) !!} <span class="text-red"> *</span>
|
||||
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::password('password',['class' => 'form-control', 'id' => 'password']) !!}
|
||||
</div>
|
||||
@@ -72,26 +72,26 @@ class="active"
|
||||
<div class="col-xs-4 form-group {!! $errors->has('department') ? 'has-error' : ''!!}" id="department_error">
|
||||
{!! Form::label('department',Lang::get('lang.department')) !!}
|
||||
{!! $errors->first('department', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('department', [''=>'--System Default--','departments'=>$departments->lists('name','id')],null,['class' => 'form-control select', 'id' => 'department' ]) !!}
|
||||
{!!Form::select('department', [''=>'--System Default--','departments'=>$departments->lists('name','id')->toArray()],null,['class' => 'form-control select', 'id' => 'department' ]) !!}
|
||||
</div>
|
||||
<!-- Priority -->
|
||||
<div class="col-xs-4 form-group {!! $errors->has('priority') ? 'has-error' : ''!!}" id="priority_error">
|
||||
{!! Form::label('priority',Lang::get('lang.priority')) !!}
|
||||
{!! $errors->first('priority', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('priority', [''=>'--System Default--','Priorities'=>$priority->lists('priority_desc','priority_id')],null,['class' => 'form-control select', 'id' => 'priority']) !!}
|
||||
{!!Form::select('priority', [''=>'--System Default--','Priorities'=>$priority->lists('priority_desc','priority_id')->toArray()],null,['class' => 'form-control select', 'id' => 'priority']) !!}
|
||||
</div>
|
||||
<!-- Help topic -->
|
||||
<div class="col-xs-4 form-group {!! $errors->has('help_topic') ? 'has-error' : ''!!}" id="help_topic_error">
|
||||
{!! Form::label('help_topic',Lang::get('lang.help_topic')) !!}
|
||||
{!! $errors->first('help_topic', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('help_topic', [''=>'--System Default--','Help Topics'=>$helps->lists('topic','id')],null,['class' => 'form-control select', 'id' => 'help_topic']) !!}
|
||||
{!!Form::select('help_topic', [''=>'--System Default--','Help Topics'=>$helps->lists('topic','id')->toArray()],null,['class' => 'form-control select', 'id' => 'help_topic']) !!}
|
||||
</div>
|
||||
<!-- status -->
|
||||
<div class="col-xs-2 form-group">
|
||||
{!! Form::label('auto_response',Lang::get('lang.auto_response')) !!}
|
||||
</div>
|
||||
<div class="col-xs-3 form-group">
|
||||
|
||||
|
||||
<input type="checkbox" name="auto_response" id="auto_response"> {{Lang::get('lang.disable_for_this_email_address')}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -117,9 +117,9 @@ class="active"
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('fetching_protocol') ? 'has-error' : ''!!}" id="fetching_protocol_error">
|
||||
{!! Form::label('fetching_protocol',Lang::get('lang.fetching_protocol')) !!}
|
||||
{!! Form::label('fetching_protocol',Lang::get('lang.protocol')) !!}
|
||||
{!! $errors->first('fetching_protocol', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('fetching_protocol',['imap' => 'IMAP'],null,['class' => 'form-control select', 'id' => 'fetching_protocol']) !!}
|
||||
{!!Form::select('fetching_protocol',['imap' => 'IMAP', 'pop' => 'POP3'],null,['class' => 'form-control select', 'id' => 'fetching_protocol']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group {!! $errors->has('fetching_host') ? 'has-error' : ''!!}" id="fetching_host_error">
|
||||
{!! Form::label('fetching_host',Lang::get('lang.host_name')) !!}
|
||||
@@ -134,12 +134,15 @@ class="active"
|
||||
<div class="col-xs-2 form-group {!! $errors->has('fetching_encryption') ? 'has-error' : ''!!}" id="fetching_encryption_error">
|
||||
{!! Form::label('fetching_encryption',Lang::get('lang.encryption')) !!}
|
||||
{!! $errors->first('fetching_encryption', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('fetching_encryption',['none' => 'None', 'ssl' => 'SSL', 'tls' => 'TLS', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select', 'id' => 'fetching_encryption']) !!}
|
||||
{!!Form::select('fetching_encryption',[''=>'-----Select-----', 'none' => 'None', 'ssl' => 'SSL', 'tls' => 'TLS', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select', 'id' => 'fetching_encryption']) !!}
|
||||
</div>
|
||||
<div class="col-xs-4 form-group">
|
||||
<div class="callout callout-default" style="font-style: oblique; margin-top: -47px; margin-bottom: -30px; margin-left: -12px; margin-right: -6px;">If this checkbox is not checked SSL certificates will not be validated</div>
|
||||
<br/><br/>
|
||||
<input type="checkbox" name="validate" id="validate"> Validate certificates from TLS/SSL server
|
||||
<div class="col-xs-2 form-group {!! $errors->has('imap_authentication') ? 'has-error' : ''!!}" id="imap_authentication_error">
|
||||
{!! Form::label('fetching_authentication',Lang::get('lang.authentication')) !!}
|
||||
{!!Form::select('imap_authentication',['normal' => 'Normal Password'],null,['class' => 'form-control select', 'id' => 'imap_authentication']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
<br>
|
||||
<input type="checkbox" name="imap_validate" id="imap_validate"> {!! Lang::get('lang.validate_certificates_from_tls_or_ssl_server') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -163,29 +166,37 @@ class="active"
|
||||
</div>
|
||||
<div class="row">
|
||||
<!-- Encryption -->
|
||||
<div class="col-xs-3 form-group {!! $errors->has('sending_protocol') ? 'has-error' : ''!!}" id="sending_protocol_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('sending_protocol') ? 'has-error' : ''!!}" id="sending_protocol_error">
|
||||
{!! Form::label('sending_protocol',Lang::get('lang.transfer_protocol')) !!}
|
||||
{!! $errors->first('sending_protocol', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('sending_protocol',['smtp'=>'SMTP'],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('sending_protocol',['smtp'=>'SMTP', 'mail' => 'PHP-MAIL'],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<!-- sending hoost -->
|
||||
<div class="col-xs-3 form-group {!! $errors->has('sending_host') ? 'has-error' : ''!!}" id="sending_host_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('sending_host') ? 'has-error' : ''!!}" id="sending_host_error">
|
||||
{!! Form::label('sending_host',Lang::get('lang.host_name')) !!}
|
||||
{!! $errors->first('sending_host', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('sending_host',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- sending port -->
|
||||
<div class="col-xs-3 form-group {!! $errors->has('sending_port') ? 'has-error' : ''!!}" id="sending_port_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('sending_port') ? 'has-error' : ''!!}" id="sending_port_error">
|
||||
{!! Form::label('sending_port',Lang::get('lang.port_number')) !!}
|
||||
{!! $errors->first('sending_port', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('sending_port',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- Encryption -->
|
||||
<div class="col-xs-3 form-group {!! $errors->has('sending_encryption') ? 'has-error' : ''!!}" id="sending_encryption_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('sending_encryption') ? 'has-error' : ''!!}" id="sending_encryption_error">
|
||||
{!! Form::label('sending_encryption',Lang::get('lang.encryption')) !!}
|
||||
{!! $errors->first('sending_encryption', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('sending_encryption',['ssl'=>'SSL','tls'=>'TLS', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('sending_encryption',[''=>'-----Select-----', 'none' => 'None', 'ssl' => 'SSL', 'tls' => 'TLS', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group {!! $errors->has('smtp_authentication') ? 'has-error' : ''!!}" id="smtp_authentication_error">
|
||||
{!! Form::label('sending_authentication',Lang::get('lang.authentication')) !!}
|
||||
{!!Form::select('smtp_authentication',['normal' => 'Normal Password'],null,['class' => 'form-control select', 'id' => 'smtp_authentication']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
<br>
|
||||
<input type="checkbox" name="smtp_validate" id="smtp_validate"> {!! Lang::get('lang.validate_certificates_from_tls_or_ssl_server') !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Internal notes -->
|
||||
<div class="form-group">
|
||||
@@ -195,7 +206,6 @@ class="active"
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::button('<i id="spin" class="fa fa-spinner" style="display:none;"></i> <b>' . Lang::get("lang.create").'</b>' ,['class'=>'btn btn-primary', 'type' => 'submit'])!!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -225,7 +235,7 @@ class="active"
|
||||
|
||||
<script type="text/javascript">
|
||||
//submit form
|
||||
$('#form').on('submit', function () {
|
||||
$('#form').on('submit', function() {
|
||||
var form_data = $(this).serialize();
|
||||
$("#spin").addClass("fa-spin");
|
||||
var email_address = document.getElementById('email_address').value;
|
||||
@@ -244,7 +254,6 @@ class="active"
|
||||
var sending_host = document.getElementById('sending_host').value;
|
||||
var sending_port = document.getElementById('sending_port').value;
|
||||
var sending_encryption = document.getElementById('sending_encryption').value;
|
||||
var validate = $('input#validate[type="checkbox"]:checked', this).val();
|
||||
|
||||
var filter_number = /^([0-9])/;
|
||||
var error_list = [];
|
||||
@@ -339,29 +348,36 @@ class="active"
|
||||
}
|
||||
// checking for validation of sending status
|
||||
if (sending_status == 'on') {
|
||||
// checking for validation of sending host
|
||||
if (sending_host == "") {
|
||||
var error = "Sending Host is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_host_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending port
|
||||
if (sending_port == "") {
|
||||
var error = "Sending Port is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_port_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending encryption
|
||||
if (sending_encryption == "") {
|
||||
var error = "Sending Encryption is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_encryption_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending protocol
|
||||
if (sending_protocol == "") {
|
||||
var error = "Transfer Protocol is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_protocol_error").addClass("has-error");
|
||||
if (sending_protocol == 'smtp') {
|
||||
// checking for validation of sending host
|
||||
if (sending_host == "") {
|
||||
var error = "Sending Host is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_host_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending port
|
||||
if (sending_port == "") {
|
||||
var error = "Sending Port is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_port_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending encryption
|
||||
if (sending_encryption == "") {
|
||||
var error = "Sending Encryption is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_encryption_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending protocol
|
||||
if (sending_protocol == "") {
|
||||
var error = "Transfer Protocol is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_protocol_error").addClass("has-error");
|
||||
}
|
||||
} else if(sending_protocol == 'mail') {
|
||||
$("#sending_host_error").val('');
|
||||
$("#sending_port_error").val('');
|
||||
$("#sending_encryption_error").val('');
|
||||
$("#sending_protocol_error").val('');
|
||||
}
|
||||
} else {
|
||||
// checking for validation of fetching port
|
||||
@@ -376,7 +392,7 @@ class="active"
|
||||
// executing error chatch
|
||||
if (error) {
|
||||
var ssss = "";
|
||||
$.each(error_list, function (key, value) {
|
||||
$.each(error_list, function(key, value) {
|
||||
ssss += "<li class='error-message-padding'>" + value + "</li>";
|
||||
});
|
||||
if (ssss) {
|
||||
@@ -398,12 +414,12 @@ class="active"
|
||||
headers: {
|
||||
'X-CSRF-Token': $('meta[name="_token"]').attr('content')
|
||||
},
|
||||
beforeSend: function () {
|
||||
beforeSend: function() {
|
||||
$('#alert').empty();
|
||||
$("#click").trigger("click");
|
||||
|
||||
},
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
if (response == 1) {
|
||||
$("#close").trigger("click");
|
||||
var error_result = "<div class='alert alert-success alert-dismissable'> <button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button><div id='alert-message'>Your details saved successfully</div></div>";
|
||||
@@ -416,7 +432,7 @@ class="active"
|
||||
$('#alert').show();
|
||||
}
|
||||
},
|
||||
error: function (response) {
|
||||
error: function(response) {
|
||||
$("#close").trigger("click");
|
||||
var errorsHtml = "<div class='alert alert-danger alert-dismissable'> <i class='fa fa-ban'> </i> <b> Alert!</b><button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button><div id='alert-message'>Unable to process the details </div></div>";
|
||||
$('#alert').empty();
|
||||
|
||||
@@ -16,14 +16,12 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.edit_an_email')}}</h1>
|
||||
|
||||
<h1>{{Lang::get('lang.edit_an_email')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
@@ -48,19 +46,19 @@ class="active"
|
||||
<div class="row">
|
||||
<!-- email address -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('email_address') ? 'has-error' : '' }}" id="email_address_error">
|
||||
{!! Form::label('email_address',Lang::get('lang.email_address')) !!}
|
||||
{!! Form::label('email_address',Lang::get('lang.email_address')) !!} <span class="text-red"> *</span>
|
||||
{!! $errors->first('email_address', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email_address',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- Email name -->
|
||||
<div class="col-xs-4 form-group {!! $errors->has('email_name') ? 'has-error' : ''!!}" id="email_name_error">
|
||||
{!! Form::label('email_name',Lang::get('lang.from_name')) !!}
|
||||
{!! Form::label('email_name',Lang::get('lang.from_name')) !!} <span class="text-red"> *</span>
|
||||
{!! $errors->first('email_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email_name',null,['class' => 'form-control', 'id' => 'email_name']) !!}
|
||||
</div>
|
||||
<!-- password -->
|
||||
<div class="col-xs-4 form-group {!! $errors->has('password') ? 'has-error' : ''!!}" id="password_error">
|
||||
{!! Form::label('password',Lang::get('lang.password')) !!}
|
||||
{!! Form::label('password',Lang::get('lang.password')) !!} <span class="text-red"> *</span>
|
||||
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
|
||||
<input type="password" name="password" class="form-control" id="password" value={!! Crypt::decrypt($emails->password) !!} >
|
||||
</div>
|
||||
@@ -75,19 +73,19 @@ class="active"
|
||||
<div class="col-xs-4 form-group {{ $errors->has('department') ? 'has-error' : '' }}">
|
||||
{!! Form::label('department',Lang::get('lang.department')) !!}
|
||||
{!! $errors->first('department', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('department', [''=>'--System Default--','departments'=>$departments->lists('name','id')],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('department', [''=>'--System Default--','departments'=>$departments->lists('name','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<!-- priority -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('priority') ? 'has-error' : '' }}">
|
||||
{!! Form::label('priority',Lang::get('lang.priority')) !!}
|
||||
{!! $errors->first('priority', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('priority', [''=>'--System Default--','Priorities'=>$priority->lists('priority_desc','priority_id')],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('priority', [''=>'--System Default--','Priorities'=>$priority->lists('priority_desc','priority_id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<!-- help topic -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('help_topic') ? 'has-error' : '' }}">
|
||||
{!! Form::label('help_topic',Lang::get('lang.help_topic')) !!}
|
||||
{!! $errors->first('help_topic', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('help_topic', [''=>'--System Default--','Help Topics'=>$helps->lists('topic','id')],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('help_topic', [''=>'--System Default--','Help Topics'=>$helps->lists('topic','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<!-- status -->
|
||||
<div class="col-xs-2 form-group">
|
||||
@@ -115,10 +113,10 @@ class="active"
|
||||
<div class="col-xs-2 form-group">
|
||||
<!--{!! Form::radio('fetching_status','1',true) !!} {{Lang::get('lang.enable')}}-->
|
||||
<input type="checkbox" name="fetching_status" id="fetching_status" <?php
|
||||
if ($emails->fetching_status == 1) {
|
||||
echo "checked='checked'";
|
||||
}
|
||||
?>> {{Lang::get('lang.enable')}}
|
||||
if ($emails->fetching_status == 1) {
|
||||
echo "checked='checked'";
|
||||
}
|
||||
?>> {{Lang::get('lang.enable')}}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
<!--<input type="radio" name="fetching_status" id="fetching_status" value="0"> {{Lang::get('lang.disabled')}}-->
|
||||
@@ -129,7 +127,7 @@ class="active"
|
||||
<div class="col-xs-2 form-group {!! $errors->has('fetching_protocol') ? 'has-error' : ''!!}" id="fetching_protocol_error">
|
||||
{!! Form::label('fetching_protocol',Lang::get('lang.fetching_protocol')) !!}
|
||||
{!! $errors->first('fetching_protocol', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('fetching_protocol',['imap' => 'IMAP'],null,['class' => 'form-control select', 'id' => 'fetching_protocol']) !!}
|
||||
{!!Form::select('fetching_protocol',['imap' => 'IMAP', 'pop' => 'POP3'],null,['class' => 'form-control select', 'id' => 'fetching_protocol']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group {!! $errors->has('fetching_host') ? 'has-error' : ''!!}" id="fetching_host_error">
|
||||
{!! Form::label('fetching_host',Lang::get('lang.host_name')) !!}
|
||||
@@ -144,12 +142,37 @@ class="active"
|
||||
<div class="col-xs-2 form-group {!! $errors->has('fetching_encryption') ? 'has-error' : ''!!}" id="fetching_encryption_error">
|
||||
{!! Form::label('fetching_encryption',Lang::get('lang.encryption')) !!}
|
||||
{!! $errors->first('fetching_encryption', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('fetching_encryption',['none' => 'None', 'ssl' => 'SSL', 'tls' => 'TLS', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select', 'id' => 'fetching_encryption']) !!}
|
||||
<select name="fetching_encryption" class='form-control' id='fetching_encryption'>
|
||||
<option value=""> -----Select----- </option>
|
||||
<option <?php
|
||||
if ($emails->fetching_encryption == 'none') {
|
||||
echo 'selected="selected"';
|
||||
}
|
||||
?> value="none">None</option>
|
||||
<option <?php
|
||||
if ($emails->fetching_encryption == '/ssl/novalidate-cert' || $emails->fetching_encryption === '/ssl/validate-cert') {
|
||||
echo 'selected="selected"';
|
||||
}
|
||||
?> value="ssl">SSL</option>
|
||||
<option <?php
|
||||
if ($emails->fetching_encryption == '/tls/novalidate-cert' || $emails->fetching_encryption === '/tls/validate-cert') {
|
||||
echo 'selected="selected"';
|
||||
}
|
||||
?> value="tls">TLS</option>
|
||||
<option <?php
|
||||
if ($emails->fetching_encryption == '/starttls/novalidate-cert' || $emails->fetching_encryption === '/starttls/validate-cert') {
|
||||
echo 'selected="selected"';
|
||||
}
|
||||
?> value="starttls">STARTTLS</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4 form-group">
|
||||
<div class="callout callout-default" style="font-style: oblique; margin-top: -47px; margin-bottom: -30px; margin-left: -12px; margin-right: -6px;">If this checkbox is not checked SSL certificates will not be validated</div>
|
||||
<br/><br/>
|
||||
<input type="checkbox" name="validate" value="/novalidate-cert"> Validate certificates from TLS/SSL server
|
||||
<div class="col-xs-2 form-group {!! $errors->has('imap_authentication') ? 'has-error' : ''!!}" id="imap_authentication_error">
|
||||
{!! Form::label('fetching_authentication',Lang::get('lang.authentication')) !!}
|
||||
{!!Form::select('imap_authentication',['normal' => 'Normal Password'],null,['class' => 'form-control select', 'id' => 'imap_authentication']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
<br>
|
||||
<input type="checkbox" name="imap_validate" id="imap_validate"> {!! Lang::get('lang.validate_certificates_from_tls_or_ssl_server') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -165,10 +188,10 @@ class="active"
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
<input type="checkbox" name="sending_status" id="sending_status" <?php
|
||||
if ($emails->sending_status == 1) {
|
||||
echo "checked='checked'";
|
||||
}
|
||||
?>> {!! Lang::get('lang.enable') !!}
|
||||
if ($emails->sending_status == 1) {
|
||||
echo "checked='checked'";
|
||||
}
|
||||
?>> {!! Lang::get('lang.enable') !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
<!--<input type="radio" name="sending_status" id="sending_status" value=""> {!! Lang::get('lang.disabled') !!}-->
|
||||
@@ -177,29 +200,37 @@ class="active"
|
||||
</div>
|
||||
<div class="row">
|
||||
<!-- Encryption -->
|
||||
<div class="col-xs-3 form-group {!! $errors->has('sending_protocol') ? 'has-error' : ''!!}" id="sending_protocol_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('sending_protocol') ? 'has-error' : ''!!}" id="sending_protocol_error">
|
||||
{!! Form::label('sending_protocol',Lang::get('lang.transfer_protocol')) !!}
|
||||
{!! $errors->first('sending_protocol', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('sending_protocol',['smtp'=>'SMTP'],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('sending_protocol',['smtp'=>'SMTP', 'mail' => 'PHP-MAIL'],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<!-- sending hoost -->
|
||||
<div class="col-xs-3 form-group {!! $errors->has('sending_host') ? 'has-error' : ''!!}" id="sending_host_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('sending_host') ? 'has-error' : ''!!}" id="sending_host_error">
|
||||
{!! Form::label('sending_host',Lang::get('lang.host_name')) !!}
|
||||
{!! $errors->first('sending_host', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('sending_host',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- sending port -->
|
||||
<div class="col-xs-3 form-group {!! $errors->has('sending_port') ? 'has-error' : ''!!}" id="sending_port_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('sending_port') ? 'has-error' : ''!!}" id="sending_port_error">
|
||||
{!! Form::label('sending_port',Lang::get('lang.port_number')) !!}
|
||||
{!! $errors->first('sending_port', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('sending_port',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- Encryption -->
|
||||
<div class="col-xs-3 form-group {!! $errors->has('sending_encryption') ? 'has-error' : ''!!}" id="sending_encryption_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('sending_encryption') ? 'has-error' : ''!!}" id="sending_encryption_error">
|
||||
{!! Form::label('sending_encryption',Lang::get('lang.encryption')) !!}
|
||||
{!! $errors->first('sending_encryption', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('sending_encryption',['ssl'=>'SSL','tls'=>'TLS', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('sending_encryption',[''=>'-----Select-----', 'none' => 'None', 'ssl' => 'SSL', 'tls' => 'TLS', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group {!! $errors->has('smtp_authentication') ? 'has-error' : ''!!}" id="smtp_authentication_error">
|
||||
{!! Form::label('sending_authentication',Lang::get('lang.authentication')) !!}
|
||||
{!!Form::select('smtp_authentication',['normal' => 'Normal Password'],null,['class' => 'form-control select', 'id' => 'smtp_authentication']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
<br>
|
||||
<input type="checkbox" name="smtp_validate" id="smtp_validate"> {!! Lang::get('lang.validate_certificates_from_tls_or_ssl_server') !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Internal notes -->
|
||||
<div class="form-group">
|
||||
@@ -207,7 +238,11 @@ class="active"
|
||||
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '30x10']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="count" value="{{$count}}">
|
||||
<div class="box-footer">
|
||||
<div class="form-group">
|
||||
<input type="checkbox" name="sys_email" @if($sys_email->sys_email == $emails->id) checked @endif @if($count > 1 && $sys_email->sys_email == $emails->id) disabled @endif"> {{Lang::get('lang.make-system-default-mail')}}
|
||||
</div>
|
||||
{!! Form::button('<i id="spin" class="fa fa-spinner" style="display:none;"></i> <b>' . Lang::get("lang.update").'</b>' ,['class'=>'btn btn-primary', 'type' => 'submit'])!!}
|
||||
</div>
|
||||
</div>
|
||||
@@ -254,7 +289,7 @@ class="active"
|
||||
var sending_host = document.getElementById('sending_host').value;
|
||||
var sending_port = document.getElementById('sending_port').value;
|
||||
var sending_encryption = document.getElementById('sending_encryption').value;
|
||||
|
||||
|
||||
var filter_number = /^([0-9])/;
|
||||
var error_list = [];
|
||||
var error = "";
|
||||
@@ -346,30 +381,38 @@ class="active"
|
||||
}
|
||||
}
|
||||
// checking for validation of sending status
|
||||
// checking for validation of sending status
|
||||
if (sending_status == 'on') {
|
||||
// checking for validation of sending host
|
||||
if (sending_host == "") {
|
||||
var error = "Sending Host is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_host_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending port
|
||||
if (sending_port == "") {
|
||||
var error = "Sending Port is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_port_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending encryption
|
||||
if (sending_encryption == "") {
|
||||
var error = "Sending Encryption is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_encryption_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending protocol
|
||||
if (sending_protocol == "") {
|
||||
var error = "Transfer Protocol is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_protocol_error").addClass("has-error");
|
||||
if (sending_protocol == 'smtp') {
|
||||
// checking for validation of sending host
|
||||
if (sending_host == "") {
|
||||
var error = "Sending Host is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_host_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending port
|
||||
if (sending_port == "") {
|
||||
var error = "Sending Port is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_port_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending encryption
|
||||
if (sending_encryption == "") {
|
||||
var error = "Sending Encryption is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_encryption_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending protocol
|
||||
if (sending_protocol == "") {
|
||||
var error = "Transfer Protocol is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_protocol_error").addClass("has-error");
|
||||
}
|
||||
} else if(sending_protocol == 'mail') {
|
||||
$("#sending_host_error").val('');
|
||||
$("#sending_port_error").val('');
|
||||
$("#sending_encryption_error").val('');
|
||||
$("#sending_protocol_error").val('');
|
||||
}
|
||||
} else {
|
||||
// checking for validation of fetching port
|
||||
|
||||
@@ -18,90 +18,93 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b> Failed.
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{!! Form::model($settings,['url'=>'post-smtp','method'=>'PATCH']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{!! Lang::get('lang.outgoing_emails') !!}</h3>
|
||||
<div class="pull-right">
|
||||
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Ban Status : Radio form : Required -->
|
||||
<div class="box-body table-responsive"style="overflow:hidden;">
|
||||
<div class="row">
|
||||
<!-- email Address : Text form : Required -->
|
||||
<div class="col-md-3 form-group {{ $errors->has('driver') ? 'has-error' : '' }}">
|
||||
{!! Form::label('driver',Lang::get('lang.driver')) !!}
|
||||
{!! $errors->first('driver', '<spam class="help-block">:message</spam>') !!}
|
||||
<select name="driver" class="form-control">
|
||||
<option <?php if($settings->driver == "mail"){ echo "selected='selected'"; } ?> value="mail">mail</option>
|
||||
<option <?php if($settings->driver == "smtp"){ echo "selected='selected'"; } ?> value="smtp">smtp</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{!! Lang::get('lang.outgoing_emails') !!}</h3>
|
||||
</div>
|
||||
<!-- Ban Status : Radio form : Required -->
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b> Failed.
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<!-- email Address : Text form : Required -->
|
||||
<div class="col-md-3 form-group {{ $errors->has('driver') ? 'has-error' : '' }}">
|
||||
{!! Form::label('driver',Lang::get('lang.driver')) !!}
|
||||
{!! $errors->first('driver', '<spam class="help-block">:message</spam>') !!}
|
||||
<select name="driver" class="form-control">
|
||||
<option <?php if ($settings->driver == "mail") {
|
||||
echo "selected='selected'";
|
||||
} ?> value="mail">mail</option>
|
||||
<option <?php if ($settings->driver == "smtp") {
|
||||
echo "selected='selected'";
|
||||
} ?> value="smtp">smtp</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 form-group {{ $errors->has('host') ? 'has-error' : '' }}">
|
||||
{!! Form::label('host',Lang::get('lang.host')) !!}
|
||||
{!! $errors->first('host', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('host',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-3 form-group {{ $errors->has('host') ? 'has-error' : '' }}">
|
||||
{!! Form::label('host',Lang::get('lang.host')) !!}
|
||||
{!! $errors->first('host', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('host',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 form-group {{ $errors->has('port') ? 'has-error' : '' }}">
|
||||
{!! Form::label('port',Lang::get('lang.port')) !!}
|
||||
{!! $errors->first('port', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('port',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-3 form-group {{ $errors->has('port') ? 'has-error' : '' }}">
|
||||
{!! Form::label('port',Lang::get('lang.port')) !!}
|
||||
{!! $errors->first('port', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('port',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 form-group {{ $errors->has('encryption') ? 'has-error' : '' }}">
|
||||
{!! Form::label('encryption',Lang::get('lang.encryption')) !!}
|
||||
{!! $errors->first('encryption', '<spam class="help-block">:message</spam>') !!}
|
||||
<select name="encryption" class="form-control">
|
||||
<option <?php if($settings->encryption == "ssl"){ echo "selected='selected'"; } ?> value="ssl">SSL</option>
|
||||
<option <?php if($settings->encryption == "tls"){ echo "selected='selected'"; } ?> value="tls">TLS</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-3 form-group {{ $errors->has('encryption') ? 'has-error' : '' }}">
|
||||
{!! Form::label('encryption',Lang::get('lang.encryption')) !!}
|
||||
{!! $errors->first('encryption', '<spam class="help-block">:message</spam>') !!}
|
||||
<select name="encryption" class="form-control">
|
||||
<option <?php if ($settings->encryption == "ssl") {
|
||||
echo "selected='selected'";
|
||||
} ?> value="ssl">SSL</option>
|
||||
<option <?php if ($settings->encryption == "tls") {
|
||||
echo "selected='selected'";
|
||||
} ?> value="tls">TLS</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email',Lang::get('lang.email')) !!}
|
||||
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email',Lang::get('lang.email')) !!}
|
||||
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 form-group {{ $errors->has('password') ? 'has-error' : '' }}">
|
||||
{!! Form::label('password',Lang::get('lang.password')) !!}
|
||||
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
|
||||
@if($settings->password)
|
||||
<input type="password" name="password" class="form-control" value="{!! Crypt::decrypt($settings->password) !!}">
|
||||
@else
|
||||
<input type="password" name="password" class="form-control">
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 form-group {{ $errors->has('password') ? 'has-error' : '' }}">
|
||||
{!! Form::label('password',Lang::get('lang.password')) !!}
|
||||
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
|
||||
@if($settings->password)
|
||||
<input type="password" name="password" class="form-control" value="{!! Crypt::decrypt($settings->password) !!}">
|
||||
@else
|
||||
<input type="password" name="password" class="form-control">
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@@ -18,55 +18,110 @@ class="active"
|
||||
@section('PageHeader')
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<!-- check whether success or not -->
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
<!-- check whether success or not -->
|
||||
<form method="POST" action="{!! route('postdiagno') !!}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h4 class="box-title">{{Lang::get('lang.email_diagnostic')}}</h4>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</b><br/>
|
||||
<li class="error-message-padding">{{Session::get('fails')}}</li>
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($errors); ?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('from'))
|
||||
<li class="error-message-padding">{!! $errors->first('from', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('to'))
|
||||
<li class="error-message-padding">{!! $errors->first('to', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('subject'))
|
||||
<li class="error-message-padding">{!! $errors->first('subject', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('message'))
|
||||
<li class="error-message-padding">{!! $errors->first('message', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="row form-group no-padding {!! $errors->has('from') ? 'has-error' : '' !!}">
|
||||
<div class="col-md-2">
|
||||
<label>{!! Lang::get('lang.from') !!} <span class="text-red">*</span> :</label>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{!! $errors->first('fetching_encryption', '<spam class="help-block">:message</spam>') !!}
|
||||
<select name="from" class="form-control" id="from">
|
||||
<option value="">{!! Lang::get('lang.choose_an_email') !!}</option>
|
||||
<optgroup label="{!! Lang::get('lang.email') !!}">
|
||||
@foreach($emails as $email)
|
||||
<?php
|
||||
if ($email->email_address == $email->email_name) {
|
||||
$email1 = $email->email_address;
|
||||
} else {
|
||||
$email1 = $email->email_name . ' ( ' . $email->email_address . ' ) ';
|
||||
}
|
||||
?>
|
||||
<option value="{!! $email->id !!}"> {{ $email1 }} </option>
|
||||
@endforeach
|
||||
</optgroup>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group no-padding {!! $errors->has('to') ? 'has-error' : '' !!}">
|
||||
<div class="col-md-2">
|
||||
<label>{!! Lang::get('lang.to') !!} <span class="text-red">*</span> :</label>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{!! Form::text('to',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group no-padding {!! $errors->has('subject') ? 'has-error' : '' !!}">
|
||||
<div class="col-md-2">
|
||||
<label>{!! Lang::get('lang.subject') !!} <span class="text-red">*</span> :</label>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
{!! Form::text('subject',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group no-padding {!! $errors->has('message') ? 'has-error' : '' !!}">
|
||||
<div class="col-md-2">
|
||||
<label>{!! Lang::get('lang.message') !!} <span class="text-red">*</span> :</label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<textarea name="message" id="message" class="form-control" style="height:200px;"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-2">
|
||||
{!! Form::submit(Lang::get('lang.send'),['class'=>'form-group btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{!! Form::open(['method'=>'post' , 'action'=>'Admin\helpdesk\TemplateController@postDiagno']) !!}
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
|
||||
<h4 class="box-title">{{Lang::get('lang.diagnostics')}}</h4> {!! Form::submit(Lang::get('lang.send'),['class'=>'form-group btn btn-primary pull-right'])!!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<!-- To : define To Address : Text form : Required -->
|
||||
<div class="form-group {{ $errors->has('to') ? 'has-error' : '' }}">
|
||||
{!! Form::label('to',Lang::get('lang.to')) !!}
|
||||
{!! $errors->first('to', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('to',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@stop
|
||||
</form>
|
||||
@stop
|
||||
@@ -28,8 +28,6 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.template_set')}}</h2>
|
||||
@@ -94,9 +92,9 @@ class="active"
|
||||
<th width="100px">{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
<!-- Foreach @var templates as @var template -->
|
||||
|
||||
@foreach($directories as $dir)
|
||||
<?php if ($dir === '.' or $dir === '..' or $dir === 'notifications') continue; ?>
|
||||
<?php //dd($directory); ?>
|
||||
<tr>
|
||||
<!-- Template Name with Link to Edit page along Id -->
|
||||
<td><a href="{{route('template.list',[$dir,$directory])}}"><?php $parts = explode('.',$dir); $names = $parts[0]; $name = str_replace('_', ' ', $names);$name1 = ucfirst($name); echo $name1?></a></td>
|
||||
@@ -133,16 +131,7 @@ if($dir == 'default') {
|
||||
</div> </td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<!-- Set a link to Create Page -->
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
<!-- page script -->
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
@@ -158,7 +147,7 @@ $(function() {
|
||||
});
|
||||
|
||||
</script>
|
||||
</div><!-- /.box -->
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
Reference in New Issue
Block a user