- changed from input type="button" to type="submit"

- changed attribute names to html-conform ones (with -> cols, height -> rows)
- now using attribute "class" instead of attribute style where it defines a css class
This commit is contained in:
Robert Gaggl 2003-08-02 10:42:16 +00:00
parent eee0bf7f5d
commit 0ff833ada3
2 changed files with 5 additions and 5 deletions

View file

@ -1,9 +1,9 @@
<form method="post" action="<% response.action %>">
<input type="hidden" name="proto" value="<% request.proto %>" />
<input type="hidden" name="name" value="<% request.name %>" />
<% this.skin as="editor" width="50" height="25" wrap="virtual" style="formWide" %>
<% this.skin as="editor" cols="50" rows="25" wrap="virtual" class="formWide" %>
<p><% input type="button" name="save" value="Save" %>&nbsp;<% input type="button" name="cancel" value="Cancel" %> &nbsp; <a href="#help">help</a></p>
<p><% input type="submit" name="save" value="Save" %>&nbsp;<% input type="submit" name="cancel" value="Cancel" %> &nbsp; <a href="#help">help</a></p>
</form>
<a name="help"></a>

View file

@ -2,11 +2,11 @@
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td nowrap="nowrap"><span class="small">Title:</span><br />
<% story.content part="title" as="editor" width="24" style="formTitle" %></td>
<% story.content part="title" as="editor" size="24" class="formTitle" %></td>
</tr>
<tr>
<td nowrap="nowrap"><span class="small">Text:</span><br />
<% story.content part="text" as="editor" width="30" height="15" style="formText" %></td>
<% story.content part="text" as="editor" cols="30" rows="15" class="formText" %></td>
</tr>
<tr>
<td><fieldset><legend class="small">Options</legend>
@ -31,7 +31,7 @@ Add this story to a topic<br />
<td class="small"><% story.creator as="link" prefix="Created by " %><% story.modifier as="link" prefix=", last modified&nbsp;by&nbsp;" %><% story.modifytime format="short" prefix="&nbsp;on&nbsp;" %></td>
</tr>
<tr>
<td nowrap="nowrap"><br /><% input type="button" name="publish" value="Publish" %>&nbsp;<% input type="button" name="save" value="Save offline" %>&nbsp;<% input type="button" name="cancel" value="Cancel" %></td>
<td nowrap="nowrap"><br /><% input type="submit" name="publish" value="Publish" %>&nbsp;<% input type="submit" name="save" value="Save offline" %>&nbsp;<% input type="submit" name="cancel" value="Cancel" %></td>
</tr>
</table>
</form>