mirror of https://github.com/itflow-org/itflow
Defined a note_type_array in get_settings to define note type and associated icon incorporated the array into the Selectboxes to create note and the UI display in contact details
This commit is contained in:
parent
276e3c79a0
commit
8599729602
|
|
@ -19,11 +19,9 @@
|
|||
<span class="input-group-text"><i class="fa fa-fw fa-comment"></i></span>
|
||||
</div>
|
||||
<select class="form-control select2" name="type">
|
||||
<option>Call</option>
|
||||
<option>Email</option>
|
||||
<option>Meeting</option>
|
||||
<option>In Person</option>
|
||||
<option>Note</option>
|
||||
<?php foreach ($note_types_array as $note_type => $note_type_icon) { ?>
|
||||
<option><?php echo nullable_htmlentities($note_type); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -645,10 +645,13 @@ if (isset($_GET['contact_id'])) {
|
|||
$note_by = nullable_htmlentities($row['user_name']);
|
||||
$contact_note_created_at = nullable_htmlentities($row['contact_note_created_at']);
|
||||
|
||||
// Get the corresponding icon for the note type
|
||||
$note_type_icon = isset($note_types_array[$contact_note_type]) ? $note_types_array[$contact_note_type] : 'fa-fw fa-sticky-note'; // default icon if not found
|
||||
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td><?php echo $contact_note_type; ?></td>
|
||||
<td><i class="fa fa-fw <?php echo $note_type_icon; ?> mr-2"></i><?php echo $contact_note_type; ?></td>
|
||||
<td><?php echo $contact_note; ?></td>
|
||||
<td><?php echo $note_by; ?></td>
|
||||
<td><?php echo $contact_note_created_at; ?></td>
|
||||
|
|
|
|||
|
|
@ -298,3 +298,10 @@ $rack_type_select_array = array(
|
|||
"Other"
|
||||
);
|
||||
|
||||
$note_types_array = array (
|
||||
'Call'=>'fa-phone-alt',
|
||||
'Email'=>'fa-envelope',
|
||||
'Meeting'=>'fa-handshake',
|
||||
'In Person'=>'fa-people-arrows',
|
||||
'Note'=>'fa-sticky-note'
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue