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 @@
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 @@
+
+
+
+
diff --git a/web/forms/ecomerce/catalog/style.css b/web/forms/ecomerce/catalog/style.css
index 0b4deddf..646f4747 100755
--- a/web/forms/ecomerce/catalog/style.css
+++ b/web/forms/ecomerce/catalog/style.css
@@ -57,7 +57,7 @@
vertical-align: middle;
}
-/* Menu */
+/* Right panel */
.right-panel
{
@@ -66,10 +66,24 @@
top: 3.9em;
bottom: 0;
right: 0;
- width: 17em;
+ width: 15em;
background-color: white;
box-shadow: 0 0.2em 0.2em #AAA;
+
+ text-align: center;
+ padding: 1em;
+ overflow: auto;
}
+.right-panel select,
+.right-panel button
+{
+ color: #333;
+ margin: 1em auto;
+ width: 12em;
+ background-color: #EEE;
+ border: 0;
+}
+
button.basket
{
width: 100%;
@@ -241,6 +255,7 @@ td.third-category
max-height: 9em;
display: block;
margin: 0 auto;
+ border-radius: .3em;
}
.item-box > p
{
diff --git a/web/forms/ecomerce/catalog/ui.xml b/web/forms/ecomerce/catalog/ui.xml
index e342ddf6..01213c51 100755
--- a/web/forms/ecomerce/catalog/ui.xml
+++ b/web/forms/ecomerce/catalog/ui.xml
@@ -161,40 +161,108 @@
-
-
-
+
+
+
+
+ Order by
+
+
+ Item
+
+
+ Price
+
+
+ Available
+
+
+ Color
+
+
+ Producer
+
+
+ Size
+
+
+ Category
+
+
+ Origin
+
+
+
+
+ SELECT id, reino, color FROM vn2008.reinos
+ WHERE display != FALSE ORDER BY reino
-
-
-
-
-
-
+
+
+
+ CALL type_list (1)
+
+
+
+
+ SELECT Id_Color, Color
+ FROM vn2008.Colores ORDER BY Color
+
+
+
+
+ SELECT id, Abreviatura, Origen
+ FROM vn2008.Origen ORDER BY Origen
+
+
+
+
+ SELECT 'A1' category UNION SELECT 'A2' UNION SELECT 'B1'
+
+
+
+
+
+ SELECT id, reino, color FROM vn2008.reinos
+ WHERE display != FALSE ORDER BY reino
+
+
+
+
+
+
+
+
+
+ CALL type_list (#realm)
+
+
+
+
+
+
+
+
+
+
+
+
label
{
display: block;
- margin-bottom: 0.5em;
+ margin: 0;
+ margin-top: .5em;
+ margin-bottom: .2em;
+ font-size: .9em;
+ color: #222;
}
.form-group > input[type=text],
.form-group > input[type=password],
+.form-group > input[type=file],
+.form-group > input[type=number],
.form-group > select,
.form-group > textarea
{
diff --git a/web/js/htk/grid.js b/web/js/htk/grid.js
index 63b411cd..d909f0be 100755
--- a/web/js/htk/grid.js
+++ b/web/js/htk/grid.js
@@ -27,7 +27,7 @@ Htk.Grid = new Class
}
,get: function ()
{
- this._model;
+ return this._model;
}
},
emptyMessage:
diff --git a/web/js/htk/image-editor.js b/web/js/htk/image-editor.js
index 69497f6e..ae715b29 100755
--- a/web/js/htk/image-editor.js
+++ b/web/js/htk/image-editor.js
@@ -16,7 +16,7 @@ Htk.ImageEditor = new Class
this.$('max-size').value = 10 /* MB */ * 1048576;
this.$('form').action =
- '//'+ Vn.Config['image_host'] +'/hedera-web/rest.php?action=image'
+ '//'+ Vn.Config['image_host'] +'/rest.php?action=image'
}
,onNameChange: function ()
diff --git a/web/js/vn/vn.js b/web/js/vn/vn.js
index b8a52398..c0a9de91 100755
--- a/web/js/vn/vn.js
+++ b/web/js/vn/vn.js
@@ -301,7 +301,7 @@ var Vn =
if (loaded)
{
if (this.currentCallback)
- includeData.callbacks.push (this.currentCallback);
+ includeData.callbacks.unshift (this.currentCallback);
var includes = this.currentDeps;