From 8b15f02d9c4041d45a310dce13f67b5a8bf11ca8 Mon Sep 17 00:00:00 2001 Message-Id: <8b15f02d9c4041d45a310dce13f67b5a8bf11ca8.1714829214.git.mdw@distorted.org.uk> From: Mark Wooding Date: Wed, 4 Jun 2008 10:31:45 +0100 Subject: [PATCH] Macroize submit buttons so we can mess with them more easily Organization: Straylight/Edgeware From: Richard Kettlewell --- templates/choose.tmpl | 6 +----- templates/disorder.css | 2 +- templates/login.tmpl | 30 +++++------------------------- templates/macros.tmpl | 5 +++++ templates/playing.tmpl | 6 +----- templates/prefs.tmpl | 6 +----- 6 files changed, 14 insertions(+), 41 deletions(-) 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}}

-- [mdw]