From: Richard Kettlewell Date: Wed, 4 Jun 2008 09:31:45 +0000 (+0100) Subject: Macroize submit buttons so we can mess with them more easily X-Git-Tag: 4.0~25 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/8b15f02d9c4041d45a310dce13f67b5a8bf11ca8?ds=sidebyside Macroize submit buttons so we can mess with them more easily --- diff --git a/templates/choose.tmpl b/templates/choose.tmpl index 16cb985..a405a25 100644 --- a/templates/choose.tmpl +++ b/templates/choose.tmpl @@ -94,11 +94,7 @@ USA
- - - + @submit{@label{login.logout}}
@@ -205,11 +189,7 @@ USA - - - + @submit{@label{login.edituser}} diff --git a/templates/macros.tmpl b/templates/macros.tmpl index 9f31132..2ec7205 100644 --- a/templates/macros.tmpl +++ b/templates/macros.tmpl @@ -277,6 +277,11 @@ and then redefines macros as desired. } +@# Expand to a submit button +@# @text is the text to put inside the button +@define {submit} {text} + {} + Local variables: mode:sgml sgml-always-quote-attributes:nil diff --git a/templates/playing.tmpl b/templates/playing.tmpl index 29ddbe1..07cbd6a 100644 --- a/templates/playing.tmpl +++ b/templates/playing.tmpl @@ -94,11 +94,7 @@ USA @right{volume}{ - - - + @submit{@label{volume.set}} } @vbutton{down}{-} diff --git a/templates/prefs.tmpl b/templates/prefs.tmpl index f0daf8c..02d8904 100644 --- a/templates/prefs.tmpl +++ b/templates/prefs.tmpl @@ -39,11 +39,7 @@ USA {@tracks{@arg{dir}} {@mprefs{@index}{@track}}}

- - - + @submit{@label{prefs.set}}