More hard-coded URI paths in form.action attributes

This commit is contained in:
Alexey Verkhovsky 2005-05-05 06:26:47 +00:00
parent 9b6c391062
commit dd10e838c5
5 changed files with 15 additions and 10 deletions

View file

@ -6,7 +6,9 @@
you'll need to do a brief one-time setup.
</p>
<form action="../create_system" id="setup" method="post" onSubmit="return validateSetup()">
<%= form_tag({ :controller => 'admin', :action => 'create_system'},
{'id' => 'setup', 'method' => 'post', 'onSubmit' => 'return validateSetup()'})
%>
<ol class="setup">
<li>
@ -43,7 +45,7 @@
<p align="right">
<input type="submit" value="Setup" style="margin-left: 40px" />
</p>
</form>
<%= end_form_tag %>
<script>
function proposeAddress() {

View file

@ -5,8 +5,9 @@
so different subjects or projects can write about different <i>MuppetShows</i>.
</p>
<form action="../create_web" id="setup" method="post" onSubmit="cleanAddress();
return validateSetup()">
<%= form_tag({ :controller => 'admin', :action => 'create_web'},
{'id' => 'setup', 'method' => 'post', 'onSubmit' => 'cleanAddress(); return validateSetup()'})
%>
<ol class="setup">
<li>
@ -35,7 +36,7 @@
</small>
</p>
</form>
<%= end_form_tag %>
<script>
function proposeAddress() {

View file

@ -1,7 +1,9 @@
<% @title = "Edit Web" %>
<form action="edit_web" id="setup" method="post"
onSubmit="cleanAddress(); return validateEditWebForm()">
<%= form_tag({ :controller => 'admin', :action => 'edit_web', :web => @web.address },
{'id' => 'setup', 'method' => 'post', 'onSubmit' => 'cleanAddress(); return validateSetup()'})
%>
<h2 style="margin-bottom: 3px">Name and address</h2>
<div class="help">
The name of the web is included in the title on all pages.
@ -113,7 +115,7 @@ TODO Enable these input elements again after release 0.10
</small>
</p>
</form>
<%= end_form_tag %>
<br/>
<h1>Other administrative tasks</h1>

View file

@ -12,7 +12,7 @@
</div>
<%= form_tag({ :action => 'save', :web => @web.address, :id => @page.name},
{'id' => 'editForm', 'method' => 'post', 'onSubmit' => 'cleanAuthorName();'})
{'id' => 'editForm', 'method' => 'post', 'onSubmit' => 'cleanAuthorName()'})
%>
<p>

View file

@ -24,7 +24,7 @@
<% end %>
<% if (@results + @title_results).empty? %>
<h2>No pages contains "<%= @params["query"] %>" </h2>
<h2>No pages contain "<%= @params["query"] %>" </h2>
<p>
Perhaps you should try expanding your query. Remember that Instiki searches for entire
phrases, so if you search for "all that jazz" it will not match pages that contain these