More hard-coded URI paths in form.action attributes
This commit is contained in:
parent
9b6c391062
commit
dd10e838c5
5 changed files with 15 additions and 10 deletions
|
@ -6,7 +6,9 @@
|
||||||
you'll need to do a brief one-time setup.
|
you'll need to do a brief one-time setup.
|
||||||
</p>
|
</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">
|
<ol class="setup">
|
||||||
<li>
|
<li>
|
||||||
|
|
||||||
|
@ -43,7 +45,7 @@
|
||||||
<p align="right">
|
<p align="right">
|
||||||
<input type="submit" value="Setup" style="margin-left: 40px" />
|
<input type="submit" value="Setup" style="margin-left: 40px" />
|
||||||
</p>
|
</p>
|
||||||
</form>
|
<%= end_form_tag %>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function proposeAddress() {
|
function proposeAddress() {
|
||||||
|
|
|
@ -5,8 +5,9 @@
|
||||||
so different subjects or projects can write about different <i>MuppetShows</i>.
|
so different subjects or projects can write about different <i>MuppetShows</i>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<form action="../create_web" id="setup" method="post" onSubmit="cleanAddress();
|
<%= form_tag({ :controller => 'admin', :action => 'create_web'},
|
||||||
return validateSetup()">
|
{'id' => 'setup', 'method' => 'post', 'onSubmit' => 'cleanAddress(); return validateSetup()'})
|
||||||
|
%>
|
||||||
|
|
||||||
<ol class="setup">
|
<ol class="setup">
|
||||||
<li>
|
<li>
|
||||||
|
@ -35,7 +36,7 @@
|
||||||
</small>
|
</small>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</form>
|
<%= end_form_tag %>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function proposeAddress() {
|
function proposeAddress() {
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
<% @title = "Edit Web" %>
|
<% @title = "Edit Web" %>
|
||||||
|
|
||||||
<form action="edit_web" id="setup" method="post"
|
<%= form_tag({ :controller => 'admin', :action => 'edit_web', :web => @web.address },
|
||||||
onSubmit="cleanAddress(); return validateEditWebForm()">
|
{'id' => 'setup', 'method' => 'post', 'onSubmit' => 'cleanAddress(); return validateSetup()'})
|
||||||
|
%>
|
||||||
|
|
||||||
<h2 style="margin-bottom: 3px">Name and address</h2>
|
<h2 style="margin-bottom: 3px">Name and address</h2>
|
||||||
<div class="help">
|
<div class="help">
|
||||||
The name of the web is included in the title on all pages.
|
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>
|
</small>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</form>
|
<%= end_form_tag %>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
<h1>Other administrative tasks</h1>
|
<h1>Other administrative tasks</h1>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= form_tag({ :action => 'save', :web => @web.address, :id => @page.name},
|
<%= form_tag({ :action => 'save', :web => @web.address, :id => @page.name},
|
||||||
{'id' => 'editForm', 'method' => 'post', 'onSubmit' => 'cleanAuthorName();'})
|
{'id' => 'editForm', 'method' => 'post', 'onSubmit' => 'cleanAuthorName()'})
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if (@results + @title_results).empty? %>
|
<% if (@results + @title_results).empty? %>
|
||||||
<h2>No pages contains "<%= @params["query"] %>" </h2>
|
<h2>No pages contain "<%= @params["query"] %>" </h2>
|
||||||
<p>
|
<p>
|
||||||
Perhaps you should try expanding your query. Remember that Instiki searches for entire
|
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
|
phrases, so if you search for "all that jazz" it will not match pages that contain these
|
||||||
|
|
Loading…
Reference in a new issue