From: Richard Kettlewell Date: Thu, 5 Jun 2008 14:38:44 +0000 (+0100) Subject: Use form-based buttons instead of hyperlinks X-Git-Tag: 4.0~22 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/cf4ae3d506e0b5dfde9808f6e8e032cf52c09b07?ds=sidebyside Use form-based buttons instead of hyperlinks --- diff --git a/templates/disorder.css b/templates/disorder.css index e76d288..b460aae 100644 --- a/templates/disorder.css +++ b/templates/disorder.css @@ -181,19 +181,12 @@ div.filesdirectories p.all { /* buttons *******************************************************************/ -button { - border: 0px; - background-color: transparent; - padding: 0px; - cursor: pointer - font-family: helvetica,sans-serif; - font-weight: normal; - font-variant: normal; - font-size: 12pt; +form.button { + display: inline } /* Buttons and links that look like buttons share the same formatting */ -span.buttonouter, a.button { +a.button { padding-top: 2px; border-width: 3px; border-color: #fefefe; /* Off-white */ @@ -256,6 +249,10 @@ form.search { padding: 0.2em } +form.search p { + display: inline +} + /* menu bar *******************************************************************/ div.top { diff --git a/templates/macros.tmpl b/templates/macros.tmpl index 5d33446..3132e57 100644 --- a/templates/macros.tmpl +++ b/templates/macros.tmpl @@ -287,13 +287,16 @@ and then redefines macros as desired. @# @long is the text to put in the caption @# @action is the target action @define {actbutton} {text long action} - {@text} + {
+ + +@formback@# +
} +@# TODO @back support -@# Expands to &back=manage or to nothing depending on context; -@# see playing.tmpl. +@# Used for inserting back= elements @define {back} {} {} +@define {formback} {} {} Local variables: mode:sgml diff --git a/templates/playing.tmpl b/templates/playing.tmpl index a7bb804..147333c 100644 --- a/templates/playing.tmpl +++ b/templates/playing.tmpl @@ -52,9 +52,10 @@ USA {@yes} {@no}} - @# Expand to &back=manage or to nothing - @define {back} {} - {@ifmanage{&back=manage}{}} + @ifmanage{ + @define {back} {} {&back=manage} + @define {formback} {} {} + }{} }@#