Mercurial > hg > fapweb
changeset 281:ec56f08c4cc4
Add some CSS for votekey admin.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 24 Nov 2013 23:02:44 +0200 |
parents | 704e297078f9 |
children | 50e52dc43916 |
files | admajax.php admin.css |
diffstat | 2 files changed, 27 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/admajax.php Sun Nov 24 23:01:51 2013 +0200 +++ b/admajax.php Sun Nov 24 23:02:44 2013 +0200 @@ -313,7 +313,10 @@ str_repeat(" ", $keyLen - strlen($item["key"])).$item["key"]); if ($vmode == VOTE_ACTIVATE) - echo stGetFormCheckBoxInput("active", $item["id"], $prefix, $item["active"], "")."\n"; + { + echo stGetFormCheckBoxInput("active", $item["id"], $prefix, + $item["active"], "", "class=\"keyactive\" onClick=\"voteKeyActivated(".$item["id"].")\"", "xx")."\n"; + } echo "</td>";
--- a/admin.css Sun Nov 24 23:01:51 2013 +0200 +++ b/admin.css Sun Nov 24 23:02:44 2013 +0200 @@ -77,3 +77,26 @@ border-radius: 0.7em; border: 0.2em solid rgba(255,0,0,0.6); } + + +table.votekeys { + margin: 0px; + padding: 0px; +} + +table.votekeys td { + text-align: center; + padding: 0.5em; + background: black; + + border-right: 1pt dashed green; + border-bottom: 1pt dashed green; +} + +table.votekeys span.keyid { + font-weight: bold; +} + +.keyactive { + margin-left: 1em; +}