Fixed icon styling and required class (#6185)
* Fixed icon styling and required class * Improved indentation.
This commit is contained in:
parent
5898923e73
commit
1a85403f23
|
|
@ -1217,7 +1217,6 @@ echo " </div>\n";
|
|||
|
||||
echo " </div>\n";
|
||||
|
||||
|
||||
echo " <div class='form_set'>\n";
|
||||
echo " <div class='heading'>\n";
|
||||
echo " <b>".$text['option-other']."</b>\n";
|
||||
|
|
@ -1507,10 +1506,10 @@ if (permission_exists('contact_phone_view')) {
|
|||
echo " <div class='heading' style='position: absolute;'>\n";
|
||||
echo " <b style='float: left;'>".$text['label-phone_numbers']."</b>\n";
|
||||
if ($row['phone_primary'] == "1") {
|
||||
echo " <i class='fas fa-star fa-xs' style='color: ".$_SESSION['theme']['input_background_color']."; float: left; margin-top: 8px; margin-left: 8px;' title=\"".$text['label-primary']."\"></i>\n";
|
||||
echo " <i class='fas fa-star fa-xs' style='color: ".$_SESSION['theme']['body_text_color']."; float: left; margin-top: 7px; margin-left: 8px;' title=\"".$text['label-primary']."\"></i>\n";
|
||||
}
|
||||
if (permission_exists('contact_phone_delete')) {
|
||||
echo " <div class='checkbox' style='margin-left: 8px; margin-top: 4px; float: left;'>\n";
|
||||
echo " <div class='checkbox' style='float: left; margin-top: 3px; margin-left: 8px;'>\n";
|
||||
echo " <input type='checkbox' name='contact_phones[$x][checked]' id='checkbox_".$x."' class='chk_delete checkbox_phones' value='true' onclick=\"edit_delete_action('phones');\">\n";
|
||||
echo " <input type='hidden' name='contact_phones[$x][uuid]' value='".escape($row['contact_phone_uuid'])."' />\n";
|
||||
echo " </div>\n";
|
||||
|
|
@ -1601,7 +1600,7 @@ if (permission_exists('contact_phone_view')) {
|
|||
//echo $text['description-phone_extension']."\n";
|
||||
echo " </div>\n";
|
||||
|
||||
echo " <div class='label vncellreq'>\n";
|
||||
echo " <div class='label required'>\n";
|
||||
echo " ".$text['label-phone_number']."\n";
|
||||
echo " </div>\n";
|
||||
echo " <div class='field no-wrap'>\n";
|
||||
|
|
@ -1678,21 +1677,20 @@ if (permission_exists('contact_address_view')) {
|
|||
echo " <div class='heading'>\n";
|
||||
echo " <b style='float: left;'>".$text['label-addresses']."</b>\n";
|
||||
if ($row['address_primary'] == "1") {
|
||||
echo " <i class='fas fa-star fa-xs' style='color: ".$_SESSION['theme']['input_background_color']."; float: left; margin-top: 8px; margin-left: 8px;' title=\"".$text['label-primary']."\"></i>\n";
|
||||
echo " <i class='fas fa-star fa-xs' style='color: ".$_SESSION['theme']['body_text_color']."; float: left; margin-top: 7px; margin-left: 8px;' title=\"".$text['label-primary']."\"></i>\n";
|
||||
}
|
||||
if (permission_exists('contact_address_delete')) {
|
||||
echo " <div class='checkbox' style='margin-left: 8px; margin-top: 4px; float: left;'>\n";
|
||||
echo " <div class='checkbox' style='float: left; margin-top: 3px; margin-left: 8px;'>\n";
|
||||
echo " <input type='checkbox' name='contact_addresses[$x][checked]' id='checkbox_".$x."' class='chk_delete checkbox_addresses' value='true' onclick=\"edit_delete_action('addresses');\">\n";
|
||||
echo " <input type='hidden' name='contact_addresses[$x][uuid]' value='".escape($row['contact_address_uuid'])."' />\n";
|
||||
echo " </div>\n";
|
||||
}
|
||||
echo " <div class='button no-link' style='margin-left: 8px; margin-top: 2px; float: left;'>\n";
|
||||
echo " <div class='button no-link' style='float: left; margin-top: 1px; margin-left: 8px;'>\n";
|
||||
$map_query = $row['address_street']." ".$row['address_extended'].", ".$row['address_locality'].", ".$row['address_region'].", ".$row['address_region'].", ".$row['address_postal_code'];
|
||||
echo " <a href=\"http://maps.google.com/maps?q=".urlencode($map_query)."&hl=en\" target=\"_blank\">";
|
||||
echo " <img src='resources/images/icon_gmaps.png' style='width: 17px; height: 17px;' alt='".$text['label-google_map']."' title='".$text['label-google_map']."'>";
|
||||
echo " </a>\n";
|
||||
echo " </div>\n";
|
||||
|
||||
echo " </div>\n";
|
||||
echo " <div style='clear: both;'></div>\n";
|
||||
|
||||
|
|
@ -1808,7 +1806,7 @@ if (permission_exists('contact_address_view')) {
|
|||
echo " </select>\n";
|
||||
echo " </div>\n";
|
||||
|
||||
echo " <div class='label vncellreq'>\n";
|
||||
echo " <div class='label required'>\n";
|
||||
echo " ".$text['label-address_address']."\n";
|
||||
echo " </div>\n";
|
||||
echo " <div class='field no-wrap'>\n";
|
||||
|
|
@ -1922,10 +1920,10 @@ if (permission_exists('contact_email_view')) {
|
|||
echo " <div class='heading'>\n";
|
||||
echo " <b style='float: left;'>".$text['label-emails']."</b>\n";
|
||||
if ($row['email_primary'] == "1") {
|
||||
echo " <i class='fas fa-star fa-xs' style='color: ".$_SESSION['theme']['input_background_color']."; float: left; margin-top: 8px; margin-left: 8px;' title=\"".$text['label-primary']."\"></i>\n";
|
||||
echo " <i class='fas fa-star fa-xs' style='color: ".$_SESSION['theme']['body_text_color']."; float: left; margin-top: 7px; margin-left: 8px;' title=\"".$text['label-primary']."\"></i>\n";
|
||||
}
|
||||
if (permission_exists('contact_email_delete')) {
|
||||
echo " <div class='checkbox' style='margin-left: 8px; margin-top: 4px; float: left;'>\n";
|
||||
echo " <div class='checkbox' style='float: left; margin-top: 3px; margin-left: 8px;'>\n";
|
||||
echo " <input type='checkbox' name='contact_emails[$x][checked]' id='checkbox_".$x."' class='chk_delete checkbox_emails' value='true' onclick=\"edit_delete_action('emails');\">\n";
|
||||
echo " <input type='hidden' name='contact_emails[$x][uuid]' value='".escape($row['contact_email_uuid'])."' />\n";
|
||||
echo " </div>\n";
|
||||
|
|
@ -1944,7 +1942,7 @@ if (permission_exists('contact_email_view')) {
|
|||
echo " <input class='formfld' type='text' name='contact_emails[$x][email_label]' placeholder='".escape($text['label-email_label'])."' maxlength='255' value=\"".escape($row["email_label"])."\">\n";
|
||||
echo " </div>\n";
|
||||
|
||||
echo " <div class='label vncellreq'>\n";
|
||||
echo " <div class='label required'>\n";
|
||||
echo " ".$text['label-email_address']."\n";
|
||||
echo " </div>\n";
|
||||
echo " <div class='field no-wrap'>\n";
|
||||
|
|
@ -2009,10 +2007,10 @@ if (permission_exists('contact_url_view')) {
|
|||
echo " <div class='heading'>\n";
|
||||
echo " <b style='float: left;'>".$text['label-contact_url']."</b>\n";
|
||||
if ($row['url_primary'] == "1") {
|
||||
echo " <i class='fas fa-star fa-xs' style='color: ".$_SESSION['theme']['input_background_color']."; float: left; margin-top: 8px; margin-left: 8px;' ' title=\"".$text['label-primary']."\"></i>\n";
|
||||
echo " <i class='fas fa-star fa-xs' style='color: ".$_SESSION['theme']['body_text_color']."; float: left; margin-top: 7px; margin-left: 8px;' title=\"".$text['label-primary']."\"></i>\n";
|
||||
}
|
||||
if (permission_exists('contact_url_delete')) {
|
||||
echo " <div class='checkbox' style='margin-left: 8px; margin-top: 4px; float: left;'>\n";
|
||||
echo " <div class='checkbox' style='float: left; margin-top: 3px; margin-left: 8px;'>\n";
|
||||
echo " <input type='checkbox' name='contact_urls[$x][checked]' id='checkbox_".$x."' class='chk_delete checkbox_urls' value='true' onclick=\"edit_delete_action('urls');\">\n";
|
||||
echo " <input type='hidden' name='contact_urls[$x][uuid]' value='".escape($row['contact_url_uuid'])."' />\n";
|
||||
echo " </div>\n";
|
||||
|
|
@ -2058,10 +2056,11 @@ if (permission_exists('contact_url_view')) {
|
|||
//echo " <input type='button' id='btn_toggle_label' class='btn' alt='".$text['button-back']."' value='◁' onclick=\"toggle_custom('url_label');\">\n";
|
||||
echo " </div>\n";
|
||||
|
||||
echo " <div class='label vncellreq'>\n";
|
||||
echo " <div class='label required'>\n";
|
||||
echo " ".$text['label-url_address']."\n";
|
||||
echo " </div>\n";
|
||||
echo " <div class='field no-wrap'>\n";
|
||||
|
||||
echo " <input class='formfld' type='text' name='contact_urls[$x][url_address]' placeholder='http://...' maxlength='255' value=\"".escape($row["url_address"])."\">\n";
|
||||
echo " </div>\n";
|
||||
|
||||
|
|
@ -2114,6 +2113,7 @@ if (permission_exists('contact_relation_view')) {
|
|||
|
||||
$x = 0;
|
||||
foreach($contact_relations as $row) {
|
||||
|
||||
$sql = "select contact_uuid, contact_organization, contact_name_given, contact_name_family from v_contacts ";
|
||||
$sql .= "where domain_uuid = :domain_uuid ";
|
||||
$sql .= "and contact_uuid <> :contact_uuid ";
|
||||
|
|
@ -2125,11 +2125,9 @@ if (permission_exists('contact_relation_view')) {
|
|||
|
||||
echo " <div class='form_set'>\n";
|
||||
echo " <div class='heading'>\n";
|
||||
echo " <b style='float: left;'>\n";
|
||||
echo " ".$text['label-contact_relation_label']."\n";
|
||||
echo " </b>\n";
|
||||
echo " <b style='float: left;'>".$text['label-contact_relation_label']."</b>\n";
|
||||
if (permission_exists('contact_relation_delete')) {
|
||||
echo " <div class='checkbox' style='margin-left: 8px; margin-top: 4px; float: left;'>\n";
|
||||
echo " <div class='checkbox' style='float: left; margin-top: 3px; margin-left: 8px;'>\n";
|
||||
echo " <input type='checkbox' name='contact_relations[$x][checked]' id='checkbox_".$x."' class='chk_delete checkbox_relations' value='true' onclick=\"edit_delete_action('relations');\">\n";
|
||||
echo " <input type='hidden' name='contact_relations[$x][uuid]' value='".escape($row['contact_relation_uuid'])."' />\n";
|
||||
echo " <input type='hidden' name='contact_relations[$x][contact_relation_uuid]' value='".escape($row['contact_relation_uuid'])."' />\n";
|
||||
|
|
@ -2139,11 +2137,12 @@ if (permission_exists('contact_relation_view')) {
|
|||
echo " </div>\n";
|
||||
echo " <div style='clear: both;'></div>\n";
|
||||
|
||||
echo " <div class='label vncellreq'>\n";
|
||||
echo " <div class='label required'>\n";
|
||||
echo " ".$text['label-contact_relation_label']."\n";
|
||||
echo " </div>\n";
|
||||
echo " <div class='field no-wrap'>\n";
|
||||
|
||||
|
||||
//if there are no custom labels add defaults
|
||||
if (is_array($_SESSION["contact"]["relation_label"])) {
|
||||
$relation_labels = $_SESSION["contact"]["url_label"];
|
||||
|
|
@ -2171,8 +2170,7 @@ if (permission_exists('contact_relation_view')) {
|
|||
//echo $text['description-relation_label']."\n";
|
||||
echo " </div>\n";
|
||||
|
||||
|
||||
echo " <div class='label vncellreq'>\n";
|
||||
echo " <div class='label required'>\n";
|
||||
echo " ".$text['label-contact_relation_contact']."\n";
|
||||
echo " </div>\n";
|
||||
echo " <div class='field no-wrap'>\n";
|
||||
|
|
@ -2216,7 +2214,7 @@ if (permission_exists('contact_setting_view')) {
|
|||
echo " <div class='heading'>\n";
|
||||
echo " <b style='float: left;'>".$text['label-contact_settings']."</b>\n";
|
||||
if (permission_exists('contact_setting_delete')) {
|
||||
echo " <div class='checkbox' style='margin-left: 8px; margin-top: 4px; float: left;'>\n";
|
||||
echo " <div class='checkbox' style='float: left; margin-top: 3px; margin-left: 8px;'>\n";
|
||||
echo " <input type='checkbox' name='contact_settings[$x][checked]' id='checkbox_".$x."' class='chk_delete checkbox_settings' value='true' onclick=\"edit_delete_action('settings');\">\n";
|
||||
echo " <input type='hidden' name='contact_settings[$x][uuid]' value='".escape($row['contact_setting_uuid'])."' />\n";
|
||||
echo " </div>\n";
|
||||
|
|
@ -2228,21 +2226,21 @@ if (permission_exists('contact_setting_view')) {
|
|||
echo " <input type='hidden' name='contact_settings[$x][contact_uuid]' value=\"".escape($row["contact_uuid"])."\">\n";
|
||||
echo " <input type='hidden' name='contact_settings[$x][contact_setting_uuid]' value=\"".escape($row["contact_setting_uuid"])."\">\n";
|
||||
|
||||
echo " <div class='label vncellreq'>\n";
|
||||
echo " <div class='label required'>\n";
|
||||
echo " ".$text['label-contact_setting_category']."\n";
|
||||
echo " </div>\n";
|
||||
echo " <div class='field no-wrap'>\n";
|
||||
echo " <input class='formfld' type='text' name='contact_settings[$x][contact_setting_category]' placeholder='' maxlength='255' value=\"".escape($row["contact_setting_category"])."\">\n";
|
||||
echo " </div>\n";
|
||||
|
||||
echo " <div class='label vncellreq'>\n";
|
||||
echo " <div class='label required'>\n";
|
||||
echo " ".$text['label-contact_setting_subcategory']."\n";
|
||||
echo " </div>\n";
|
||||
echo " <div class='field no-wrap'>\n";
|
||||
echo " <input class='formfld' type='text' name='contact_settings[$x][contact_setting_subcategory]' placeholder='' maxlength='255' value=\"".escape($row["contact_setting_subcategory"])."\">\n";
|
||||
echo " </div>\n";
|
||||
|
||||
echo " <div class='label vncellreq'>\n";
|
||||
echo " <div class='label required'>\n";
|
||||
echo " ".$text['label-name']."\n";
|
||||
echo " </div>\n";
|
||||
echo " <div class='field no-wrap'>\n";
|
||||
|
|
@ -2279,7 +2277,7 @@ if (permission_exists('contact_setting_view')) {
|
|||
echo " </select>\n";
|
||||
echo " </div>\n";
|
||||
|
||||
echo " <div class='label vncellreq'>\n";
|
||||
echo " <div class='label required'>\n";
|
||||
echo " ".$text['label-enabled']."\n";
|
||||
echo " </div>\n";
|
||||
echo " <div class='field no-wrap'>\n";
|
||||
|
|
@ -2316,9 +2314,6 @@ if (permission_exists('contact_setting_view')) {
|
|||
echo " <input type='checkbox' name='contact_settings[".$x."][checked]' value='true' class='chk_delete checkbox_details' onclick=\"checkbox_on_change(this);\">\n";
|
||||
echo " </div>\n";
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
echo " <div class='label empty_row' style='grid-row: 9 / span 99;'>\n";
|
||||
|
|
@ -2341,10 +2336,10 @@ if (permission_exists('contact_attachment_view')) {
|
|||
echo " <div class='heading'>\n";
|
||||
echo " <b style='float: left;'>".$text['label-attachments']."</b>\n";
|
||||
if ($row['attachment_primary'] == "1") {
|
||||
echo " <i class='fas fa-star fa-xs' style='color: ".$_SESSION['theme']['input_background_color']."; float: left; margin-top: 8px; margin-left: 8px;' ' title=\"".$text['label-primary']."\"></i>\n";
|
||||
echo " <i class='fas fa-star fa-xs' style='color: ".$_SESSION['theme']['body_text_color']."; float: left; margin-top: 7px; margin-left: 8px;' title=\"".$text['label-primary']."\"></i>\n";
|
||||
}
|
||||
if (permission_exists('contact_attachment_delete')) {
|
||||
echo " <div class='checkbox' style='margin-left: 8px; margin-top: 4px; float: left;'>\n";
|
||||
echo " <div class='checkbox' style='float: left; margin-top: 3px; margin-left: 8px;'>\n";
|
||||
echo " <input type='checkbox' name='contact_attachments[$x][checked]' id='checkbox_".$x."' class='chk_delete checkbox_attachments' value='true' onclick=\"edit_delete_action('attachments');\">\n";
|
||||
echo " <input type='hidden' name='contact_attachments[$x][uuid]' value='".escape($row['contact_attachment_uuid'])."' />\n";
|
||||
echo " <input type='hidden' name='contact_attachments[$x][domain_uuid]' value=\"".escape($row["domain_uuid"])."\">\n";
|
||||
|
|
@ -2382,7 +2377,7 @@ if (permission_exists('contact_attachment_view')) {
|
|||
echo " <div class='label'>\n";
|
||||
echo " ".$text['label-attachment']."\n";
|
||||
echo " </div>\n";
|
||||
echo " <div class='field no-wrap' width='70%' class='vtable' align='left'>\n";
|
||||
echo " <div class='field no-wrap'>\n";
|
||||
$attachment_type = strtolower(pathinfo($row['attachment_filename'], PATHINFO_EXTENSION));
|
||||
//if ($action == 'update') {
|
||||
echo "<input type='hidden' name='attachment_filename' value=\"".escape($row['attachment_filename'])."\">\n";
|
||||
|
|
@ -2424,7 +2419,7 @@ if (permission_exists('contact_attachment_view')) {
|
|||
echo " </select>\n";
|
||||
echo " </div>\n";
|
||||
|
||||
echo " <div class='label vncellreq'>\n";
|
||||
echo " <div class='label required'>\n";
|
||||
echo " ".$text['label-description']."\n";
|
||||
echo " </div>\n";
|
||||
echo " <div class='field no-wrap'>\n";
|
||||
|
|
@ -2449,7 +2444,7 @@ if (permission_exists('contact_time_view')) {
|
|||
echo " <div class='heading'>\n";
|
||||
echo " <b style='float: left;'>".$text['header_contact_times']."</b>\n";
|
||||
if (permission_exists('contact_time_delete')) {
|
||||
echo " <div class='checkbox' style='margin-left: 8px; margin-top: 4px; float: left;'>\n";
|
||||
echo " <div class='checkbox' style='float: left; margin-top: 3px; margin-left: 8px;'>\n";
|
||||
echo " <input type='checkbox' name='contact_times[$x][checked]' id='checkbox_".$x."' class='chk_delete checkbox_times' value='true' onclick=\"edit_delete_action('times');\">\n";
|
||||
echo " <input type='hidden' name='contact_times[$x][uuid]' value='".escape($row['contact_time_uuid'])."' />\n";
|
||||
echo " <input type='hidden' name='contact_times[$x][domain_uuid]' value=\"".escape($row["domain_uuid"])."\">\n";
|
||||
|
|
@ -2460,7 +2455,7 @@ if (permission_exists('contact_time_view')) {
|
|||
echo " </div>\n";
|
||||
echo " <div style='clear: both;'></div>\n";
|
||||
|
||||
echo " <div class='label vncellreq'>\n";
|
||||
echo " <div class='label required'>\n";
|
||||
echo " ".$text['label-time_start']."\n";
|
||||
echo " </div>\n";
|
||||
echo " <div class='field no-wrap'>\n";
|
||||
|
|
@ -2507,7 +2502,7 @@ if (permission_exists('contact_note_view')) {
|
|||
echo " <div class='heading'>\n";
|
||||
echo " <b style='float: left;'>".$text['label-contact_notes']."</b>\n";
|
||||
if (permission_exists('contact_note_delete')) {
|
||||
echo " <div class='checkbox' style='margin-left: 8px; margin-top: 4px; float: left;'>\n";
|
||||
echo " <div class='checkbox' style='float: left; margin-top: 3px; margin-left: 8px;'>\n";
|
||||
echo " <input type='checkbox' name='contact_notes[$x][checked]' id='checkbox_".$x."' class='chk_delete checkbox_notes' value='true' onclick=\"edit_delete_action('notes');\">\n";
|
||||
echo " <input type='hidden' name='contact_notes[$x][uuid]' value='".escape($row['contact_note_uuid'])."' />\n";
|
||||
echo " <input type='hidden' name='contact_notes[$x][domain_uuid]' value=\"".escape($row["domain_uuid"])."\">\n";
|
||||
|
|
@ -2518,7 +2513,7 @@ if (permission_exists('contact_note_view')) {
|
|||
echo " </div>\n";
|
||||
echo " <div style='clear: both;'></div>\n";
|
||||
|
||||
echo " <div class='label vncellreq'>\n";
|
||||
echo " <div class='label required'>\n";
|
||||
echo " ".$text['label-contact_note']."\n";
|
||||
echo " </div>\n";
|
||||
echo " <div class='field no-wrap' style='float: left;'>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue