+
-
- Date
-
-
Shelf
- SELECT id, name FROM shelf
+
+ SELECT id, name FROM shelf
+
diff --git a/web/forms/admin/users/style.css b/web/forms/admin/users/style.css
index d4dd41d4..5dc8d8c8 100755
--- a/web/forms/admin/users/style.css
+++ b/web/forms/admin/users/style.css
@@ -1,15 +1,35 @@
.users
{
padding: 1em;
- min-width: 35em;
}
.users .box
{
- max-width: 50em;
+ max-width: 30em;
margin: 0 auto;
}
-.users tbody tr
+.users-box
{
- height: 3.4em;
+ padding: 1em;
+ border-bottom: 1px solid #DDD;
+}
+.users-box > button
+{
+ float: right;
+ margin: 0;
+}
+.users-box > p
+{
+ margin: .2em 0;
+}
+.users-box > p.important
+{
+ font-size: 1.2em;
+}
+
+/* Topbar */
+
+.action-bar .htk-search-entry
+{
+ margin: .8em .6em;
}
diff --git a/web/forms/admin/users/ui.xml b/web/forms/admin/users/ui.xml
index 96b2bb4c..ac6e69f6 100755
--- a/web/forms/admin/users/ui.xml
+++ b/web/forms/admin/users/ui.xml
@@ -1,26 +1,20 @@
+
+
+
+
+
+
UserManagement
+
+
+
+
diff --git a/web/forms/admin/users/users.js b/web/forms/admin/users/users.js
index c60d290f..e04f0b3f 100755
--- a/web/forms/admin/users/users.js
+++ b/web/forms/admin/users/users.js
@@ -1,26 +1,23 @@
Vn.Users = new Class
({
- Extends: Vn.Module
+ Extends: Vn.Form
- ,onChangeUserClick: function (column, value)
- {
- var batch = new Sql.Batch ();
- batch.addValue ('user', value);
-
- var query = 'UPDATE user_session_view SET user_id = #user';
- this.conn.execQuery (query, this.userChanged.bind (this), batch);
- }
-
- ,onAccessLogClick: function (column, value)
+ ,onAccessLogClick: function (button, form)
{
this.hash.set ({
'form': 'admin/access-log'
- ,'user': value
+ ,'user': form.get ('id')
});
}
+
+ ,onChangeUserClick: function (button, form)
+ {
+ this.gui.supplantUser (form.get ('id'),
+ this.onUserSupplant.bind (this));
+ }
- ,userChanged: function ()
+ ,onUserSupplant: function (userName)
{
this.hash.set ({'form': 'ecomerce/orders'});
}
diff --git a/web/forms/admin/visits/style.css b/web/forms/admin/visits/style.css
index a93e51ba..4ccdc136 100755
--- a/web/forms/admin/visits/style.css
+++ b/web/forms/admin/visits/style.css
@@ -1,18 +1,46 @@
.visits
{
padding: 1em;
- min-width: 50em;
}
.visits .box
{
- max-width: 80em;
+ max-width: 25em;
margin: 0 auto;
}
-
-/* Steps */
-
-div.step
+.visits .form
{
- display: none;
+ padding: 1.5em;
+ max-width: 20em;
+}
+.visits .summary
+{
+ margin-top: 1em;
+}
+.visits .summary p
+{
+ padding: 1.5em;
+ font-size: 1.4em;
+ text-align: right;
+}
+
+/* List */
+
+.visits .list
+{
+ margin-top: 1em;
+}
+.visits .item
+{
+ display: block;
+ padding: 1em;
+ border-bottom: 1px solid #DDD;
+}
+.visits .item > p
+{
+ margin: .1em 0;
+}
+.visits .item > p.important
+{
+ font-size: 1.2em;
}
diff --git a/web/forms/admin/visits/ui.xml b/web/forms/admin/visits/ui.xml
index 9683a5a2..354aa783 100755
--- a/web/forms/admin/visits/ui.xml
+++ b/web/forms/admin/visits/ui.xml
@@ -1,147 +1,97 @@
+
+
Visits
+
+
+
+
+