diff --git a/web/forms/account/address/style.css b/web/forms/account/address/style.css index f26a2151..d69c3786 100755 --- a/web/forms/account/address/style.css +++ b/web/forms/account/address/style.css @@ -17,15 +17,4 @@ div.form-group { padding: 0.4em; } -.address label -{ - display: block; - margin-bottom: 0.5em; -} -.address input, -.address select -{ - margin: 0; - width: 100%; -} diff --git a/web/forms/account/conf/style.css b/web/forms/account/conf/style.css index 73e95e6e..8ec11b8c 100755 --- a/web/forms/account/conf/style.css +++ b/web/forms/account/conf/style.css @@ -17,17 +17,6 @@ { padding: 0.4em; } -.conf .form-group label -{ - display: block; - margin-bottom: 0.5em; -} -.conf .form-group input[type=text], -.conf .form-group input[type=password] -{ - margin: 0; - width: 100%; -} .conf .form-group input[type=password] { margin-bottom: 0.5em; diff --git a/web/forms/admin/photos/photos.js b/web/forms/admin/photos/photos.js index 9f067aa7..8033f604 100755 --- a/web/forms/admin/photos/photos.js +++ b/web/forms/admin/photos/photos.js @@ -9,7 +9,7 @@ Vn.Photos = new Class this.$('photo-size').value = 10 /* MB */ * 1048576; this.$('photo-id').focus (); this.$('html-form').action = - '//'+ Vn.Config['image_host'] +'/hedera-web/rest.php?action=image'; + '//'+ Vn.Config['image_host'] +'/rest.php?action=image'; } ,onFormSubmit: function () diff --git a/web/forms/admin/photos/style.css b/web/forms/admin/photos/style.css index 1d43878d..b0db23fd 100755 --- a/web/forms/admin/photos/style.css +++ b/web/forms/admin/photos/style.css @@ -12,21 +12,6 @@ margin: 0 auto; max-width: 25em; } -div.form-group -{ - padding: 0.4em; -} -.photos form label -{ - display: block; - margin-bottom: 0.5em; -} -.photos input, -.photos select -{ - margin: 0; - width: 100%; -} .photos iframe { display: none; diff --git a/web/forms/cms/contact/style.css b/web/forms/cms/contact/style.css index 963fd2db..f954bd9a 100755 --- a/web/forms/cms/contact/style.css +++ b/web/forms/cms/contact/style.css @@ -25,21 +25,6 @@ display: block; margin-top: 2em; } -div.form-group -{ - padding: 0.4em; -} -.contact form label -{ - display: block; - margin-bottom: 0.5em; -} -.contact input, -.contact textarea -{ - margin: 0; - width: 100%; -} .contact textarea { height: 5em; diff --git a/web/forms/cms/contact/ui.xml b/web/forms/cms/contact/ui.xml index b12a942a..f14134ec 100755 --- a/web/forms/cms/contact/ui.xml +++ b/web/forms/cms/contact/ui.xml @@ -38,8 +38,8 @@
- Captcha + Captcha

AllFieldsMandatory diff --git a/web/forms/ecomerce/catalog/catalog.js b/web/forms/ecomerce/catalog/catalog.js index 5349b2ac..75f9ff9a 100755 --- a/web/forms/ecomerce/catalog/catalog.js +++ b/web/forms/ecomerce/catalog/catalog.js @@ -1,4 +1,7 @@ +Vn.resource ('forms/ecomerce/catalog/filter-button.xml'); +Vn.define (function () { + Vn.Catalog = new Class ({ Extends: Vn.Module @@ -343,7 +346,83 @@ Vn.Catalog = new Class } }); -Htk.ColumnCheck = new Class +Vn.FilterButton = new Class +({ + Extends: Htk.Widget + ,Tag: 'vn-filter-button' + ,Child: 'model' + ,Properties: + { + model: + { + type: Db.Model + ,set: function (x) + { + this._grid.model = x; + this._model = x; + } + ,get: function () + { + return this._model; + } + }, + text: + { + type: String + ,set: function (x) + { + Vn.Node.setText (this._button, x);; + this._text = x; + } + ,get: function () + { + return this._text; + } + }, + column: + { + type: String + ,set: function (x) + { + this._col.column = x; + } + ,get: function () + { + return this._col.column; + } + }, + } + + ,initialize: function (props) + { + this.parent (props); + this.builderInit ('forms/ecomerce/catalog/filter-button.xml'); + + this._button = this.createElement ('button'); + this._button.className = 'vn-filter-button thin'; + this._button.addEventListener ('click', this._onButtonClick.bind (this)); + + this._grid = new Htk.Grid (); + this._grid.showHeader = false; + + this._col = new Htk.ColumnText (); + this._grid.appendColumn (this._col); + } + + ,_onButtonClick: function () + { + if (!this._model) + return; + + this._model.refresh (); + + var popup = new Htk.Popup (); + popup.setChild (this._grid); + popup.show (this._button); + } +}); + +Vn.ColumnItem = new Class ({ Extends: Htk.Column ,Tag: 'vn-column-item' @@ -370,3 +449,4 @@ Htk.ColumnCheck = new Class } }); +}); diff --git a/web/forms/ecomerce/catalog/filter-button.xml b/web/forms/ecomerce/catalog/filter-button.xml new file mode 100644 index 00000000..e524a102 --- /dev/null +++ b/web/forms/ecomerce/catalog/filter-button.xml @@ -0,0 +1,11 @@ + +