Sha256: 935b04ac94c3877284737507fcc6437d599cf13e7a9a84e41f3519126db10ff3

Contents?: true

Size: 1.86 KB

Versions: 1

Compression:

Stored size: 1.86 KB

Contents

<div class="login">
	<%= form_remote_tag(
		:update => divId,
		:url => { :controller => 'account', :action => 'login' },
		:interactive => visual_effect(:BlindDown, divId)) %>
		<!--:position => 'after',-->

		<input type="hidden" id="divId" name="divId" value="<%= divId %>"/>

		<label for="person_name">Pseudo:</label>
		<%= text_field "person", "name", :size => 10 %>

		<%= link_to_function('+',
			"Element.toggle(this);"+visual_effect(:Grow, 'user_password_'+divId.to_s)) %>

		<span style="display:none" id="user_password_<%= divId %>">
			&nbsp;
			<label for="user_password">Password:</label>
			<%= password_field "user", "password", :size => 10 %>

			<%= link_to_function('email? >',
				"Element.toggle(this);"+visual_effect(:Grow, 'person_email_'+divId.to_s)) %>
		</span>

		<span style="display:none" id="person_email_<%= divId %>">
			<br/>
			<!--
			<label for="user_password_confirmation">Confirm password:</label>
			<%= password_field "user", "password_confirmation", :size => 10 %>
			&nbsp;
			-->
			<label for="person_email">Email (or check key):</label>
			<%= text_field "person", "email", :size => 30 %>
		</span>

		<%= submit_tag 'Ok' %>

		<%= render :partial => '/help',
			:locals => { :divId => 'login'+divId.to_s, :content => '
				<ul>You can propose an element
					<li>with no pseudo</li>
					<li>with an unprotected pseudo</li>
					<li>with a password protected pseudo (click on the "+")</li>
					<li>with a password protected and email verified pseudo (TODO)</li>
				</ul>
				The last method is the only secure way to protect a nickname on
				<strong>this</strong> server.
				<br/>
				If a nick is not protected and verified, anybody else can protect it for
				themselves if they at least supply a password <em>and</em> an email.
				<br/>
				A login must contain [3..40] characters, a password [5..40].
			' } %>
		</div>
	<%= end_form_tag %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
parlement-0.2 app/views/account/_login.rhtml