@@ -1445,8 +1445,12 @@ function setdatefields()
14451445
14461446 print dol_get_fiche_head ();
14471447
1448+ print '<div class="divcreate"> ' ;
14481449 print '<table class="border centpercent nobottom"> ' ;
14491450
1451+ // Title
1452+ print '<tr><td ' .(getDolGlobalString ('AGENDA_USE_EVENT_TYPE ' ) ? ' class="fieldrequired" ' : ' class="fieldrequired titlefieldcreate" ' ).'> ' .$ langs ->trans ("Title " ).'</td><td><input type="text" id="label" name="label" class="soixantepercent" value=" ' .GETPOST ('label ' ).'"></td></tr> ' ;
1453+
14501454 // Type of event
14511455 if (getDolGlobalString ('AGENDA_USE_EVENT_TYPE ' )) {
14521456 print '<tr><td class="titlefieldcreate"><span class="fieldrequired"> ' .$ langs ->trans ("Type " ).'</span></b></td><td> ' ;
@@ -1457,12 +1461,12 @@ function setdatefields()
14571461 print '</td></tr> ' ;
14581462 }
14591463
1460- // Title
1461- print '<tr><td ' .(getDolGlobalString ('AGENDA_USE_EVENT_TYPE ' ) ? '' : ' class="fieldrequired titlefieldcreate" ' ).'> ' .$ langs ->trans ("Title " ).'</td><td><input type="text" id="label" name="label" class="soixantepercent" value=" ' .GETPOST ('label ' ).'"></td></tr> ' ;
1462-
14631464 // Full day
14641465 print '<tr><td><span class="fieldrequired"> ' .$ langs ->trans ("Date " ).'</span></td> ' ;
1465- print '<td class="valignmiddle height30"><input class="valignmiddle" type="checkbox" id="fullday" name="fullday" ' .(GETPOST ('fullday ' ) ? ' checked ' : '' ).'><label for="fullday" class="valignmiddle small"> ' .$ langs ->trans ("EventOnFullDay " ).'</label> ' ;
1466+ print '<td class="valignmiddle height30"> ' ;
1467+ print '<div> ' ;
1468+ print '<input class="valignmiddle" type="checkbox" id="fullday" name="fullday" ' .(GETPOST ('fullday ' ) ? ' checked ' : '' ).'><label for="fullday" class="valignmiddle small"> ' .$ langs ->trans ("EventOnFullDay " ).'</label> ' ;
1469+ print '</div> ' ;
14661470 print '</td></tr> ' ;
14671471
14681472 $ datep = ($ datep ? $ datep : (is_null ($ object ->datep ) ? '' : $ object ->datep ));
@@ -1482,23 +1486,26 @@ function setdatefields()
14821486 // Date start
14831487 print '<tr><td class="nowrap"> ' ;
14841488 print '</td><td> ' ;
1489+ print '<div class="inline-block"> ' ;
14851490 if (GETPOST ("afaire " ) == 1 ) {
14861491 print $ form ->selectDate ($ datep , 'ap ' , 1 , 1 , 0 , "action " , 1 , 2 , 0 , 'fulldaystart ' , '' , '' , '' , 1 , '' , '' , 'tzuserrel ' ); // Empty value not allowed for start date and hours if "todo"
14871492 } else {
14881493 print $ form ->selectDate ($ datep , 'ap ' , 1 , 1 , 1 , "action " , 1 , 2 , 0 , 'fulldaystart ' , '' , '' , '' , 1 , '' , '' , 'tzuserrel ' );
14891494 }
14901495 print ' <span class="hideonsmartphone"> - </span><br class="showonsmartphone"> ' ;
1491- print $ form ->selectDate ($ datef , 'p2 ' , 1 , 1 , 1 , "action " , 1 , 2 , 0 , 'fulldayend ' , '' , '' , '' , 1 , '' , '' , 'tzuserrel ' );
1492- print '</td></tr> ' ;
1496+ print $ form ->selectDate ($ datef , 'p2 ' , 1 , 1 , 1 , "action " , 1 , 0 , 0 , 'fulldayend ' , '' , '' , '' , 1 , '' , '' , 'tzuserrel ' );
1497+ print '</div> ' ;
1498+
1499+ //print '</td></tr>';
14931500
14941501 // Recurring event
14951502 $ userepeatevent = (getDolGlobalInt ('MAIN_DISABLE_RECURRING_EVENTS ' ) ? 0 : 1 );
14961503 if ($ userepeatevent ) {
1497- print '<tr><td></td><td> ' ;
1504+ //print '<tr><td></td><td>';
1505+ print '<div class="clearbothonsmartphone hideonsmartphone inline-block"> </div> ' ;
14981506
14991507 // Repeat
1500- //print ' ';
1501- print '<div class="inline-block small"> ' ;
1508+ print '<div class="inline-block small" data-html="repeat"> ' ;
15021509 print '<span class="opacitymedium"> ' ;
15031510 print img_picto ($ langs ->trans ("Recurrence " ), 'recurring ' , 'style="margin-left: 3px" class="paddingright" ' );
15041511 print '<input type="hidden" name="recurid" value=" ' .(empty ($ object ->recurid ) ? '' : $ object ->recurid ).'"> ' ;
@@ -1522,7 +1529,7 @@ function setdatefields()
15221529 $ selectedrecurrulebyday = (int ) $ reg [1 ];
15231530 }
15241531
1525- print $ form ->selectarray ('recurrulefreq ' , $ arrayrecurrulefreq , $ selectedrecurrulefreq , 0 , 0 , 0 , '' , 0 , 0 , 0 , '' , 'marginrightonly minwidth100 ' );
1532+ print $ form ->selectarray ('recurrulefreq ' , $ arrayrecurrulefreq , $ selectedrecurrulefreq , 0 , 0 , 0 , '' , 0 , 0 , 0 , '' , 'marginrightonly minwidth125 maxwidth150 ' );
15261533 print '</span> ' ;
15271534 // print '<script>console.log("recurrule: " +'.$object->recurrule.')</script>';
15281535 // For recursive event
@@ -1582,22 +1589,29 @@ function init_repeat()
15821589 });
15831590 </script> ' ;
15841591 print '</div> ' ;
1585- print '</td></tr> ' ;
1592+ // print '</td></tr>';
15861593 }
15871594
1588- print '<tr style="height: 10px"><td style="height: 10px;" colspan="2"></td></tr> ' ;
1595+ print '</td></tr> ' ;
1596+
15891597
15901598 // Location
15911599 if (!getDolGlobalString ('AGENDA_DISABLE_LOCATION ' )) {
1592- print '<tr><td> ' .$ langs ->trans ("Location " ).'</td><td> ' ;
1600+ print '<tr><td class="titlefieldcreate" > ' .$ langs ->trans ("Location " ).'</td><td> ' ;
15931601 print img_picto ('' , 'map-marker-alt ' , 'class="pictofixedwidth" ' );
15941602 print '<input type="text" name="location" class="minwidth300 maxwidth150onsmartphone" value=" ' .(GETPOST ('location ' ) ? GETPOST ('location ' ) : $ object ->location ).'"></td></tr> ' ;
15951603 }
15961604
1597- print '<tr style="height: 10px"><td style="height: 10px;" colspan="2"></td></tr> ' ;
1605+ print '</table> ' ;
1606+ print '</div> ' ;
1607+
1608+ print '<br> ' ;
1609+
1610+ print '<div class="divcreate"> ' ;
1611+ print '<table class="border centpercent nobottom"> ' ;
15981612
15991613 // Assigned to user
1600- print '<tr><td class="tdtop nowrap"><span> ' .$ langs ->trans ("ActionAffectedTo " ).'</span></td><td> ' ;
1614+ print '<tr><td class="tdtop nowrap titlefieldcreate "><span> ' .$ langs ->trans ("ActionAffectedTo " ).'</span></td><td> ' ;
16011615 $ listofuserid = [];
16021616 $ listofcontactid = [];
16031617 $ listofotherid = [];
@@ -1665,11 +1679,12 @@ function init_repeat()
16651679 }
16661680
16671681 print '</table> ' ;
1682+ print '</div> ' ;
16681683
16691684
1670- print '<hr> ' ;
1671-
1685+ print '<br> ' ;
16721686
1687+ print '<div class="divcreate"> ' ;
16731688 print '<table class="border centpercent nobottom"> ' ;
16741689
16751690 // Status
@@ -1850,7 +1865,7 @@ function init_repeat()
18501865 }
18511866
18521867 print '</table> ' ;
1853-
1868+ print ' </div> ' ;
18541869
18551870 if ($ enablereminders ) {
18561871 //checkbox create reminder
0 commit comments