mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-02 00:46:44 +01:00
Fix minori
This commit is contained in:
parent
17eaf05824
commit
25596f37f0
@ -12,7 +12,6 @@ class EmailHook extends Manager
|
|||||||
public function execute()
|
public function execute()
|
||||||
{
|
{
|
||||||
$accounts = MailAccount::all();
|
$accounts = MailAccount::all();
|
||||||
|
|
||||||
$diff = date('Y-m-d', strtotime('-4 hours'));
|
$diff = date('Y-m-d', strtotime('-4 hours'));
|
||||||
|
|
||||||
$list = [];
|
$list = [];
|
||||||
@ -50,6 +49,7 @@ class EmailHook extends Manager
|
|||||||
public function prepare()
|
public function prepare()
|
||||||
{
|
{
|
||||||
$yesterday = date('Y-m-d', strtotime('-1 days'));
|
$yesterday = date('Y-m-d', strtotime('-1 days'));
|
||||||
|
$diff = date('Y-m-d', strtotime('-4 hours'));
|
||||||
$user = auth()->getUser();
|
$user = auth()->getUser();
|
||||||
|
|
||||||
$remaining = Mail::whereNull('sent_at')
|
$remaining = Mail::whereNull('sent_at')
|
||||||
@ -61,7 +61,9 @@ class EmailHook extends Manager
|
|||||||
->count();
|
->count();
|
||||||
$current = $total - $remaining;
|
$current = $total - $remaining;
|
||||||
|
|
||||||
$total_remaining = Mail::whereNull('sent_at')->count();
|
$total_remaining = Mail::whereNull('sent_at')
|
||||||
|
->whereDate('failed_at', '<', $diff)
|
||||||
|
->count();
|
||||||
|
|
||||||
$message = !empty($remaining) ? tr('Invio email in corso...') : tr('Invio email completato!');
|
$message = !empty($remaining) ? tr('Invio email in corso...') : tr('Invio email completato!');
|
||||||
|
|
||||||
|
@ -77,9 +77,9 @@ if ($structure->permission == 'rw') {
|
|||||||
<input type="hidden" name="op" value="add_nota">
|
<input type="hidden" name="op" value="add_nota">
|
||||||
<input type="hidden" name="backto" value="record-edit">
|
<input type="hidden" name="backto" value="record-edit">
|
||||||
|
|
||||||
{[ "type": "date", "label": "'.tr('Data di notifica').'", "name": "data_notifica" ]}
|
{[ "type": "date", "label": "'.tr('Data di notifica').'", "name": "data_notifica", "class": "unblockable" ]}
|
||||||
|
|
||||||
{[ "type": "ckeditor", "label": "'.tr('Nuova nota').'", "name": "contenuto", "required": 1]}
|
{[ "type": "ckeditor", "label": "'.tr('Nuova nota').'", "name": "contenuto", "required": 1, "class": "unblockable" ]}
|
||||||
|
|
||||||
<!-- PULSANTI -->
|
<!-- PULSANTI -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user