mirror of
https://github.com/itflow-org/itflow
synced 2026-03-03 20:34:51 +00:00
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:
@@ -19,11 +19,9 @@
|
|||||||
<span class="input-group-text"><i class="fa fa-fw fa-comment"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-comment"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<select class="form-control select2" name="type">
|
<select class="form-control select2" name="type">
|
||||||
<option>Call</option>
|
<?php foreach ($note_types_array as $note_type => $note_type_icon) { ?>
|
||||||
<option>Email</option>
|
<option><?php echo nullable_htmlentities($note_type); ?></option>
|
||||||
<option>Meeting</option>
|
<?php } ?>
|
||||||
<option>In Person</option>
|
|
||||||
<option>Note</option>
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -645,10 +645,13 @@ if (isset($_GET['contact_id'])) {
|
|||||||
$note_by = nullable_htmlentities($row['user_name']);
|
$note_by = nullable_htmlentities($row['user_name']);
|
||||||
$contact_note_created_at = nullable_htmlentities($row['contact_note_created_at']);
|
$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>
|
<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 $contact_note; ?></td>
|
||||||
<td><?php echo $note_by; ?></td>
|
<td><?php echo $note_by; ?></td>
|
||||||
<td><?php echo $contact_note_created_at; ?></td>
|
<td><?php echo $contact_note_created_at; ?></td>
|
||||||
|
|||||||
@@ -298,3 +298,10 @@ $rack_type_select_array = array(
|
|||||||
"Other"
|
"Other"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$note_types_array = array (
|
||||||
|
'Call'=>'fa-phone-alt',
|
||||||
|
'Email'=>'fa-envelope',
|
||||||
|
'Meeting'=>'fa-handshake',
|
||||||
|
'In Person'=>'fa-people-arrows',
|
||||||
|
'Note'=>'fa-sticky-note'
|
||||||
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user