accept--charset attribute added to all forms

This commit is contained in:
Alexey Verkhovsky 2006-03-23 04:51:13 +00:00
parent 73dfa6b813
commit cb869abf0d
10 changed files with 26 additions and 17 deletions

View file

@ -6,8 +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_tag({ :controller => 'admin', :action => 'create_system'}, <%= form_tag({ :controller => 'admin', :action => 'create_system' },
{'id' => 'setup', 'method' => 'post', 'onSubmit' => 'return validateSetup()'}) { 'id' => 'setup', 'method' => 'post', 'onSubmit' => 'return validateSetup()',
'accept-charset' => 'utf-8' })
%> %>
<ol class="setup"> <ol class="setup">
<li> <li>

View file

@ -5,8 +5,10 @@
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_tag({ :controller => 'admin', :action => 'create_web'}, <%= form_tag({ :controller => 'admin', :action => 'create_web' },
{'id' => 'setup', 'method' => 'post', 'onSubmit' => 'cleanAddress(); return validateSetup()'}) { 'id' => 'setup', 'method' => 'post',
'onSubmit' => 'cleanAddress(); return validateSetup()',
'accept-charset' => 'utf-8' })
%> %>
<ol class="setup"> <ol class="setup">

View file

@ -1,7 +1,9 @@
<% @title = "Edit Web" %> <% @title = "Edit Web" %>
<%= form_tag({ :controller => 'admin', :action => 'edit_web', :web => @web.address }, <%= 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> <h2 style="margin-bottom: 3px">Name and address</h2>
@ -117,9 +119,9 @@
<h1>Other administrative tasks</h1> <h1>Other administrative tasks</h1>
<%= form_tag({:controller => 'admin', :web => @web.address, :action => 'remove_orphaned_pages'}, <%= form_tag({:controller => 'admin', :web => @web.address, :action => 'remove_orphaned_pages'},
{:id => 'remove_orphaned_pages', { :id => 'remove_orphaned_pages',
:onSubmit => "return checkSystemPassword(document.getElementById('system_password_orphaned').value)" :onSubmit => "return checkSystemPassword(document.getElementById('system_password_orphaned').value)",
}) 'accept-charset' => 'utf-8' })
%> %>
<p align="right"> <p align="right">
<small> <small>

View file

@ -5,7 +5,8 @@
<%= error_messages_for 'file' %> <%= 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' %> <%= hidden_field 'file', 'file_name' %>
<div class="inputFieldWithPrompt"> <div class="inputFieldWithPrompt">
<b>Content of <%= h @file_name %> to upload <small>(required)</small>:</b> <b>Content of <%= h @file_name %> to upload <small>(required)</small>:</b>

View file

@ -1,5 +1,5 @@
<p> <p>
<%= form_tag({}, {:multipart => true}) %> <%= form_tag({}, { 'multipart' => true, 'accept-charset' => 'utf-8' }) %>
<p> <p>
File to upload: File to upload:
<br/> <br/>

View file

@ -17,7 +17,7 @@ end
<%= list_item 'Feeds', {:action => 'feeds'}, 'Subscribe to changes by RSS' %> | <%= 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' %> | <%= 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}, <%= 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" <input type="text" id="searchField" name="query" value="Search"
onfocus="this.value == 'Search' ? this.value = '' : true" onfocus="this.value == 'Search' ? this.value = '' : true"
onblur="this.value == '' ? this.value = 'Search' : true" /> onblur="this.value == '' ? this.value = 'Search' : true" />

View file

@ -9,8 +9,9 @@
<%= render 'wiki_words_help' %> <%= render 'wiki_words_help' %>
</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()',
'accept-charset' => 'utf-8' })
%> %>
<p> <p>

View file

@ -2,7 +2,7 @@
<p> <p>
<%= form_tag({ :controller => 'wiki', :action => 'authenticate', :web => @web.address}, <%= 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> <p>
This web is password-protected. Please enter the password. This web is password-protected. Please enter the password.

View file

@ -9,8 +9,9 @@
<%= render 'wiki_words_help' %> <%= render 'wiki_words_help' %>
</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();',
'accept-charset' => 'utf-8' })
%> %>
<p> <p>

View file

@ -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"] %> <%= "<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}, <%= 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> <p>
<textarea name="content" style="font-size: 12px; width: 450px; height: 500px"><%= @revision.content %></textarea> <textarea name="content" style="font-size: 12px; width: 450px; height: 500px"><%= @revision.content %></textarea>