update 1.0.8.0
Commits for version update
This commit is contained in:
@@ -0,0 +1,242 @@
|
||||
{!! Form::model($emails,['url' => 'post-scheduler', 'method' => 'PATCH']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.cron_settings')}}</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body table-responsive"style="overflow:hidden;">
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
<strong>Whoops!</strong> There were some problems with your input.<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
@if($warn!=="")
|
||||
<div class="alert alert-warning alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!!$warn!!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- 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.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!!Session::get('fails')!!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- <div class="alert alert-dismissable" style="background: #F3F3F3">
|
||||
<i class="fa fa-info-circle"></i> Please set this command in your cron
|
||||
{!! $command !!}
|
||||
</div>-->
|
||||
|
||||
<div class="alert alert-dismissable" style="background: #F3F3F3">
|
||||
<i class="fa fa-info-circle"></i> Please set this command in your cron
|
||||
{!! $shared !!}
|
||||
</div>
|
||||
|
||||
<div class="alert alert-dismissable" style="background: #F3F3F3">
|
||||
<i class="fa fa-info-circle"></i> {!!Lang::get('lang.crone-url-message')!!}
|
||||
<a href="http://ladybirdweb.com/support/show/cron-job-scheduling" style="color:black" target="blank">{!!Lang::get('lang.click')!!}</a> {!!Lang::get('lang.check-cron-set')!!}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="info-box">
|
||||
<!-- Apply any bg-* class to to the icon to color it -->
|
||||
<span class="info-box-icon bg-aqua"><i class="fa fa-cloud-download"></i></span>
|
||||
<div class="info-box-content">
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::label('email_fetching',Lang::get('lang.email_fetch')) !!}<br>
|
||||
{!! Form::checkbox('email_fetching',1,$condition->checkActiveJob()['fetching'],['id'=>'email_fetching']) !!} {{Lang::get('lang.fetch_auto-corn')}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6" id="fetching">
|
||||
{!! Form::select('fetching-commands',$commands,$condition->getConditionValue('fetching')['condition'],['class'=>'form-control','id'=>'fetching-command']) !!}
|
||||
<div id='fetching-daily-at'>
|
||||
{!! Form::text('fetching-dailyAt',$condition->getConditionValue('fetching')['at'],['class'=>'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.info-box-content -->
|
||||
|
||||
</div><!-- /.info-box -->
|
||||
<div class="col-md-6">
|
||||
<div class="info-box">
|
||||
<!-- Apply any bg-* class to to the icon to color it -->
|
||||
<span class="info-box-icon bg-aqua"><i class="fa fa-cloud-upload"></i></span>
|
||||
<div class="info-box-content">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::label('notification_cron',Lang::get('lang.notification-email')) !!}<br>
|
||||
{!! Form::checkbox('notification_cron',1,$condition->checkActiveJob()['notification'],['id'=>'notification_cron']) !!} {{Lang::get('lang.cron_notification')}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6" id="notification">
|
||||
{!! Form::select('notification-commands',$commands,$condition->getConditionValue('notification')['condition'],['class'=>'form-control','id'=>'notification-command']) !!}
|
||||
<div id='notification-daily-at'>
|
||||
{!! Form::text('notification-dailyAt',$condition->getConditionValue('notification')['at'],['class'=>'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="info-box">
|
||||
<!-- Apply any bg-* class to to the icon to color it -->
|
||||
<span class="info-box-icon bg-aqua"><i class="fa fa-check-circle"></i></span>
|
||||
<div class="info-box-content">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::label('condition',Lang::get('lang.auto_close_workflow')) !!}<br>
|
||||
{!! Form::checkbox('condition',1,$condition->checkActiveJob()['work'],['id'=>'auto_close']) !!}
|
||||
{{Lang::get('lang.enable_workflow')}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6" id="workflow">
|
||||
{!! Form::select('work-commands',$commands,$condition->getConditionValue('work')['condition'],['class'=>'form-control','id'=>'workflow-command']) !!}
|
||||
<div id='workflow-daily-at'>
|
||||
{!! Form::text('workflow-dailyAt',$condition->getConditionValue('work')['at'],['class'=>'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</div>
|
||||
<!-- Follow up notification -->
|
||||
|
||||
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var checked = $("#email_fetching").is(':checked');
|
||||
check(checked, 'email_fetching');
|
||||
$("#email_fetching").on('click', function () {
|
||||
checked = $("#email_fetching").is(':checked');
|
||||
check(checked);
|
||||
});
|
||||
var command = $("#fetching-command").val();
|
||||
showDailyAt(command);
|
||||
$("#fetching-command").on('change', function () {
|
||||
command = $("#fetching-command").val();
|
||||
showDailyAt(command);
|
||||
});
|
||||
function check(checked, id) {
|
||||
if (checked) {
|
||||
$("#fetching").show();
|
||||
} else {
|
||||
$("#fetching").hide();
|
||||
}
|
||||
}
|
||||
function showDailyAt(command) {
|
||||
if (command === 'dailyAt') {
|
||||
$("#fetching-daily-at").show();
|
||||
} else {
|
||||
$("#fetching-daily-at").hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
$(document).ready(function () {
|
||||
var checked = $("#notification_cron").is(':checked');
|
||||
check(checked, 'notification_cron');
|
||||
$("#notification_cron").on('click', function () {
|
||||
checked = $("#notification_cron").is(':checked');
|
||||
check(checked);
|
||||
});
|
||||
var command = $("#notification-command").val();
|
||||
showDailyAt(command);
|
||||
$("#notification-command").on('change', function () {
|
||||
command = $("#notification-command").val();
|
||||
showDailyAt(command);
|
||||
});
|
||||
function check(checked, id) {
|
||||
if (checked) {
|
||||
$("#notification").show();
|
||||
} else {
|
||||
$("#notification").hide();
|
||||
}
|
||||
}
|
||||
function showDailyAt(command) {
|
||||
if (command === 'dailyAt') {
|
||||
$("#notification-daily-at").show();
|
||||
} else {
|
||||
$("#notification-daily-at").hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
$(document).ready(function () {
|
||||
var checked = $("#auto_close").is(':checked');
|
||||
check(checked, 'auto_close');
|
||||
$("#auto_close").on('click', function () {
|
||||
checked = $("#auto_close").is(':checked');
|
||||
check(checked);
|
||||
});
|
||||
var command = $("#workflow-command").val();
|
||||
showDailyAt(command);
|
||||
$("#workflow-command").on('change', function () {
|
||||
command = $("#workflow-command").val();
|
||||
showDailyAt(command);
|
||||
});
|
||||
function check(checked, id) {
|
||||
if (checked) {
|
||||
$("#workflow").show();
|
||||
} else {
|
||||
$("#workflow").hide();
|
||||
}
|
||||
}
|
||||
function showDailyAt(command) {
|
||||
if (command == 'dailyAt') {
|
||||
$("#workflow-daily-at").show();
|
||||
} else {
|
||||
$("#workflow-daily-at").hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
//follow up
|
||||
$(document).ready(function () {
|
||||
var checked = $("#notification_cron1").is(':checked');
|
||||
check(checked, 'notification_cron1');
|
||||
$("#notification_cron1").on('click', function () {
|
||||
checked = $("#notification_cron1").is(':checked');
|
||||
check(checked);
|
||||
});
|
||||
var command = $("#notification-command1").val();
|
||||
showDailyAt(command);
|
||||
$("#notification-command1").on('change', function () {
|
||||
command = $("#notification-command1").val();
|
||||
showDailyAt(command);
|
||||
});
|
||||
function check(checked, id) {
|
||||
if (checked) {
|
||||
$("#notification1").show();
|
||||
} else {
|
||||
$("#notification1").hide();
|
||||
}
|
||||
}
|
||||
function showDailyAt(command) {
|
||||
if (command === 'dailyAt') {
|
||||
$("#notification-daily-at1").show();
|
||||
} else {
|
||||
$("#notification-daily-at1").hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
@@ -0,0 +1,128 @@
|
||||
{!! Form::model($emails,['url' => 'post-scheduler', 'method' => 'PATCH']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.cron_settings')}}</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body table-responsive"style="overflow:hidden;">
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
<strong>Whoops!</strong> There were some problems with your input.<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
@if($warn!=="")
|
||||
<div class="alert alert-warning alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!!$warn!!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- 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.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!!Session::get('fails')!!}
|
||||
</div>
|
||||
@endif
|
||||
<div class="alert alert-dismissable" style="background: #F3F3F3">
|
||||
<i class="fa fa-info-circle"></i> {!!Lang::get('lang.crone-url-message')!!}
|
||||
<a href="http://ladybirdweb.com/support/show/cron-job-scheduling" style="color:black" target="blank">{!!Lang::get('lang.click')!!}</a> {!!Lang::get('lang.check-cron-set')!!}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="info-box">
|
||||
<!-- Apply any bg-* class to to the icon to color it -->
|
||||
<span class="info-box-icon bg-aqua"><i class="fa fa-cloud-download"></i></span>
|
||||
<div class="info-box-content">
|
||||
<i class="fa fa-clipboard pull-right" title="{!!Lang::get('lang.click-url-copy')!!}" onclick="copyToClipboard('#p1')"></i>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::label('email_fetching',Lang::get('lang.email_fetch')) !!}<br>
|
||||
{!! Form::checkbox('email_fetching',1,true) !!} {{Lang::get('lang.fetch_auto-corn')}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<em><span class="info-box-text" style="background: #F3F3F3" id='p1'></span></em>
|
||||
<!-- <div class="btn btn-default btn-xs pull-right" onclick="copyToClipboard('#p1')">Copy URL</div> -->
|
||||
</div>
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="info-box">
|
||||
<!-- Apply any bg-* class to to the icon to color it -->
|
||||
<span class="info-box-icon bg-aqua"><i class="fa fa-cloud-upload"></i></span>
|
||||
<div class="info-box-content">
|
||||
<i class="fa fa-clipboard pull-right" title="{!!Lang::get('lang.click-url-copy')!!}" onclick="copyToClipboard('#p2')"></i>
|
||||
<div class="col-md-8">
|
||||
<div class="form-group">
|
||||
{!! Form::label('notification_cron',Lang::get('lang.notification-email')) !!}<br>
|
||||
{!! Form::checkbox('notification_cron',1,true) !!} {{Lang::get('lang.cron_notification')}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<em><span class="info-box-text" style="background: #F3F3F3" id='p2'></span></em>
|
||||
<!-- <div class="btn btn-default btn-xs pull-right" onclick="copyToClipboard('#p1')">Copy URL</div> -->
|
||||
</div>
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="info-box">
|
||||
<!-- Apply any bg-* class to to the icon to color it -->
|
||||
<span class="info-box-icon bg-aqua"><i class="fa fa-check-circle"></i></span>
|
||||
<div class="info-box-content">
|
||||
<i class="fa fa-clipboard pull-right" title="{!!Lang::get('lang.click-url-copy')!!}" onclick="copyToClipboard('#p3')"></i>
|
||||
<div class="col-md-8">
|
||||
<div class="form-group">
|
||||
{!! Form::label('condition',Lang::get('lang.auto_close_workflow')) !!}<br>
|
||||
<input type="checkbox" name="condition" @if($workflow->condition == 1) checked @endif">
|
||||
{{Lang::get('lang.enable_workflow')}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<em><span class="info-box-text" style="background: #F3F3F3" id='p3'></span></em>
|
||||
<!-- <div class="btn btn-default btn-xs pull-right" onclick="copyToClipboard('#p1')">Copy URL</div> -->
|
||||
</div>
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function copyToClipboard(element) {
|
||||
var $temp = $("<input>");
|
||||
$("body").append($temp);
|
||||
$temp.val($(element).text()).select();
|
||||
document.execCommand("copy");
|
||||
$temp.remove();
|
||||
alert('{!!Lang::get("lang.clipboard-copy-message")!!}');
|
||||
}
|
||||
$(document).ready(function() {
|
||||
var path = $(location).attr('href');
|
||||
// alert(path);
|
||||
// var str = path;
|
||||
path = path.replace("job-scheduler", "readmails");
|
||||
path2 = path.replace("readmails", "notification");
|
||||
path3 = path2.replace("notification", "auto-close-tickets")
|
||||
document.getElementById("p1").innerHTML = path;
|
||||
document.getElementById("p2").innerHTML = path2;
|
||||
document.getElementById("p3").innerHTML = path3;
|
||||
})
|
||||
</script>
|
@@ -0,0 +1,37 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('cron')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{{ Lang::get('lang.settings') }}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<!-- open a form -->
|
||||
|
||||
@if($warn!=="")
|
||||
@include('themes.default1.admin.helpdesk.settings.cron.cron-new')
|
||||
@else
|
||||
@include('themes.default1.admin.helpdesk.settings.cron.cron-new')
|
||||
@endif
|
||||
@stop
|
Reference in New Issue
Block a user