2005-01-24 19:52:04 +01:00
|
|
|
<%
|
2005-08-15 02:37:16 +02:00
|
|
|
@title = "Creating #{WikiWords.separate(@page_name)}"
|
2005-01-24 19:52:04 +01:00
|
|
|
@content_width = 720
|
|
|
|
@hide_navigation = true
|
|
|
|
%>
|
|
|
|
|
2005-04-08 08:16:22 +02:00
|
|
|
<div id="MarkupHelp" style="float: right; width: 250px; margin-top: 5px">
|
|
|
|
<%= render("#{@web.markup}_help") %>
|
|
|
|
<%= render 'wiki_words_help' %>
|
|
|
|
</div>
|
2005-01-24 19:52:04 +01:00
|
|
|
|
2005-03-29 08:10:01 +02:00
|
|
|
<%= form_tag({ :action => 'save', :web => @web.address, :id => @page_name},
|
2005-02-19 00:19:42 +01:00
|
|
|
{'id' => 'editForm', 'method' => 'post', 'onSubmit' => 'cleanAuthorName();'})
|
|
|
|
%>
|
|
|
|
|
2005-01-24 19:52:04 +01:00
|
|
|
<p>
|
2005-05-29 20:40:25 +02:00
|
|
|
<textarea name="content" style="width: 450px; height: 500px"><%= h(@flash[:content] || '') %></textarea>
|
2005-01-24 19:52:04 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
2005-01-30 06:12:01 +01:00
|
|
|
<input type="submit" value="Submit" accesskey="s"/> as
|
2005-11-04 06:23:34 +01:00
|
|
|
<%= text_field_tag :author, @author,
|
|
|
|
:onfocus => "this.value == 'AnonymousCoward' ? this.value = '' : true;",
|
|
|
|
:onblur => "this.value == '' ? this.value = 'AnonymousCoward' : true" %>
|
2005-01-24 19:52:04 +01:00
|
|
|
</p>
|
2005-02-19 00:19:42 +01:00
|
|
|
<%= end_form_tag %>
|
2005-01-24 19:52:04 +01:00
|
|
|
|
|
|
|
<script language="JavaScript1.2">
|
|
|
|
function cleanAuthorName() {
|
|
|
|
if (document.getElementById('authorName').value == "") {
|
|
|
|
document.getElementById('authorName').value = 'AnonymousCoward';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|