diff --git a/web/index.html b/web/index.html
index dc68fd25..f32a88a6 100644
--- a/web/index.html
+++ b/web/index.html
@@ -53,7 +53,6 @@
\
+ FORM: ['
\
\
\
\
@@ -810,10 +810,10 @@ App.Templates.html = {
\
\
\
- \
+ \
\
\
diff --git a/web/js/validators.js b/web/js/validators.js
index 53ad7389..5fdcbf15 100644
--- a/web/js/validators.js
+++ b/web/js/validators.js
@@ -26,7 +26,7 @@ App.Validate.form = function(world, elm)
}
else {
- if ($(field).val().trim() == '') {
+ if ($(field).val().trim() == '' || $(field).val().trim() == '-') {
App.Env.FormError.push($(field).attr('name') + ' is required');
form_valid = false;
}
diff --git a/web/vesta/api/MAIN.class.php b/web/vesta/api/MAIN.class.php
index 7493e701..40de2336 100644
--- a/web/vesta/api/MAIN.class.php
+++ b/web/vesta/api/MAIN.class.php
@@ -71,7 +71,8 @@ class MAIN extends AjaxHandler
'IP' => $this->getIpParams($data_ip),
'DNS' => $this->getDnsParams(),
'DB' => $this->getDbParams($data_db),
- 'USERS' => $this->getUsersParams($data_users)
+ 'USERS' => $this->getUsersParams($data_users),
+ 'totals' => $this->getTotals()
);
return $this->reply(true, $reply);
@@ -81,6 +82,19 @@ class MAIN extends AjaxHandler
//
//
+ public function getTotals($data = array())
+ {
+ return array(
+ 'USER' => array('total' => 7, 'blocked' => 0),
+ 'WEB_DOMAIN' => array('total' => 4, 'blocked' => 0),
+ 'MAIL' => array('total' => 0),
+ 'DB' => array('total' => 4, 'blocked' => 0),
+ 'DNS' => array('total' => 4, 'blocked' => 0),
+ 'IP' => array('total' => 2, 'blocked' => 0),
+ 'CRON' => array('total' => 5, 'blocked' => 0)
+ );
+ }
+
/**
* WEB DOMAIN initial params
*