+ {{Vn.Value.format(iter.stamp, _('%a, %e %b %Y at %T'))}} +
++ {{iter.platform}} - {{iter.browser}} {{iter.version}} +
+diff --git a/forms/account/address-list/style.css b/forms/account/address-list/style.css index 2b28eb1f..92b791ba 100644 --- a/forms/account/address-list/style.css +++ b/forms/account/address-list/style.css @@ -1,15 +1,4 @@ -.address-list { - padding: 1em; -} -.address-list .box { - max-width: 420px; -} -.address-list .form { - margin: 0 auto; - max-width: 25em; - padding: 2em; -} .address-list .htk-list .side { padding-right: 16px; } diff --git a/forms/account/address-list/ui.xml b/forms/account/address-list/ui.xml index 03d9f753..9232a038 100644 --- a/forms/account/address-list/ui.xml +++ b/forms/account/address-list/ui.xml @@ -28,7 +28,7 @@ on-click="this.onAddAddressClick()"/>
#{{$.userForm.id}}
{{$.userForm.nickname}}
@@ -30,39 +30,35 @@{{$.userForm.phone}}
- {{Vn.Value.format(iter.stamp, _('%a, %e %b %Y at %T'))}} -
-- {{iter.platform}} - - {{iter.browser}} - {{iter.version}} -
-+ {{Vn.Value.format(iter.stamp, _('%a, %e %b %Y at %T'))}} +
++ {{iter.platform}} - {{iter.browser}} {{iter.version}} +
+- {{iter.nickname}} -
-- {{Vn.Value.format(iter.stamp, '%a, %T')}} - - {{Vn.Value.format(iter.lastUpdate, '%T')}} -
-- {{iter.platform}} - {{iter.browser}} {{iter.version}} -
-+ {{iter.nickname}} +
++ {{Vn.Value.format(iter.stamp, '%a, %T')}} - + {{Vn.Value.format(iter.lastUpdate, '%T')}} +
++ {{iter.platform}} - {{iter.browser}} {{iter.version}} +
+- {{iter.longName}} -
- -- {{iter.id}} -
-- {{iter.image}} -
-+ {{iter.longName}} +
+ ++ {{iter.id}} +
++ {{iter.image}} +
++ +
{{iter.description}}
diff --git a/forms/admin/photos/photos.js b/forms/admin/photos/photos.js index 7130d0a0..ecffa24a 100644 --- a/forms/admin/photos/photos.js +++ b/forms/admin/photos/photos.js @@ -6,8 +6,7 @@ var Status = { ,UPLOADED : 3 }; -Hedera.Photos = new Class -({ +Hedera.Photos = new Class({ Extends: Hedera.Form ,filesData: [] ,uploadCount: 0 @@ -54,21 +53,22 @@ Hedera.Photos = new Class statusNode.className = 'status'; li.appendChild(statusNode); - var button = new Htk.Button({ - tip: 'Remove', - icon: 'delete' - }); - button.on('click', this.onFileRemove, this); - li.appendChild(button.node); - var fileData = { li: li, file: file, name: name, statusNode: statusNode }; + + var button = new Htk.Button({ + tip: 'Remove', + icon: 'delete' + }); + button.node.addEventListener('click', + () => this.onFileRemove(fileData)); + li.appendChild(button.node); + this.filesData.push(fileData); - button.value = fileData; this.$('file-list').appendChild(li); this.setImageStatus(fileData, Status.NONE, 'add', _('Pending upload')); @@ -151,8 +151,7 @@ Hedera.Photos = new Class statusNode.title = title ? title : ''; } - ,onFileRemove: function(button) { - var fileData = button.value; + ,onFileRemove: function(fileData) { this.$('file-list').removeChild(fileData.li); for (var i = 0; i < this.filesData.length; i++) diff --git a/forms/admin/photos/style.css b/forms/admin/photos/style.css index 7a2234d6..3167f4ed 100644 --- a/forms/admin/photos/style.css +++ b/forms/admin/photos/style.css @@ -1,12 +1,4 @@ -.photos { - padding: 1em; -} -.photos .box { - max-width: 420px; - padding: 3em; -} - /* Dropzone */ .photos .dropzone { diff --git a/forms/admin/photos/ui.xml b/forms/admin/photos/ui.xml index 4b5910fd..4a4bb83c 100644 --- a/forms/admin/photos/ui.xml +++ b/forms/admin/photos/ui.xml @@ -3,7 +3,7 @@- {{iter.nickname}} -
-- #{{iter.id}} - {{iter.name}} -
-+ {{iter.nickname}} +
++ #{{iter.id}} - {{iter.name}} +
+
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
- |
-
- |
-
- |
-
- |
-
- |
-
- |
-
- |
-
- |
-
- |
-
- |
-
- |
-
- |
-
+
+
+
+
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
- {{Vn.Value.format(iter.total, '%.2d€')}} -
-- {{Vn.Value.format(iter.landed, '%D')}} -
-#{{iter.id}}
-{{iter.nickname}}
-{{iter.agency}}
-+ {{Vn.Value.format(iter.total, '%.2d€')}} +
++ {{Vn.Value.format(iter.landed, '%D')}} +
+#{{iter.id}}
+{{iter.nickname}}
+{{iter.agency}}
+
- #
- {{iter.title}} -
-{{iter.nickname}}
-{{iter.priority}}
-+ {{iter.title}} +
+{{iter.nickname}}
+{{iter.priority}}
+