<p class=search>Enter search terms:
<input class=query name=query type=text value="@argq{query}"
size=50>
- <span class=button>
- <button class=search name=submit type=submit>
- @label{search.search}
- </button>
- </span>
+ @submit{@label{search.search}}
<input name=action type=hidden value=choose>
<a class=button
href="@url?action=choose">
}
/* Buttons and links that look like buttons share the same formatting */
-span.button, a.button {
+span.buttonouter, a.button {
padding-top: 2px;
border-width: 3px;
border-color: #fefefe; /* Off-white */
</tr>
<tr>
<td colspan=2>
- <span class=button>
- <button class=login name=button type=submit>
- @label{login.login}
- </button>
- </span>
+ @submit{@label{login.login}}
</td>
</tr>
</table>
</tr>
<tr>
<td colspan=2>
- <span class=button>
- <button class=login name=button type=submit>
- @label{login.reminder}
- </span>
- </button>
+ @submit{@label{login.reminder}}
</td>
</tr>
</table>
</tr>
<tr>
<td colspan=3>
- <span class=button>
- <button class=register name=button type=submit>
- @label{login.register}
- </button>
- </span>
+ @submit{@label{login.register}}
</td>
</tr>
</table>
<form class=logout action="@url" method=POST
enctype="multipart/form-data" accept-charset=utf-8>
<div class=logout>
- <span class=button>
- <button class=logout name=submit type=submit>
- @label{login.logout}
- </button>
- </span>
+ @submit{@label{login.logout}}
</div>
<input name=action type=hidden value=logout>
</form>
</tr>
<tr>
<td colspan=3>
- <span class=button>
- <button class=edituser name=submit type=submit>
- @label{login.edituser}
- </button>
- </span>
+ @submit{@label{login.edituser}}
</td>
</tr>
</table>
</table>
}
+@# Expand to a submit button
+@# @text is the text to put inside the button
+@define {submit} {text}
+ {<span class=buttonouter><button class=button name=submit type=submit><span class=buttoninner>@text</span></button></span>}
+
Local variables:
mode:sgml
sgml-always-quote-attributes:nil
<input size=3 name=right type=text value="@volume{right}">
<input name=back type=hidden value="@quote{@thisurl}">
@right{volume}{
- <span class=button>
- <button class=volume name=submit type=submit>
- @label{volume.set}
- </button>
- </span>
+ @submit{@label{volume.set}}
<input name=action type=hidden value=volume>
}
@vbutton{down}{-}
{@tracks{@arg{dir}}
{@mprefs{@index}{@track}}}
<p>
- <span class=button>
- <button type=submit name=submit>
- @label{prefs.set}
- </button>
- </span>
+ @submit{@label{prefs.set}}
</p>
</form>