Change reception sound + improve format for accessing datas of contact in template
This commit is contained in:
parent
87301827bd
commit
fdb01ffabc
|
@ -88,7 +88,7 @@ namespace adapters;
|
|||
* @return array : [
|
||||
* bool 'error' => false if no error, true else
|
||||
* ?string 'error_message' => null if no error, else error message
|
||||
* array 'uid' => Uid of the sms created on success
|
||||
* ?string 'uid' => Uid of the sms created on success
|
||||
* ]
|
||||
*/
|
||||
public function send(string $destination, string $text, bool $flash = false);
|
||||
|
|
|
@ -171,7 +171,7 @@ namespace adapters;
|
|||
* @return array : [
|
||||
* bool 'error' => false if no error, true else
|
||||
* ?string 'error_message' => null if no error, else error message
|
||||
* array 'uid' => Uid of the sms created on success
|
||||
* ?string 'uid' => Uid of the sms created on success
|
||||
* ]
|
||||
*/
|
||||
public function send(string $destination, string $text, bool $flash = false)
|
||||
|
|
|
@ -365,6 +365,12 @@ footer img
|
|||
margin-top: 20px;
|
||||
}
|
||||
|
||||
#adapter-datas-fields
|
||||
{
|
||||
padding-top: 15px;
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
/* DATATABLES */
|
||||
.dataTables_paginate
|
||||
{
|
||||
|
@ -375,3 +381,11 @@ footer img
|
|||
{
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
/*
|
||||
* FORMS
|
||||
*/
|
||||
.form-group
|
||||
{
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -335,7 +335,7 @@ namespace controllers\internals;
|
|||
if ((int) ($users_settings[$scheduled['id_user']]['templating'] ?? false))
|
||||
{
|
||||
$contact['datas'] = json_decode($contact['datas'], true);
|
||||
$datas = ['contact' => $contact];
|
||||
$datas = ['contact' => $contact['datas']];
|
||||
$render = $internal_templating->render($scheduled['text'], $datas);
|
||||
|
||||
if (!$render['success'])
|
||||
|
|
|
@ -69,7 +69,7 @@ namespace controllers\publics;
|
|||
$contact['datas'] = json_decode($contact['datas'], true);
|
||||
|
||||
$datas = [
|
||||
'contact' => $contact,
|
||||
'contact' => $contact['datas'],
|
||||
];
|
||||
|
||||
$result = $this->internal_templating->render($template, $datas);
|
||||
|
|
Loading…
Reference in New Issue