instiki/app/views/wiki/login.rhtml

21 lines
790 B
Plaintext
Raw Normal View History

2007-01-22 14:43:50 +01:00
<% @title = "#{@web_name} Login" %><% @hide_navigation = true %>
<% form_tag({ :controller => 'wiki', :action => 'authenticate', :web => @web.address},
{ 'id' => 'loginForm', 'method' => 'post', 'accept-charset' => 'utf-8' }) do %>
2007-01-22 14:43:50 +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>
2007-02-19 06:14:55 +01:00
<label for="password"><b>Password:</b></label>
2007-01-22 14:43:50 +01:00
<input type="password" name="password" id="password" />
2007-02-19 06:14:55 +01:00
<input type="submit" value="Login" />
2007-01-22 14:43:50 +01:00
</p>
<% end %>
2007-01-22 14:43:50 +01:00
<script type="text/javascript">
document.forms["loginForm"].elements["password"].focus();
</script>