From 1449555d15916ff7987e68861b587a920463a9b0 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 27 Jul 2016 15:47:23 +0200 Subject: Edit contact languages --- include/contacts-overview.php | 280 +++++++++++++++++++++--------------------- 1 file changed, 142 insertions(+), 138 deletions(-) (limited to 'include/contacts-overview.php') diff --git a/include/contacts-overview.php b/include/contacts-overview.php index cd7fc47..c1f282b 100644 --- a/include/contacts-overview.php +++ b/include/contacts-overview.php @@ -2,17 +2,17 @@ /** * BusinessAdmin: administrative software for small companies * Copyright (C) 2015 Camil Staps (ViviSoft) - * + * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ @@ -21,144 +21,148 @@ require_once('./login.php'); ?>
-
-
Overview
-
- - - - - - - - - - - getId()}' - data-mixer-order-name='{$contact->getName()}'> - - - - - "; - } - if (count($contacts) == 0) { - echo ""; - } - ?> - -
#NameAddressTools
{$contact->getId()} - {$contact->getName()}
- ({$contact->getClient()->getName()}) -
- {$contact->getEmail()}
-
- {$contact->getAddress()}
- " . ($contact->getAddress_2() != '' ? "{$contact->getAddress_2()}
" : "") . " - {$contact->getPostalCode()} - {$contact->getCity()}
- {$contact->getCountry()} -
- - -
There are no contacts in the database. Why not start with creating one, on the right?
-
-
+
+
Overview
+
+ + + + + + + + + + + + getId()}' + data-mixer-order-name='{$contact->getName()}'> + + + + + + "; + } + if (count($contacts) == 0) { + echo ""; + } + ?> + +
#NameAddressLanguageTools
{$contact->getId()} + {$contact->getName()}
+ ({$contact->getClient()->getName()}) +
+ {$contact->getEmail()}
+
+ {$contact->getAddress()}
+ " . ($contact->getAddress_2() != '' ? "{$contact->getAddress_2()}
" : "") . " + {$contact->getPostalCode()} + {$contact->getCity()}
+ {$contact->getCountry()} +
+ {$contact->getLanguage()} + + + +
There are no contacts in the database. Why not start with creating one, on the right?
+
+
-
-
Create new
-
-
-
-
- - -
-
- - -
-
- - -
-
- - -
-
- -
-
- -
-
- -
-
- -
- -
- -
-
+ // Callback for when form submission encountered an error + function newContactError() { + $('#newContact .ajaxify-response') + .addClass('alert-danger') + .show() + .find('.ajaxify-response-text') + .html('An unknown error occurred. Please contact support.'); + + $('#newContact input, #newContact button').prop('disabled', false); + $('#newContact').data('bootstrapValidator').resetForm(); + } + +
+ -- cgit v1.2.3