Skip to content
Snippets Groups Projects
Commit a810f143 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

New: Ajout option pour choisir le mode de syncronisation avec webcalendar.

parent 08699959
Branches
Tags
No related merge requests found
...@@ -257,20 +257,33 @@ if ($_GET["action"] == 'create') ...@@ -257,20 +257,33 @@ if ($_GET["action"] == 'create')
print '</td></tr>'; print '</td></tr>';
// Lien avec calendrier si module activé // Lien avec calendrier si module activé
if ($conf->webcal->enabled) if ($conf->webcal->enabled) {
if ($conf->webcal->syncro != 'never')
{ {
$langs->load("other"); $langs->load("other");
if (! $user->webcal_login)
{
print '<tr><td width="10%">'.$langs->trans("AddCalendarEntry").'</td>'; print '<tr><td width="10%">'.$langs->trans("AddCalendarEntry").'</td>';
if (! $user->webcal_login) {
print '<td><input type="checkbox" disabled name="todo_webcal">'; print '<td><input type="checkbox" disabled name="todo_webcal">';
print ' '.$langs->trans("ErrorWebcalLoginNotDefined","<a href=\"/user/fiche.php?id=".$user->id."\">".$user->login."</a>"); print ' '.$langs->trans("ErrorWebcalLoginNotDefined","<a href=\"/user/fiche.php?id=".$user->id."\">".$user->login."</a>");
print '</td>'; print '</td>';
} else { print '</tr>';
print '<td><input type="checkbox" name="todo_webcal"></td>';
} }
else
{
if ($conf->webcal->syncro == 'always')
{
print '<input type="hidden" name="todo_webcal" value="on">';
}
else
{
print '<tr><td width="10%">'.$langs->trans("AddCalendarEntry").'</td>';
print '<td><input type="checkbox" name="todo_webcal"'.(($conf->webcal->syncro=='always' || $conf->webcal->syncro=='yesbydefault')?' checked':'').'></td>';
print '</tr>'; print '</tr>';
} }
}
}
}
print '<tr><td valign="top">'.$langs->trans("Comment").'</td><td>'; print '<tr><td valign="top">'.$langs->trans("Comment").'</td><td>';
print '<textarea cols="60" rows="6" name="todo_note"></textarea></td></tr>'; print '<textarea cols="60" rows="6" name="todo_note"></textarea></td></tr>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment