Skip to content

Commit

Permalink
[Session] add: objects pictos
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo David committed Aug 19, 2022
1 parent 811c9f4 commit f5a7a5e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
16 changes: 8 additions & 8 deletions core/modules/modDoliMeet.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ public function __construct($db)
$picto = img_picto('', $pictopath, '', 1, 0, 0, '', 'pictoDolimeet');

$this->tabs = array();
$this->tabs[] = array('data' => 'thirdparty:+sessionList:'.$picto.$langs->trans('Meeting').':dolimeet@dolimeet:1:/custom/dolimeet/view/session/session_list.php?fromtype=thirdparty&fromid=__ID__'); // To add a new tab identified by code tabname1
$this->tabs[] = array('data' => 'user:+sessionList:'.$picto.$langs->trans('Meeting').':dolimeet@dolimeet:1:/custom/dolimeet/view/session/session_list.php?fromtype=user&fromid=__ID__'); // To add a new tab identified by code tabname1
$this->tabs[] = array('data' => 'contact:+sessionList:'.$picto.$langs->trans('Meeting').':dolimeet@dolimeet:1:/custom/dolimeet/view/session/session_list.php?fromtype=socpeople&fromid=__ID__'); // To add a new tab identified by code tabname1
$this->tabs[] = array('data' => 'project:+sessionList:'.$picto.$langs->trans('Meeting').':dolimeet@dolimeet:1:/custom/dolimeet/view/session/session_list.php?fromtype=project&fromid=__ID__'); // To add a new tab identified by code tabname1
$this->tabs[] = array('data' => 'contract:+sessionList:'.$picto.$langs->trans('Meeting').':dolimeet@dolimeet:1:/custom/dolimeet/view/session/session_list.php?fromtype=contrat&fromid=__ID__'); // To add a new tab identified by code tabname1
$this->tabs[] = array('data' => 'thirdparty:+sessionList:'.$picto.$langs->trans('DoliMeet').':dolimeet@dolimeet:1:/custom/dolimeet/view/session/session_list.php?fromtype=thirdparty&fromid=__ID__'); // To add a new tab identified by code tabname1
$this->tabs[] = array('data' => 'user:+sessionList:'.$picto.$langs->trans('DoliMeet').':dolimeet@dolimeet:1:/custom/dolimeet/view/session/session_list.php?fromtype=user&fromid=__ID__'); // To add a new tab identified by code tabname1
$this->tabs[] = array('data' => 'contact:+sessionList:'.$picto.$langs->trans('DoliMeet').':dolimeet@dolimeet:1:/custom/dolimeet/view/session/session_list.php?fromtype=socpeople&fromid=__ID__'); // To add a new tab identified by code tabname1
$this->tabs[] = array('data' => 'project:+sessionList:'.$picto.$langs->trans('DoliMeet').':dolimeet@dolimeet:1:/custom/dolimeet/view/session/session_list.php?fromtype=project&fromid=__ID__'); // To add a new tab identified by code tabname1
$this->tabs[] = array('data' => 'contract:+sessionList:'.$picto.$langs->trans('DoliMeet').':dolimeet@dolimeet:1:/custom/dolimeet/view/session/session_list.php?fromtype=contrat&fromid=__ID__'); // To add a new tab identified by code tabname1

// Dictionaries
$this->dictionaries = array();
Expand Down Expand Up @@ -271,7 +271,7 @@ public function __construct($db)
$this->menu[$r++]=array(
'fk_menu'=>'fk_mainmenu=dolimeet,fk_leftmenu=meeting_list', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
'type'=>'left', // This is a Left menu entry
'titre'=> '<i class="fas fa-paper-plane"></i> ' . $langs->trans('MeetingCreate'),
'titre'=> '<i class="fas fa-comments"></i> ' . $langs->trans('MeetingCreate'),
'mainmenu'=>'dolimeet',
'leftmenu'=>'meeting_card',
'url'=>'/dolimeet/view/meeting/meeting_card.php?action=create',
Expand Down Expand Up @@ -313,7 +313,7 @@ public function __construct($db)
$this->menu[$r++]=array(
'fk_menu'=>'fk_mainmenu=dolimeet,fk_leftmenu=trainingsession_list', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
'type'=>'left', // This is a Left menu entry
'titre'=> '<i class="fas fa-paper-plane"></i> ' . $langs->trans('TrainingSessionCreate'),
'titre'=> '<i class="fas fa-people-arrows"></i> ' . $langs->trans('TrainingSessionCreate'),
'mainmenu'=>'dolimeet',
'leftmenu'=>'trainingsession_card',
'url'=>'/dolimeet/view/trainingsession/trainingsession_card.php?action=create',
Expand Down Expand Up @@ -355,7 +355,7 @@ public function __construct($db)
$this->menu[$r++]=array(
'fk_menu'=>'fk_mainmenu=dolimeet,fk_leftmenu=audit_list', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
'type'=>'left', // This is a Left menu entry
'titre'=> '<i class="fas fa-paper-plane"></i> ' . $langs->trans('AuditCreate'),
'titre'=> '<i class="fas fa-tasks"></i> ' . $langs->trans('AuditCreate'),
'mainmenu'=>'dolimeet',
'leftmenu'=>'audit_card',
'url'=>'/dolimeet/view/audit/audit_card.php?action=create',
Expand Down
1 change: 1 addition & 0 deletions core/tpl/session/dolimeet_session_attendants.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@
print '<td class="center">' . $langs->trans("ActionsSignature") . '</td>';
print '<td class="center">' . $langs->trans("Signature") . '</td>';
print '</tr>';

//
// $contacts = fetchAllSocPeople('', '', 0, 0, array('customsql' => "" ));
// $contacts_no_email = array();
Expand Down
2 changes: 0 additions & 2 deletions core/tpl/session/dolimeet_session_list.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,7 @@
if ($object->type !== 'session') {
$newcardbutton = dolGetButtonTitle($langs->trans('New'), '', 'fa fa-plus-circle', dol_buildpath('/dolimeet/view/'. strtolower($object->type) .'/'. strtolower($object->type) .'_card.php', 1).'?action=create'.$fromurl, '', $permissiontoadd);
}
$object->picto ='dolimeet32px@dolimeet';
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'object_'.$object->picto, 0, $newcardbutton, '', $limit, 0, 0, 1);
$object->picto ='dolimeet16px@dolimeet';
// Add code for pre mass action (confirmation or email presend form)
$topicmail = "Send". $object->type ."Ref";
$modelmail = "document";
Expand Down
Binary file added img/object_audit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/object_meeting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/object_trainingsession.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f5a7a5e

Please sign in to comment.