Debug notification on events
This commit is contained in:
parent
bfa813e1b0
commit
769a8886b9
@ -1251,12 +1251,12 @@ if ($action == 'create')
|
||||
|
||||
//Reminder Type
|
||||
print '<tr><td class="titlefieldcreate nowrap">'.$langs->trans("ReminderType").'</td><td colspan="3">';
|
||||
print $form->selectarray('selectremindertype', $TRemindTypes);
|
||||
print $form->selectarray('selectremindertype', $TRemindTypes, '', 0, 0, 0, '', 0, 0, 0, '', 'mimnwidth200', 1);
|
||||
print '</td></tr>';
|
||||
|
||||
//Mail Model
|
||||
print '<tr><td class="titlefieldcreate nowrap">'.$langs->trans("EMailTemplates").'</td><td colspan="3">';
|
||||
print $form->selectModelMail('actioncommsend', 'actioncomm_send', 1);
|
||||
print $form->selectModelMail('actioncommsend', 'actioncomm_send', 1, 1);
|
||||
print '</td></tr>';
|
||||
|
||||
|
||||
@ -1719,10 +1719,12 @@ if ($id > 0)
|
||||
$actionCommReminder->typeremind = 'email';
|
||||
}
|
||||
|
||||
print '<tr><td>'.$langs->trans("AddReminder").'</td><td colspan="3"><input type="checkbox" id="addreminder" name="addreminder" '.$checked.'></td></tr>';
|
||||
print '<label for="addreminder">'.$langs->trans("AddReminder").'</label> <input type="checkbox" id="addreminder" name="addreminder" '.$checked.'><br>';
|
||||
|
||||
print '<div class="reminderparameters" '.(empty($checked) ? 'style="display: none;"' : '').'>';
|
||||
|
||||
print '<br>';
|
||||
|
||||
print '<table class="border centpercent">';
|
||||
|
||||
// Reminder
|
||||
@ -1731,9 +1733,8 @@ if ($id > 0)
|
||||
print '</td></tr>';
|
||||
|
||||
// Reminder Type
|
||||
$TRemindTypes = array();
|
||||
print '<tr><td class="titlefieldcreate nowrap">'.$langs->trans("ReminderType").'</td><td colspan="3">';
|
||||
print $form->selectarray('selectremindertype', $TRemindTypes, $actionCommReminder->typeremind);
|
||||
print $form->selectarray('selectremindertype', $TRemindTypes, $actionCommReminder->typeremind, 0, 0, 0, '', 0, 0, 0, '', 'minwidth200', 1);
|
||||
print '</td></tr>';
|
||||
|
||||
$hide = '';
|
||||
@ -1741,7 +1742,7 @@ if ($id > 0)
|
||||
|
||||
// Mail Model
|
||||
print '<tr '.$hide.'><td class="titlefieldcreate nowrap">'.$langs->trans("EMailTemplates").'</td><td colspan="3">';
|
||||
print $form->selectModelMail('actioncommsend', 'actioncomm_send', 1);
|
||||
print $form->selectModelMail('actioncommsend', 'actioncomm_send', 1, 1);
|
||||
print '</td></tr>';
|
||||
|
||||
print '</table>';
|
||||
@ -1767,6 +1768,8 @@ if ($id > 0)
|
||||
|
||||
})';
|
||||
print '</script>'."\n";
|
||||
|
||||
print '</div>'; // End of div for reminderparameters
|
||||
}
|
||||
|
||||
print dol_get_fiche_end();
|
||||
|
||||
@ -8234,12 +8234,13 @@ class Form
|
||||
/**
|
||||
* selectModelMail
|
||||
*
|
||||
* @param string $prefix Prefix
|
||||
* @param string $modelType Model type
|
||||
* @param int $default 1=Show also Default mail template
|
||||
* @return string HTML select string
|
||||
* @param string $prefix Prefix
|
||||
* @param string $modelType Model type
|
||||
* @param int $default 1=Show also Default mail template
|
||||
* @param int $addjscombo Add js combobox
|
||||
* @return string HTML select string
|
||||
*/
|
||||
public function selectModelMail($prefix, $modelType = '', $default = 0)
|
||||
public function selectModelMail($prefix, $modelType = '', $default = 0, $addjscombo = 0)
|
||||
{
|
||||
global $langs, $db, $user;
|
||||
|
||||
@ -8267,6 +8268,8 @@ class Form
|
||||
|
||||
$retstring .= "</select>";
|
||||
|
||||
if ($addjscombo) $retstring .= ajax_combobox('select_'.$prefix.'model_mail');
|
||||
|
||||
return $retstring;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user