2005-01-24 19:52:04 +01:00
|
|
|
<% @title = "#{@web_name} Login" %><% @hide_navigation = true %>
|
|
|
|
|
2005-04-05 14:47:59 +02:00
|
|
|
<p>
|
2007-05-08 00:46:00 +02:00
|
|
|
<% form_tag({ :controller => 'wiki', :action => 'authenticate', :web => @web.address},
|
|
|
|
{ 'name' => 'loginForm', 'id' => 'loginForm', 'method' => 'post', 'accept-charset' => 'utf-8' }) do %>
|
2005-11-13 18:38:43 +01:00
|
|
|
<p>
|
|
|
|
This web is password-protected. Please enter the password.
|
|
|
|
<% if @web.published? %>
|
|
|
|
If you don't have the password, you can view this wiki as a <%= link_to 'read-only version', :action => 'published', :id => 'HomePage' %>.
|
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<b>Password: </b>
|
|
|
|
<input type="password" name="password" id="password" />
|
|
|
|
<input type="submit" value="Login" default="yes" />
|
|
|
|
</p>
|
2007-05-08 00:46:00 +02:00
|
|
|
<% end %>
|
2005-04-05 14:47:59 +02:00
|
|
|
</p>
|
|
|
|
|
2006-04-02 05:32:39 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
document.forms["loginForm"].elements["password"].focus();
|
2005-04-05 14:47:59 +02:00
|
|
|
</script>
|