Look and feel v21

This commit is contained in:
Laurent Destailleur
2024-10-16 17:26:00 +02:00
parent d28ed5339b
commit 4f772f15e0
11 changed files with 155 additions and 111 deletions

View File

@@ -273,7 +273,7 @@ print '
jQuery(\'.clipboardCPShowOnHover\').hover(
function() {
console.log("We hover a value with a copy paste feature");
$(this).children(".clipboardCPButton, .clipboardCPText").show();
$(this).children(".clipboardCPButton, .clipboardCPText").css("display", "inline-block"); /* better than .show() because the show set the display to "inline" */
},
function() {
console.log("We hover out the value with a copy paste feature");
@@ -306,7 +306,7 @@ print '
succeed = document.execCommand(\'copy\');
console.log("We set the style display back to inline-block");
jqobj.css("display", "inline-block");
jqobj.css("display", "inline-block"); /* better than .show() because the show set the display to "inline" */
} catch(e) {
succeed = false;
}
@@ -315,16 +315,18 @@ print '
window.getSelection().removeAllRanges();
}
/* Show message */
/* TODO Show message into a top left corner or center of screen */
/* Show result - message */
var lastparent = $(this).parent(); /* .parent is clipboardCP */
var lastchild = this.parentNode.lastChild; /* .parentNode is clipboardCP and last child is clipboardCPText */
var tmp = lastchild.innerHTML
if (succeed) {
lastchild.innerHTML = \'<div class="clipboardCPTextDivInside opacitymedium">'.dol_escape_js($langs->trans('CopiedToClipboard')).'</div>\';
$(this).parent().children(".clipboardCPButton").hide();
$(this).parent().children(".clipboardCPTick").css("display", "inline-block"); /* better than .show() because the show set the display to "inline" */
//lastchild.innerHTML = \'<div class="clipboardCPTextDivInside opacitymedium">'.dol_escape_js($langs->trans('CopiedToClipboard')).'</div>\';
} else {
lastchild.innerHTML = \'<div class="clipboardCPTextDivInside opacitymedium">'.dol_escape_js($langs->trans('Error')).'</div>\';
}
setTimeout(() => { lastchild.innerHTML = tmp; }, 1000);
setTimeout(() => { lastchild.innerHTML = tmp; lastparent.children(".clipboardCPTick").hide(); }, 2000);
});
});'."\n";

View File

@@ -6365,13 +6365,13 @@ function load_fiche_titre($title, $morehtmlright = '', $picto = 'generic', $pict
$return .= "\n";
$return .= '<table '.($id ? 'id="'.$id.'" ' : '').'class="centpercent notopnoleftnoright table-fiche-title'.($morecssontable ? ' '.$morecssontable : '').'">'; // margin bottom must be same than into print_barre_list
$return .= '<tr class="titre">';
$return .= '<tr class="toptitle">';
if ($picto) {
$return .= '<td class="nobordernopadding widthpictotitle valignmiddle col-picto">'.img_picto('', $picto, 'class="valignmiddle widthpictotitle pictotitle"', $pictoisfullpath).'</td>';
}
$return .= '<td class="nobordernopadding valignmiddle col-title">';
$return .= '<div class="titre inline-block">';
$return .= $title; // $title is already HTML sanitized content
$return .= '<span class="inline-block valignmiddle">'.$title.'</span>'; // $title is already HTML sanitized content
$return .= '</div>';
$return .= '</td>';
if (dol_strlen($morehtmlcenter)) {
@@ -6439,7 +6439,8 @@ function print_barre_liste($title, $page, $file, $options = '', $sortfield = '',
print "\n";
print "<!-- Begin print_barre_liste -->\n";
print '<table class="centpercent notopnoleftnoright table-fiche-title'.($morecss ? ' '.$morecss : '').'"><tr>'; // margin bottom must be same than into load_fiche_tire
print '<table class="centpercent notopnoleftnoright table-fiche-title'.($morecss ? ' '.$morecss : '').'">';
print '<tr class="toptitle">'; // margin bottom must be same than into load_fiche_tire
// Left
@@ -13547,21 +13548,24 @@ function readfileLowMemory($fullpath_original_file_osencoded, $method = -1)
*/
function showValueWithClipboardCPButton($valuetocopy, $showonlyonhover = 1, $texttoshow = '')
{
/*
global $conf;
if (!empty($conf->dol_no_mouse_hover)) {
$showonlyonhover = 0;
}*/
global $langs;
$tag = 'span'; // Using div (like any style of type 'block') does not work when using the js copy code.
$result = '<span class="clipboardCP'.($showonlyonhover ? ' clipboardCPShowOnHover' : '').'">';
if ($texttoshow === 'none') {
$result = '<span class="clipboardCP'.($showonlyonhover ? ' clipboardCPShowOnHover' : '').'"><'.$tag.' class="clipboardCPValue hidewithsize">'.dol_escape_htmltag($valuetocopy, 1, 1).'</'.$tag.'><span class="clipboardCPValueToPrint"></span><span class="clipboardCPButton far fa-clipboard opacitymedium paddingleft paddingright"></span><span class="clipboardCPText"></span></span>';
$result .= '<'.$tag.' class="clipboardCPValue hidewithsize">'.dol_escape_htmltag($valuetocopy, 1, 1).'</'.$tag.'>';
$result .= '<span class="clipboardCPValueToPrint"></span>';
} elseif ($texttoshow) {
$result = '<span class="clipboardCP'.($showonlyonhover ? ' clipboardCPShowOnHover' : '').'"><'.$tag.' class="clipboardCPValue hidewithsize">'.dol_escape_htmltag($valuetocopy, 1, 1).'</'.$tag.'><span class="clipboardCPValueToPrint">'.dol_escape_htmltag($texttoshow, 1, 1).'</span><span class="clipboardCPButton far fa-clipboard opacitymedium paddingleft paddingright"></span><span class="clipboardCPText"></span></span>';
$result .= '<'.$tag.' class="clipboardCPValue hidewithsize">'.dol_escape_htmltag($valuetocopy, 1, 1).'</'.$tag.'>';
$result .= '<span class="clipboardCPValueToPrint">'.dol_escape_htmltag($texttoshow, 1, 1).'</span>';
} else {
$result = '<span class="clipboardCP'.($showonlyonhover ? ' clipboardCPShowOnHover' : '').'"><'.$tag.' class="clipboardCPValue">'.dol_escape_htmltag($valuetocopy, 1, 1).'</'.$tag.'><span class="clipboardCPButton far fa-clipboard opacitymedium paddingleft paddingright"></span><span class="clipboardCPText"></span></span>';
$result .= '<'.$tag.' class="clipboardCPValue">'.dol_escape_htmltag($valuetocopy, 1, 1).'</'.$tag.'>';
}
$result .= '<span class="clipboardCPButton far fa-clipboard opacitymedium paddingleft pictomodule" title="'.dolPrintHTML($langs->trans("ClickToCopyToClipboard")).'"></span>';
$result .= img_picto('', 'tick', 'class="clipboardCPTick hidden paddingleft pictomodule"');
$result .= '<span class="clipboardCPText"></span>';
$result .= '</span>';
return $result;
}

View File

@@ -883,6 +883,7 @@ toward=toward
Access=Access
SelectAction=Select action
SelectTargetUser=Select target user/employee
ClickToCopyToClipboard=Click to copy to clipboard
HelpCopyToClipboard=Use Ctrl+C to copy to clipboard
SaveUploadedFileWithMask=Save file on server with name "<strong>%s</strong>" (otherwise "%s")
OriginFileName=Original filename

View File

@@ -207,7 +207,6 @@ $thirdpartygraph .= '</div>';
$thirdpartycateggraph = '';
if (isModEnabled('category') && getDolGlobalString('CATEGORY_GRAPHSTATS_ON_THIRDPARTIES')) {
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$elementtype = 'societe';
$thirdpartycateggraph = '<div class="div-table-responsive-no-min">';
$thirdpartycateggraph .= '<table class="noborder nohover centpercent">';
@@ -218,7 +217,7 @@ if (isModEnabled('category') && getDolGlobalString('CATEGORY_GRAPHSTATS_ON_THIRD
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."categorie as c ON cs.fk_categorie = c.rowid";
$sql .= " WHERE c.type = 2";
if (!is_numeric(getDolGlobalString('CATEGORY_GRAPHSTATS_ON_THIRDPARTIES'))) {
$sql .= " AND c.label like '".$db->escape($conf->global->CATEGORY_GRAPHSTATS_ON_THIRDPARTIES)."'";
$sql .= " AND c.label like '".$db->escape(getDolGlobalString('CATEGORY_GRAPHSTATS_ON_THIRDPARTIES'))."'";
}
$sql .= " AND c.entity IN (".getEntity('category').")";
$sql .= " GROUP BY c.label";
@@ -258,7 +257,7 @@ if (isModEnabled('category') && getDolGlobalString('CATEGORY_GRAPHSTATS_ON_THIRD
while ($i < $num) {
$obj = $db->fetch_object($result);
$thirdpartycateggraph .= '<tr class="oddeven"><td>'.$obj->label.'</td><td>'.$obj->nb.'</td></tr>';
$thirdpartycateggraph .= '<tr class="oddeven"><td>'.dolPrintHTML($obj->label).'</td><td>'.$obj->nb.'</td></tr>';
$total += $obj->nb;
$i++;
}
@@ -278,6 +277,7 @@ if (isModEnabled('category') && getDolGlobalString('CATEGORY_GRAPHSTATS_ON_THIRD
/*
* Latest modified third parties
*/
$sql = "SELECT s.rowid, s.nom as name, s.email, s.client, s.fournisseur";
$sql .= ", s.code_client";
$sql .= ", s.code_fournisseur";

View File

@@ -70,6 +70,7 @@ $pagenext = $page + 1;
$now = dol_now();
// Security check
$object = new Societe($db);
$permissiontoadd = $user->hasRight('societe', 'lire');
@@ -79,6 +80,10 @@ $permissiontoadd = $user->hasRight('societe', 'lire');
* Actions
*/
if (GETPOST('cancel', 'alpha')) {
$action = 'list';
}
$parameters = array('id' => $socid);
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) {
@@ -88,10 +93,6 @@ if ($reshook < 0) {
if (empty($reshook)) {
$error = 0;
if (GETPOST('cancel', 'alpha')) {
$action = '';
}
// Add a notification
if ($action == 'add' && $permissiontoadd) {
if (empty($contactid)) {
@@ -101,6 +102,7 @@ if (empty($reshook)) {
if ($actionid <= 0) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Action")), null, 'errors');
$error++;
$action = 'create';
}
if (!$error) {
@@ -124,6 +126,7 @@ if (empty($reshook)) {
$db->commit();
} else {
$db->rollback();
$action = 'create';
}
}
}
@@ -200,8 +203,9 @@ if ($result > 0) {
if ($tmpcheck != 0 && $tmpcheck != -5) {
print ' <span class="error">('.$langs->trans("WrongSupplierCode").')</span>';
}
print '</td></tr>';
print '</td>';
}
print '</tr>'."\n";
/*print '<tr><td class="titlefield">'.$langs->trans("NbOfActiveNotifications").'</td>'; // Notification for this thirdparty
print '<td colspan="3">';
@@ -234,6 +238,16 @@ if ($result > 0) {
print '<br><br>'."\n";
// Add notification form
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.urlencode((string) ($id)).'" method="POST">';
print '<input type="hidden" name="token" value="'.newToken().'">';
print '<input type="hidden" name="page_y" value="">';
if ($action == 'create') {
print '<input type="hidden" name="action" id="action" value="add">';
}
$nbtotalofrecords = '';
// List of notifications enabled for contacts of the thirdparty
@@ -255,15 +269,18 @@ if ($result > 0) {
}
$param = '';
$newcardbutton = '';
$newcardbutton .= dolGetButtonTitle($langs->trans('New'), '', 'fa fa-plus-circle', $_SERVER["PHP_SELF"].'?socid='.$object->id.'&action=create&backtopage='.urlencode($_SERVER['PHP_SELF']), '', $user->hasRight("societe", "creer"));
$titlelist = $langs->trans("ListOfActiveNotifications");
$titlelist = $form->textwithpicto($langs->trans("ListOfActiveNotifications"), $langs->trans("ListOfActiveNotificationsHelp", $langs->transnoentitiesnoconv("Target"), $langs->transnoentitiesnoconv("Event")));
// Add notification form
//print load_fiche_titre($titlelist.' <span class="opacitymedium colorblack paddingleft">('.$num.')</span>', '', '');
$num = $nbtotalofrecords;
print_barre_liste($titlelist, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, (empty($nbtotalofrecords) ? -1 : $nbtotalofrecords), 'email', 0, $newcardbutton, '', $limit, 0, 0, 1);
$limitforsubscription = 0; // We show all subscription of user. Pagination will be reserved for the section of notifications sent.
// List of active notifications
// @phan-suppress-next-line PhanPluginSuspiciousParamPosition, PhanPluginSuspiciousParamOrder
print_barre_liste($titlelist, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, (empty($nbtotalofrecords) ? -1 : $nbtotalofrecords), 'email', 0, $newcardbutton, '', $limitforsubscription, 0, 0, 1);
print '<form action="'.$_SERVER["PHP_SELF"].'?socid='.$socid.'" method="post">';
print '<input type="hidden" name="token" value="'.newToken().'">';
@@ -273,10 +290,10 @@ if ($result > 0) {
// Line with titles
print '<div class="div-table-responsive-no-min">';
print '<table class="centpercent noborder">';
print '<table class="noborder centpercent">';
print '<tr class="liste_titre">';
print_liste_field_titre("Target", $_SERVER["PHP_SELF"], "c.lastname,c.firstname", '', $param, 'width="45%"', $sortfield, $sortorder);
print_liste_field_titre("Action", $_SERVER["PHP_SELF"], "", '', $param, 'width="35%"', $sortfield, $sortorder);
print_liste_field_titre("Event", $_SERVER["PHP_SELF"], "", '', $param, 'width="35%"', $sortfield, $sortorder);
print_liste_field_titre("Type", $_SERVER["PHP_SELF"], "n.type", '', $param, 'width="10%"', $sortfield, $sortorder);
print_liste_field_titre('');
print "</tr>\n";
@@ -307,7 +324,7 @@ if ($result > 0) {
print img_picto('', 'contact', '', 0, 0, 0, '', 'paddingright');
print $form->selectarray("contactid", $newlistofemails, '', 1, 0, 0, '', 0, 0, 0, '', 'minwidth100imp maxwidthonsmartphone');
print '</td>';
print '<td class="nowraponall">';
print '<td class="tdoverflowmax200">';
print img_picto('', 'object_action', '', 0, 0, 0, '', 'paddingright');
print $form->selectarray("actionid", $actions, '', 1, 0, 0, '', 0, 0, 0, '', 'minwidth100imp maxwidthonsmartphone');
print '</td>';
@@ -317,6 +334,7 @@ if ($result > 0) {
print '</td>';
print '<td class="right nowraponall">';
print '<input type="submit" class="button button-add small" value="'.$langs->trans("Add").'">';
print '&nbsp;';
print '<input type="submit" class="button button-cancel small" name="cancel" value="'.$langs->trans("Cancel").'">';
print '</td>';
print '</tr>';
@@ -345,14 +363,14 @@ if ($result > 0) {
print ' &lt;'.$obj->email.'&gt;';
} else {
$langs->load("errors");
print ' '.img_warning().' <span class="warning">'.$langs->trans("ErrorBadEMail", $obj->email).'</span>';
print ' &nbsp; '.img_warning().' <span class="warning">'.$langs->trans("ErrorBadEMail", $obj->email).'</span>';
}
}
print '</td>';
$label = ($langs->trans("Notify_".$obj->code) != "Notify_".$obj->code ? $langs->trans("Notify_".$obj->code) : $obj->label);
print '<td class="tdoverflowmax200" title="'.dol_escape_htmltag($label).'">';
print img_picto('', 'object_action', '', 0, 0, 0, '', 'paddingright').$label;
print img_picto('', 'object_action', '', 0, 0, 0, '', 'pictofixedwidth').$label;
print '</td>';
print '<td>';
if ($obj->type == 'email') {
@@ -431,15 +449,17 @@ if ($result > 0) {
print '<input type="hidden" name="page" value="'.$page.'">';
print '<input type="hidden" name="socid" value="'.$object->id.'">';
$titlelist = $form->textwithpicto($langs->trans("ListOfNotificationsDone"), $langs->trans("ListOfNotificationsDoneHelp"));
// List of active notifications @phan-suppress-next-line PhanPluginSuspiciousParamOrder
print_barre_liste($langs->trans("ListOfNotificationsDone"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, empty($nbtotalofrecords) ? -1 : $nbtotalofrecords, 'email', 0, '', '', $limit);
print_barre_liste($titlelist, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, empty($nbtotalofrecords) ? -1 : $nbtotalofrecords, 'email', 0, '', '', $limit, '');
// Line with titles
print '<div class="div-table-responsive-no-min">';
print '<table class="centpercent noborder">';
print '<tr class="liste_titre">';
print_liste_field_titre("Target", $_SERVER["PHP_SELF"], "c.lastname,c.firstname", '', $param, '', $sortfield, $sortorder);
print_liste_field_titre("Action", $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder);
print_liste_field_titre("Event", $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder);
print_liste_field_titre("Type", $_SERVER["PHP_SELF"], "n.type", '', $param, '', $sortfield, $sortorder);
//print_liste_field_titre("Object",$_SERVER["PHP_SELF"],"",'',$param,'"',$sortfield,$sortorder);
print_liste_field_titre("Date", $_SERVER["PHP_SELF"], "n.daten", '', $param, '', $sortfield, $sortorder, 'right ');

View File

@@ -230,7 +230,7 @@ TITLE BUTTON
text-decoration: none;
position: relative;
/* margin: 0 0 0 8px; */
min-width: 72px;
min-width: 60px;
text-align: center;
color: var(--btncolortext);
border: none;

View File

@@ -105,7 +105,7 @@ button.dropdown-item.global-search-item {
min-width: 160px;
margin: 2px 0 0;
font-size: 14px;
text-align: left;
text-align: <?php echo $left; ?>;
list-style: none;
background-color: #fff;
-webkit-background-clip: padding-box;

View File

@@ -3912,7 +3912,7 @@ a.tabunactive {
}
a.tab:link, a.tab:visited, a.tab:hover, a.tab#active {
font-family: <?php print $fontlist ?>;
padding: 12px 14px 13px;
padding: 12px 14px 10px;
margin: 0em 0.2em;
text-decoration: none;
white-space: nowrap;
@@ -5342,11 +5342,14 @@ div.divphotoref > div > .photowithmargin, div.divphotoref > img.photowithmargin,
opacity: 0.5;
}
table.table-fiche-title tr.toptitle {
height: 60px;
}
div.titre {
font-size: 1.1em;
text-decoration: none;
padding-top: 5px;
padding-bottom: 5px;
/* padding-top: 5px;
padding-bottom: 5px; */
font-weight: 400;
}
div.titre.small {
@@ -5369,9 +5372,11 @@ div.titre {
color: var(--colortexttitlenotab2);
}
/*
table.table-fiche-title .col-title div.titre, .col-center .btnTitle-icon, .col-right .btnTitle-icon {
line-height: 40px;
}
*/
table.table-fiche-title .col-title div.titre > span:not(.print-barre-liste) {
line-height: normal;
}

View File

@@ -317,7 +317,6 @@ table.table-fiche-title tr.titre td.col-right a.btnTitle {
text-decoration: none;
position: relative;
margin: 0 0 0 10px;
min-width: 80px;
text-align: center;
color: var(--btncolortext);
border: none;
@@ -325,6 +324,10 @@ table.table-fiche-title tr.titre td.col-right a.btnTitle {
font-weight: 300;
/* background-color: #fbfbfb; */
}
/* *:not(.paginationafterarrows) > .btnTitle, *:not(.paginationafterarrows) > a.btnTitle { */
.btnTitle, a.btnTitle {
min-width: 60px;
}
a.btnTitle.btnTitleSelected {
border: 1px solid #ccc;

View File

@@ -2449,7 +2449,7 @@ td.showDragHandle {
padding-bottom: 20px;
<?php if (GETPOST('optioncss', 'aZ09') != 'print') { ?>
padding-<?php print $left; ?>: <?php echo $leftmenuwidth + 9; ?>px;
padding-top: 28px;
padding-top: 12px;
<?php } ?>
}
.bodyforlist #id-right {
@@ -2783,7 +2783,6 @@ td.nobordernopadding.widthpictotitle.col-picto {
}
.pictotitle {
margin-<?php echo $right; ?>: 8px;
margin-bottom: 4px;
}
.pictoobjectwidth {
width: 14px;
@@ -3929,7 +3928,7 @@ div.tabs {
height:100%;
}
div.tabsElem {
margin-top: 6px;
margin-top: 12px;
} /* To avoid overlap of tabs when not browser */
div.tabsElem a {
font-weight: normal !important;
@@ -3975,59 +3974,7 @@ div.tabBar table.tableforservicepart2:last-child {
.tableforservicepart1 .tdhrthin {
height: unset;
}
/* Payment Screen : Pointer cursor in the autofill image */
.AutoFillAmount {
cursor:pointer;
}
/* ============================================================================== */
/* Buttons for actions */
/* ============================================================================== */
div.divButAction {
margin-bottom: 1.4em;
}
div.tabsAction {
margin: 20px 0em 20px 0em;
padding: 0em 0em;
text-align: right;
}
div.tabsActionNoBottom {
margin-bottom: 0px;
}
div.tabsAction > a {
margin-bottom: 16px !important;
}
div.popuptabset {
padding: 6px;
background: #fff;
border: 1px solid #888;
}
div.popuptab {
padding-top: 5px;
padding-bottom: 5px;
padding-left: 5px;
padding-right: 5px;
}
a.tabTitle {
color:rgba(0,0,0,.5);
margin-<?php print $right; ?>: 10px;
text-shadow:1px 1px 1px #ffffff;
font-family: <?php print $fontlist ?>;
font-weight: normal;
padding: 4px 6px 2px 6px;
margin: 0px 6px;
text-decoration: none;
white-space: nowrap;
}
.tabTitleText {
display: none;
}
.imgTabTitle {
max-height: 14px;
}
div.tabs div.tabsElem:first-of-type a.tab {
margin-left: 0px !important;
}
@@ -4037,7 +3984,7 @@ a.tabunactive {
}
a.tab:link, a.tab:visited, a.tab:hover, a.tab#active {
font-family: <?php print $fontlist ?>;
padding: 12px 13px 12px;
padding: 10px 13px 10px;
margin: 0em 0.2em;
text-decoration: none;
white-space: nowrap;
@@ -4094,6 +4041,63 @@ span.tabspan {
border-top: 1px solid #D8D8D8;
}
/* Payment Screen : Pointer cursor in the autofill image */
.AutoFillAmount {
cursor:pointer;
}
/* ============================================================================== */
/* Buttons for actions */
/* ============================================================================== */
div.divButAction {
margin-bottom: 1.4em;
}
div.tabsAction {
margin: 20px 0em 20px 0em;
padding: 0em 0em;
text-align: right;
}
div.tabsActionNoBottom {
margin-bottom: 0px;
}
div.tabsAction > a {
margin-bottom: 16px !important;
}
div.popuptabset {
padding: 6px;
background: #fff;
border: 1px solid #888;
}
div.popuptab {
padding-top: 5px;
padding-bottom: 5px;
padding-left: 5px;
padding-right: 5px;
}
a.tabTitle {
color:rgba(0,0,0,.5);
margin-<?php print $right; ?>: 10px;
text-shadow:1px 1px 1px #ffffff;
font-family: <?php print $fontlist ?>;
font-weight: normal;
padding: 4px 6px 2px 6px;
margin: 0px 6px;
text-decoration: none;
white-space: nowrap;
}
.tabTitleText {
display: none;
}
.imgTabTitle {
max-height: 14px;
}
/* ============================================================================== */
/* Buttons for actions */
/* ============================================================================== */
@@ -5344,11 +5348,14 @@ div.divphotoref > div > .photowithmargin, div.divphotoref > img.photowithmargin,
opacity: 0.5;
}
table.table-fiche-title tr.toptitle {
height: 60px;
}
div.titre {
font-size: 14px;
text-decoration: none;
padding-top: 5px;
padding-bottom: 5px;
/*padding-top: 5px;
padding-bottom: 5px;*/
text-transform: uppercase;
/* text-shadow: 1px 1px 2px #FFFFFF; */
}
@@ -5372,10 +5379,11 @@ table.notopnoleftnoright.table-fiche-title {
margin-bottom: 8px;
}
/*
table.table-fiche-title .col-title div.titre, .col-center .btnTitle-icon, .col-right .btnTitle-icon {
line-height: 40px;
}
*/
table.table-fiche-title .col-title div.titre span {
line-height: normal;
}

View File

@@ -90,10 +90,10 @@ if (GETPOST('cancel', 'alpha')) {
$action = 'list';
}
// Add a notification
if ($action == 'add' && $permissiontoadd) {
$error = 0;
// Add a notification
if ($action == 'add' && $permissiontoadd) {
if ($actionid <= 0) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Action")), null, 'errors');
$error++;
@@ -149,6 +149,7 @@ if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/thirdpartynameonly/',
$title = $object->name.' - '.$langs->trans("Notification");
}
$help_url = 'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas';
llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-user page-notify_card');
@@ -205,7 +206,7 @@ if ($result > 0) {
print "\n";
// Help
print '<span class="opacitymedium">';
print '<span class="opacitymedium hideonsmartphone">';
print '<br>'.$langs->trans("NotificationsDesc");
print '<br>'.$langs->trans("NotificationsDescUser").' - '.$langs->trans("YouAreHere");
if (isModEnabled('societe')) {
@@ -267,7 +268,7 @@ if ($result > 0) {
print_liste_field_titre("Event", $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder);
print_liste_field_titre("Type", $_SERVER["PHP_SELF"], "n.type", '', $param, '', $sortfield, $sortorder);
print_liste_field_titre('', '', '');
print '</tr>';
print "</tr>\n";
if ($action == 'create') {
@@ -300,13 +301,13 @@ if ($result > 0) {
print $form->selectarray("typeid", $type);
print '</td>';
print '<td class="nowraponall">';
print '<input type="submit" class="button button-add" value="'.$langs->trans("Add").'">';
print '<input type="submit" class="button button-add small" value="'.$langs->trans("Add").'">';
print '&nbsp;';
print '<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'">';
print '<input type="submit" class="button button-cancel small" name="cancel" value="'.$langs->trans("Cancel").'">';
print '</td>';
print '</tr>';
} else {
print '<tr class="oddeven"><td colspan="4">';
print '<tr class="oddeven"><td colspan="4" class="opacitymedium">';
print $langs->trans("YouMustAssignUserMailFirst");
print '</td></tr>';
}
@@ -334,7 +335,7 @@ if ($result > 0) {
print ' &lt;'.$obj->email.'&gt;';
} else {
$langs->load("errors");
print ' &nbsp; '.img_warning().' '.$langs->trans("ErrorBadEMail", $obj->email);
print ' &nbsp; '.img_warning().' <span class="warning">'.$langs->trans("ErrorBadEMail", $obj->email).'</span>';
}
}
print '</td>';