accept--charset attribute added to all forms
This commit is contained in:
parent
73dfa6b813
commit
cb869abf0d
|
@ -6,8 +6,9 @@
|
|||
you'll need to do a brief one-time setup.
|
||||
</p>
|
||||
|
||||
<%= form_tag({ :controller => 'admin', :action => 'create_system'},
|
||||
{'id' => 'setup', 'method' => 'post', 'onSubmit' => 'return validateSetup()'})
|
||||
<%= form_tag({ :controller => 'admin', :action => 'create_system' },
|
||||
{ 'id' => 'setup', 'method' => 'post', 'onSubmit' => 'return validateSetup()',
|
||||
'accept-charset' => 'utf-8' })
|
||||
%>
|
||||
<ol class="setup">
|
||||
<li>
|
||||
|
|
|
@ -5,8 +5,10 @@
|
|||
so different subjects or projects can write about different <i>MuppetShows</i>.
|
||||
</p>
|
||||
|
||||
<%= form_tag({ :controller => 'admin', :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()',
|
||||
'accept-charset' => 'utf-8' })
|
||||
%>
|
||||
|
||||
<ol class="setup">
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<% @title = "Edit Web" %>
|
||||
|
||||
<%= form_tag({ :controller => 'admin', :action => 'edit_web', :web => @web.address },
|
||||
{'id' => 'setup', 'method' => 'post', 'onSubmit' => 'cleanAddress(); return validateSetup()'})
|
||||
{ 'id' => 'setup', 'method' => 'post',
|
||||
'onSubmit' => 'cleanAddress(); return validateSetup()',
|
||||
'accept-charset' => 'utf-8' })
|
||||
%>
|
||||
|
||||
<h2 style="margin-bottom: 3px">Name and address</h2>
|
||||
|
@ -117,9 +119,9 @@
|
|||
<h1>Other administrative tasks</h1>
|
||||
|
||||
<%= form_tag({:controller => 'admin', :web => @web.address, :action => 'remove_orphaned_pages'},
|
||||
{:id => 'remove_orphaned_pages',
|
||||
:onSubmit => "return checkSystemPassword(document.getElementById('system_password_orphaned').value)"
|
||||
})
|
||||
{ :id => 'remove_orphaned_pages',
|
||||
:onSubmit => "return checkSystemPassword(document.getElementById('system_password_orphaned').value)",
|
||||
'accept-charset' => 'utf-8' })
|
||||
%>
|
||||
<p align="right">
|
||||
<small>
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
|
||||
<%= error_messages_for 'file' %>
|
||||
|
||||
<%= form_tag({:controller => 'file', :web => @web_name, :action => 'file'}, {:multipart => true}) %>
|
||||
<%= form_tag({ :controller => 'file', :web => @web_name, :action => 'file' },
|
||||
{ 'multipart' => true , 'accept-charset' => 'utf-8' }) %>
|
||||
<%= hidden_field 'file', 'file_name' %>
|
||||
<div class="inputFieldWithPrompt">
|
||||
<b>Content of <%= h @file_name %> to upload <small>(required)</small>:</b>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<p>
|
||||
<%= form_tag({}, {:multipart => true}) %>
|
||||
<%= form_tag({}, { 'multipart' => true, 'accept-charset' => 'utf-8' }) %>
|
||||
<p>
|
||||
File to upload:
|
||||
<br/>
|
||||
|
|
|
@ -17,7 +17,7 @@ end
|
|||
<%= list_item 'Feeds', {:action => 'feeds'}, 'Subscribe to changes by RSS' %> |
|
||||
<%= list_item 'Export', {:action => 'export'}, 'Download a zip with all the pages in this wiki', 'X' %> |
|
||||
<%= form_tag({ :controller => 'wiki', :action => 'search', :web => @web.address},
|
||||
{'id' => 'navigationSearchForm', 'method' => 'get'}) %>
|
||||
{'id' => 'navigationSearchForm', 'method' => 'get', 'accept-charset' => 'utf-8' }) %>
|
||||
<input type="text" id="searchField" name="query" value="Search"
|
||||
onfocus="this.value == 'Search' ? this.value = '' : true"
|
||||
onblur="this.value == '' ? this.value = 'Search' : true" />
|
||||
|
|
|
@ -9,8 +9,9 @@
|
|||
<%= render 'wiki_words_help' %>
|
||||
</div>
|
||||
|
||||
<%= form_tag({ :action => 'save', :web => @web.address, :id => @page.name},
|
||||
{'id' => 'editForm', 'method' => 'post', 'onSubmit' => 'cleanAuthorName()'})
|
||||
<%= form_tag({ :action => 'save', :web => @web.address, :id => @page.name },
|
||||
{ 'id' => 'editForm', 'method' => 'post', 'onSubmit' => 'cleanAuthorName()',
|
||||
'accept-charset' => 'utf-8' })
|
||||
%>
|
||||
|
||||
<p>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<p>
|
||||
<%= form_tag({ :controller => 'wiki', :action => 'authenticate', :web => @web.address},
|
||||
{ 'name' => 'loginForm', 'id' => 'loginForm', 'method' => 'post'})
|
||||
{ 'name' => 'loginForm', 'id' => 'loginForm', 'method' => 'post', 'accept-charset' => 'utf-8' })
|
||||
%>
|
||||
<p>
|
||||
This web is password-protected. Please enter the password.
|
||||
|
|
|
@ -9,8 +9,9 @@
|
|||
<%= render 'wiki_words_help' %>
|
||||
</div>
|
||||
|
||||
<%= form_tag({ :action => 'save', :web => @web.address, :id => @page_name},
|
||||
{'id' => 'editForm', 'method' => 'post', 'onSubmit' => 'cleanAuthorName();'})
|
||||
<%= form_tag({ :action => 'save', :web => @web.address, :id => @page_name },
|
||||
{ 'id' => 'editForm', 'method' => 'post', 'onSubmit' => 'cleanAuthorName();',
|
||||
'accept-charset' => 'utf-8' })
|
||||
%>
|
||||
|
||||
<p>
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
<%= "<p style='color:red'>Please correct the error that caused this error in rendering:<br/><small>#{@params["msg"]}</small></p>" if @params["msg"] %>
|
||||
|
||||
<%= form_tag({:web => @web.address, :action => 'save', :id => @page.name},
|
||||
{:id => 'editForm', :method => 'post', :onSubmit => 'cleanAuthorName();'})
|
||||
{ :id => 'editForm', :method => 'post', :onSubmit => 'cleanAuthorName();',
|
||||
'accept-charset' => 'utf-8' })
|
||||
%>
|
||||
<p>
|
||||
<textarea name="content" style="font-size: 12px; width: 450px; height: 500px"><%= @revision.content %></textarea>
|
||||
|
|
Loading…
Reference in a new issue