diff --git a/app/email_templates/email_template_edit.php b/app/email_templates/email_template_edit.php index 1edb99ad53..d3fc15c844 100644 --- a/app/email_templates/email_template_edit.php +++ b/app/email_templates/email_template_edit.php @@ -169,27 +169,29 @@ $object = new token; $token = $object->create($_SERVER['PHP_SELF']); -//show the header +//include the header $document['title'] = $text['title-email_template']; require_once "resources/header.php"; //show the content - echo "
\n"; - echo "\n"; + echo "\n"; + + echo "
\n"; + echo "
".$text['title-email_template']."
\n"; + echo "
\n"; + echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'style'=>'margin-right: 15px;','link'=>'email_templates.php']); + echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save']]); + echo "
\n"; + echo "
\n"; + echo "
\n"; + + echo "
\n"; echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; echo "\n"; - echo " \n"; - echo " \n"; - echo " "; echo "
".$text['title-email_template']."

\n"; - echo " "; - echo " "; - echo "
\n"; + echo "\n"; echo " ".$text['label-template_language']."\n"; echo "\n"; + echo "\n"; echo " \n"; echo "
\n"; echo $text['description-template_language']."\n"; @@ -312,20 +314,17 @@ echo "
\n"; - if ($action == "update") { - echo " \n"; - } - echo " \n"; - echo " \n"; - echo "
"; - echo "
"; echo "

"; + if ($action == "update") { + echo "\n"; + } + echo "\n"; + + echo ""; + //include the footer require_once "resources/footer.php"; -?> +?> \ No newline at end of file diff --git a/app/email_templates/email_templates.php b/app/email_templates/email_templates.php index 3b2e84632d..d354d80494 100644 --- a/app/email_templates/email_templates.php +++ b/app/email_templates/email_templates.php @@ -198,11 +198,11 @@ //echo th_order_by('domain_name', $text['label-domain'], $order_by, $order, null, null, $param); } echo th_order_by('template_language', $text['label-template_language'], $order_by, $order, null, "class='shrink'", $param); - echo th_order_by('template_category', $text['label-template_category'], $order_by, $order, null, "class='shrink' style='min-width: 15%'", $param); - echo th_order_by('template_subcategory', $text['label-template_subcategory'], $order_by, $order, null, "class='shrink' style='min-width: 15%'", $param); - echo th_order_by('template_subject', $text['label-template_subject'], $order_by, $order, null, "class='hide-sm-dn' style='min-width: 20%'", $param); - echo th_order_by('template_type', $text['label-template_type'], $order_by, $order, null, "class='shrink'", $param); - echo th_order_by('template_enabled', $text['label-template_enabled'], $order_by, $order, null, "class='center' style='min-width: 15%'", $param); + echo th_order_by('template_category', $text['label-template_category'], $order_by, $order, null, "class='pct-15'", $param); + echo th_order_by('template_subcategory', $text['label-template_subcategory'], $order_by, $order, null, "class='pct-15'", $param); + echo th_order_by('template_subject', $text['label-template_subject'], $order_by, $order, null, "class='hide-xs pct-30'", $param); + echo th_order_by('template_type', $text['label-template_type'], $order_by, $order, null, null, $param); + echo th_order_by('template_enabled', $text['label-template_enabled'], $order_by, $order, null, "class='center pct-10'", $param); echo th_order_by('template_description', $text['label-template_description'], $order_by, $order, null, "class='hide-sm-dn'", $param); if (permission_exists('email_template_edit') && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') { echo "  \n"; @@ -235,7 +235,7 @@ echo " ".escape($row['template_language'])." \n"; echo " ".escape($row['template_category'])." \n"; echo " ".escape($row['template_subcategory'])." \n"; - echo " "; + echo " "; if (permission_exists('email_template_edit')) { echo "".escape($row['template_subject']).""; }