From 4361c1c9ac783a0004edebab83ca26a8899361df Mon Sep 17 00:00:00 2001 From: Cesar G Date: Sun, 10 Nov 2013 16:38:22 -0800 Subject: [PATCH] [ticket/11915] Move the uploaded attachment list under the attachments tab. PHPBB3-11915 --- .../template/posting_attach_body.html | 43 ++++++++++- .../prosilver/template/posting_editor.html | 30 +------- phpBB/styles/prosilver/theme/colours.css | 10 ++- phpBB/styles/prosilver/theme/plupload.css | 75 +++++++++++++++++-- 4 files changed, 120 insertions(+), 38 deletions(-) diff --git a/phpBB/styles/prosilver/template/posting_attach_body.html b/phpBB/styles/prosilver/template/posting_attach_body.html index fa9dd19c09..8262645a09 100644 --- a/phpBB/styles/prosilver/template/posting_attach_body.html +++ b/phpBB/styles/prosilver/template/posting_attach_body.html @@ -1,9 +1,9 @@ -
+

{L_ADD_ATTACHMENT_EXPLAIN}

-
+
@@ -17,5 +17,44 @@
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + +
{LA_PLUPLOAD_FILENAME}{L_FILE_COMMENT}{L_PLUPLOAD_SIZE}{L_PLUPLOAD_STATUS}
+ {attach_row.FILENAME} + +   + + + + + {attach_row.S_HIDDEN} + {attach_row.FILESIZE} + +
+
+
diff --git a/phpBB/styles/prosilver/template/posting_editor.html b/phpBB/styles/prosilver/template/posting_editor.html index 5677b92fc3..cac82baf91 100644 --- a/phpBB/styles/prosilver/template/posting_editor.html +++ b/phpBB/styles/prosilver/template/posting_editor.html @@ -149,34 +149,6 @@
- -
-
-

{L_POSTED_ATTACHMENTS}

- -
- - -
- -
-
-
{attach_row.FILENAME}
-
-   - -
-
- {attach_row.S_HIDDEN} -
- - -
- -
-
- -
@@ -198,7 +170,7 @@ diff --git a/phpBB/styles/prosilver/theme/colours.css b/phpBB/styles/prosilver/theme/colours.css index eee503516b..8c411a9f4d 100644 --- a/phpBB/styles/prosilver/theme/colours.css +++ b/phpBB/styles/prosilver/theme/colours.css @@ -76,8 +76,14 @@ hr { color: #000000; } -.bg1 { background-color: #ECF3F7; } -.bg2 { background-color: #e1ebf2; } +table.zebra-list tr:nth-child(odd) td, ul.zebra-list li:nth-child(odd), .bg1 { + background-color: #ECF3F7; +} + +table.zebra-list tr:nth-child(even) td, ul.zebra-list li:nth-child(even), .bg2 { + background-color: #e1ebf2; +} + .bg3 { background-color: #cadceb; } .ucprowbg { diff --git a/phpBB/styles/prosilver/theme/plupload.css b/phpBB/styles/prosilver/theme/plupload.css index 16c26822b5..b296e61e74 100644 --- a/phpBB/styles/prosilver/theme/plupload.css +++ b/phpBB/styles/prosilver/theme/plupload.css @@ -1,11 +1,76 @@ -.plupload_filelist li.can_delete:hover { - cursor: pointer; +#attach-panel-multi { + display: none; + margin-bottom: 1em; } -.plupload_filelist li.can_delete:hover a { - background: url('../../../assets/plupload/jquery.plupload.queue/img/delete.gif'); +#file-list td { + vertical-align: middle; } -.plupload_filelist li a.working { +.attach-name { + width: 50%; +} + +.attach-comment { + width: 30%; +} + +.attach-filesize { + width: 15%; +} + +.attach-status { + width: 5%; +} + +.attach-filesize, .attach-status { + text-align: center; +} + +.attach-controls { + display: inline-block; + float: right; +} + +#attach-row-tpl { + display: none; +} + +#file-total-progress { + height: 2px; + display: block; + position: relative; + margin: 4px -10px -6px -10px; +} + +.file-progress { + background-color: #CCCCCC; + display:inline-block; + height: 8px; + width: 50px; +} + +.file-progress-bar, #file-total-progress-bar { + background-color: green; + display: block; + height: 100%; + width: 0; +} + +.file-status.file-working { background: url('../../../assets/plupload/jquery.plupload.queue/img/throbber.gif'); } + +.file-status.file-uploaded { + background: url('../../../assets/plupload/jquery.plupload.queue/img/done.gif'); +} + +.file-status.file-error { + background: url('../../../assets/plupload/jquery.plupload.queue/img/error.gif'); +} + +.file-status { + display: inline-block; + height: 16px; + width: 16px; +}