From e7834e60f872f91954266a7bcc2b5adda3df8d00 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Wed, 6 Jul 2011 12:10:00 +0200 Subject: Update settings page to use field templates. Add tabs to switch user settings/plugin settings Add new field templates 'custom', 'password', radio' and 'yesno' Update main.js to support advanced fileds Update duepuntozero, dispy e loozah themes --- view/theme/dispy/settings.tpl | 212 -------------------------------------- view/theme/dispy/style.css | 102 ++++++++++++------ view/theme/duepuntozero/style.css | 190 +++++++--------------------------- view/theme/loozah/style.css | 171 +++++++----------------------- 4 files changed, 150 insertions(+), 525 deletions(-) delete mode 100644 view/theme/dispy/settings.tpl (limited to 'view/theme') diff --git a/view/theme/dispy/settings.tpl b/view/theme/dispy/settings.tpl deleted file mode 100644 index 953e5c3f2..000000000 --- a/view/theme/dispy/settings.tpl +++ /dev/null @@ -1,212 +0,0 @@ -
- $ptitle - $lbl_plug -
-
- -

$ptitle

- - -$uexport - -$nickname_block - - -
- - -

$lbl_pass1

- - -
-

-$lbl_pass2 -

- - -
-
- -
- - -
-
- -
- $oidhtml -
-
- - -
- -
- - -

$lbl_basic

- -
- - -
-
- -
- - -
-
- - - -
- -$zoneselect -
-
- -
- - -
-
- -
- - -
-
- - - - -
- -$theme -
-
- -
- -
- - -

$lbl_prv

- - - - -
- - -
$lbl_maxrdesc
-
-
- - - - -$profile_in_dir - -$profile_in_net_dir - - -
- -
- - -
-
- -
- - -
-
- - - -
$lbl_exp1 $lbl_exp2
-
- - -
- -
- - - -

$lbl_not1

- - -
-
$lbl_not2
- - -
- - -
- - -
- - -
- - -
-
-
- -
- -
- -

$lbl_imap0

-

-$imap_desc -$mail_disabled -

- - -
- - -
- - -
- - -
- - -
- - -
- - -
- -
- -
- - -

$lbl_advn

- -$pagetype - -
- -
- - diff --git a/view/theme/dispy/style.css b/view/theme/dispy/style.css index 49586e307..c04a67ec9 100644 --- a/view/theme/dispy/style.css +++ b/view/theme/dispy/style.css @@ -741,6 +741,13 @@ div[id$="wrapper"] br { clear: left; } /** * register, settings & profile forms */ +#id_openid_url, +.openid { + background: url(login-bg.gif) no-repeat; + background-position: 0 50%; + padding-left: 18px; +} + #settings-nickname-desc { background-color: #DDEFFF; -webkit-border-radius: 5px; @@ -750,20 +757,17 @@ div[id$="wrapper"] br { clear: left; } } #register-form div, -#profile-edit-form div, -#settings-form div { +#profile-edit-form div { clear: both; } #register-form label, -#profile-edit-form label, -#settings-form label { +#profile-edit-form label { width: 300px; float: left; } #register-form span, -#profile-edit-form span, -#settings-form span { +#profile-edit-form span { color: #555753; display:block; margin-bottom: 20px; @@ -956,31 +960,6 @@ div[id$="wrapper"] br { clear: left; } #adminpage dd { margin-left: 200px; } - -#adminpage .field { - clear: left; - margin-bottom: 5px; - padding-bottom: 5px; -} - -#adminpage .field label { - float: left; - width: 200px; - font-weight: bold; -} - -#adminpage .field input, -#adminpage .field textarea { - width: 400px; -} -#adminpage .field textarea { height: 100px; } -#adminpage .field_help { - display: block; - margin-left: 200px; - color: #666666; - -} - #adminpage h3 { border-bottom: 1px solid #cccccc; } @@ -1012,6 +991,67 @@ div[id$="wrapper"] br { clear: left; } #adminpage table tr:hover { background-color: #bbc7d7; } #adminpage .selectall { text-align: right; } +/** + * Form fields + */ +.field { + margin-bottom: 10px; + padding-bottom: 10px; + overflow: auto; + width: 100% +} + +.field label { + float: left; + width: 200px; +} + +.field input, +.field textarea { + width: 400px; +} +.field textarea { height: 100px; } +.field_help { + display: block; + margin-left: 200px; + color: #666666; + +} + + +.field .onoff { + float: left; + width: 80px; +} +.field .onoff a { + display: block; + border:1px solid #666666; + background-image:url("../../../images/onoff.jpg"); + background-repeat: no-repeat; + padding: 4px 2px 2px 2px; + height: 16px; + text-decoration: none; +} +.field .onoff .off { + border-color:#666666; + padding-left: 40px; + background-position: left center; + background-color: #cccccc; + color: #666666; + text-align: right; +} +.field .onoff .on { + border-color:#204A87; + padding-right: 40px; + background-position: right center; + background-color: #3465A4; + color: #FFFFFF; + text-align: left; +} +.hidden { display: none!important; } + +.field.radio .field_help { margin-left: 0px; } + /** * ICONS */ diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index 4df36b4a9..0ff41c92b 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -27,6 +27,7 @@ input { img { border :0px; } +#id_openid_url, .openid { background: url(login-bg.gif) no-repeat; background-position: 0 50%; @@ -402,130 +403,7 @@ input#dfrn-url { margin-left: 50px; } -#settings-nick-wrapper { - margin-top: 20px; - -} - -#settings-expire-end { - margin-bottom: 30px; -} - -#settings-username-end, -#settings-email-end, -#settings-nick-end, -#settings-defloc-end, -#settings-allowloc-end, -#settings-blockw-end, -#settings-timezone-end, -#settings-theme-end, -#settings-password-end, -#settings-confirm-end, -#settings-openid-end, -#settings-maxreq-end, -#notify1-end, -#notify2-end, -#notify3-end, -#notify4-end, -#notify5-end, -#imap-server-end, -#imap-port-end, -#imap-ssl-end, -#imap-user-end, -#imap-pass-end, -#imap-replyto-end, -#imap-pubmail-end { - margin-bottom: 5px; - clear: both; -} - -#settings-username-label, -#settings-email-label, -#settings-nick-label, -#settings-defloc-label, -#settings-allowloc-label, -#settings-blockw-label, -#settings-timezone-label, -#settings-theme-label, -#settings-password-label, -#settings-confirm-label, -#settings-openid-label, -#settings-maxreq-label, -#settings-label-notify1, -#settings-label-notify2, -#settings-label-notify3, -#settings-label-notify4, -#settings-label-notify5, -#settings-label-imap1, -#settings-label-imap2, -#settings-label-imap3, -#settings-label-imap4, -#settings-label-imap5, -#settings-label-imap6, -#settings-label-imap7 { - float: left; - width: 200px; -} - -#settings-username, -#settings-email, -#settings-nick, -#settings-defloc, -#settings-allowloc, -#settings-blockw, -#timezone-select, -#theme-select, -#settings-password, -#settings-confirm, -#settings-maxreq, -#notify1, -#notify2, -#notify3, -#notify4, -#notify5, -#imap-server, -#imap-port, -#imap-ssl, -#imap-user, -#imap-pass, -#imap-replyto, -#imap-pubmail { - float: left; - margin-bottom: 20px; -} - -#settings-openid { - float: left; - margin-bottom: 20px; - width: 127px; -} - -#settings-maxreq-desc { - float: left; - margin-left: 20px; -} -#settings-theme-label, -#settings-defloc-label { - margin-top: 20px; -} - -#settings-defloc { - margin-top: 20px; -} - - -#theme-select { - margin-top: 20px; - width: 207px; -} -#settings-notify-desc { - margin-top: 20px; - margin-bottom: 20px; -} -#settings-nick-desc { - width: 500px; -} #cropimage-wrapper, #cropimage-preview-wrapper { float: left; @@ -1588,30 +1466,6 @@ input#dfrn-url { width: 180px; } - -/* -.profile-tabs { - float: left; - padding: 4px; - margin-top: 10px; - margin-bottom: 10px; - margin-right: 5px; - font-size: 0.8em; - font-weight: bold; - background-color: #ECECEC; - border: 1px solid #858585; -} -.profile-tabs:hover { - background-color: #0CBEFE; - color: #F5F6FB; - border: 1px solid #F5F6FB; -} - - -#profile-tabs-end { - clear: both; -}*/ - .comment-edit-text-empty { color: gray; height: 30px; @@ -2582,9 +2436,10 @@ a.mail-list-link { * Form fields */ .field { - clear: left; - margin-bottom: 5px; - padding-bottom: 5px; + margin-bottom: 10px; + padding-bottom: 10px; + overflow: auto; + width: 100% } .field label { @@ -2603,7 +2458,40 @@ a.mail-list-link { color: #666666; } - + + +.field .onoff { + float: left; + width: 80px; +} +.field .onoff a { + display: block; + border:1px solid #666666; + background-image:url("../../../images/onoff.jpg"); + background-repeat: no-repeat; + padding: 4px 2px 2px 2px; + height: 16px; + text-decoration: none; +} +.field .onoff .off { + border-color:#666666; + padding-left: 40px; + background-position: left center; + background-color: #cccccc; + color: #666666; + text-align: right; +} +.field .onoff .on { + border-color:#204A87; + padding-right: 40px; + background-position: right center; + background-color: #3465A4; + color: #FFFFFF; + text-align: left; +} +.hidden { display: none!important; } + +.field.radio .field_help { margin-left: 0px; } /** * ADMIN diff --git a/view/theme/loozah/style.css b/view/theme/loozah/style.css index df14a29db..d905b988b 100644 --- a/view/theme/loozah/style.css +++ b/view/theme/loozah/style.css @@ -41,12 +41,14 @@ input:hover { cursor: pointer; } +#id_openid_url, .openid { background-color: #ECECEC !important; background: url(login-bg.gif) no-repeat; background-position: 0 50%; padding-left: 18px; } +#id_openid_url:hover, .openid:hover { background-color: #0CBEFE !important; } @@ -531,133 +533,6 @@ input#dfrn-url { margin-left: 50px; } -#settings-nick-wrapper { - margin-bottom: 15px; -} - -#settings-expire-end { - margin-bottom: 30px; -} - -#settings-username-end, -#settings-email-end, -#settings-nick-end, -#settings-defloc-end, -#settings-allowloc-end, -#settings-blockw-end, -#settings-timezone-end, -#settings-theme-end, -#settings-password-end, -#settings-confirm-end, -#settings-openid-end, -#settings-maxreq-end, -#notify1-end, -#notify2-end, -#notify3-end, -#notify4-end, -#notify5-end, -#imap-server-end, -#imap-port-end, -#imap-ssl-end, -#imap-user-end, -#imap-pass-end, -#imap-replyto-end, -#imap-pubmail-end { - margin-bottom: 5px; - clear: both; -} - -#settings-username-label, -#settings-email-label, -#settings-nick-label, -#settings-defloc-label, -#settings-allowloc-label, -#settings-blockw-label, -#settings-timezone-label, -#settings-theme-label, -#settings-password-label, -#settings-confirm-label, -#settings-openid-label, -#settings-maxreq-label, -#settings-label-notify1, -#settings-label-notify2, -#settings-label-notify3, -#settings-label-notify4, -#settings-label-notify5, -#settings-label-imap1, -#settings-label-imap2, -#settings-label-imap3, -#settings-label-imap4, -#settings-label-imap5, -#settings-label-imap6, -#settings-label-imap7 { - float: left; - width: 200px; -} - -#settings-username, -#settings-email, -#settings-nick, -#settings-defloc, -#settings-allowloc, -#settings-blockw, -#timezone-select, -#theme-select, -#settings-password, -#settings-confirm, -#settings-maxreq, -#notify1, -#notify2, -#notify3, -#notify4, -#notify5, -#imap-server, -#imap-port, -#imap-ssl, -#imap-user, -#imap-pass, -#imap-replyto, -#imap-pubmail { - float: left; - margin-bottom: 20px; -} - -#settings-openid { - float: left; - margin-bottom: 20px; - width: 127px; -} - -#settings-maxreq-desc { - float: left; - margin-left: 20px; -} - -#settings-theme-label, -#settings-defloc-label { - margin-top: 20px; -} - -#settings-defloc { - margin-top: 20px; -} - - -#theme-select { - margin-top: 20px; - width: 207px; -} -#settings-notify-desc { - margin-top: 20px; - margin-bottom: 20px; -} -#settings-nick-desc { - width: 500px; -} - -#settings-nick { - margin-bottom: 30px; -} #cropimage-wrapper, #cropimage-preview-wrapper { float: left; @@ -2594,15 +2469,15 @@ a.mail-list-link { * Form fields */ .field { - clear: left; - margin-bottom: 5px; - padding-bottom: 5px; + margin-bottom: 10px; + padding-bottom: 10px; + overflow: auto; + width: 100% } .field label { float: left; width: 200px; - font-weight: bold; } .field input, @@ -2618,6 +2493,40 @@ a.mail-list-link { } +.field .onoff { + float: left; + width: 80px; +} +.field .onoff a { + display: block; + border:1px solid #666666; + background-image:url("../../../images/onoff.jpg"); + background-repeat: no-repeat; + padding: 4px 2px 2px 2px; + height: 16px; + text-decoration: none; +} +.field .onoff .off { + border-color:#666666; + padding-left: 40px; + background-position: left center; + background-color: #cccccc; + color: #666666; + text-align: right; +} +.field .onoff .on { + border-color:#204A87; + padding-right: 40px; + background-position: right center; + background-color: #3465A4; + color: #FFFFFF; + text-align: left; +} +.hidden { display: none!important; } + +.field.radio .field_help { margin-left: 0px; } + + /** * ADMIN */ -- cgit v1.2.3