diff --git a/deletetemplate.php b/deletetemplate.php new file mode 100644 index 0000000..20a471f --- /dev/null +++ b/deletetemplate.php @@ -0,0 +1,37 @@ + "invalid or unauthorized extension")); + die(); +} + $database = new database; + + $sql = "DELETE from webtexting_message_templates WHERE domain_uuid = :domain_uuid AND email_template_uuid = :template_uuid;"; + $parameters['domain_uuid'] = $domain_uuid; + $parameters['template_uuid'] = $_GET['template_uuid']; + $deleted = $database->select($sql, $parameters, 'all'); + if($deleted){ + message::add("template deleted."); + } else { + message::add("error deleting template.", 'negative'); + } + echo(json_encode($templates)); + return json_encode($templates); +// unset($parameters); +// //do an edit template +// //$domain_uuid; \ No newline at end of file diff --git a/frontend/components/EmailForwardMenu/EmailForwardMenu.vue b/frontend/components/EmailForwardMenu/EmailForwardMenu.vue new file mode 100644 index 0000000..9c28123 --- /dev/null +++ b/frontend/components/EmailForwardMenu/EmailForwardMenu.vue @@ -0,0 +1,67 @@ + + + \ No newline at end of file diff --git a/frontend/components/MenuList/MenuList.vue b/frontend/components/MenuList/MenuList.vue index 6dc7909..2f59788 100644 --- a/frontend/components/MenuList/MenuList.vue +++ b/frontend/components/MenuList/MenuList.vue @@ -33,9 +33,8 @@ export default {
Settings
- - + +
diff --git a/frontend/components/MenuPreview/MenuPreview.vue b/frontend/components/MenuPreview/MenuPreview.vue index 4abda61..f84b034 100644 --- a/frontend/components/MenuPreview/MenuPreview.vue +++ b/frontend/components/MenuPreview/MenuPreview.vue @@ -31,14 +31,9 @@ export default { @@ -108,13 +103,7 @@ export default { color: white; } -.text-center { - margin: 0; - position: relative; - top: 50%; - -ms-transform: translateY(-50%); - transform: translateY(-50%); -} + .activeMenu { color: white; diff --git a/frontend/components/PaginatorButton/PaginatorButton.vue b/frontend/components/PaginatorButton/PaginatorButton.vue index fdede65..629cee8 100644 --- a/frontend/components/PaginatorButton/PaginatorButton.vue +++ b/frontend/components/PaginatorButton/PaginatorButton.vue @@ -6,7 +6,7 @@ export default{ props:{ }, data(){ - return {oldestMessage: state.oldestMessage, + return { morePreviewsAvailable: true} }, methods:{ @@ -32,7 +32,7 @@ export default{