Sha256: 6c06756e229f1fd41edd97819427eee5df0ba05d0f1c0089418c42a144e1a25f

Contents?: true

Size: 1.73 KB

Versions: 625

Compression:

Stored size: 1.73 KB

Contents

<form action='/register' method='post' id='register_form'>
<p class='other_options'>
<a href='/login?return_url=<%= @return_url %>'>Already a member?</a>
</p>
<h1>Register</h1>
<input type='hidden'    name='return_url' value='<%= @return_url %>' />
<input type='text'      name='first_name' id='first_name' placeholder='First name' />
<input type='text'      name='last_name'  id='last_name'  placeholder='Last name' />
<input type='text'      name='email'      id='email'      placeholder='Email address' />
<input type='text'      name='phone'      id='phone'      placeholder='Phone number' />
<input type='password'  name='pass1'      id='pass1'      placeholder='Password' />
<input type='password'  name='pass2'      id='pass2'      placeholder='Confirm password' />
<div id='message'></div>
<p>
  <input type='button' id='btn_cancel'   value='Cancel'   onclick="parent.$.fn.colorbox.close();" />
	<input type='submit' id='btn_register' value='Register' onclick='register(); return false;' />
</p>
</form>

<% content_for :caboose_js do %>
<script type='text/javascript'>
var modal = new CabooseModal(400);
function register()
{
  modal.autosize("<p class='loading'>Registering...</p>");
	$.ajax({
		url: '/register',
		type: 'post',
		data: $('#register_form').serialize(),
		success: function(resp) {
		  if (resp.error)
		    modal.autosize("<p class='note error'>" + resp.error + "</p>");
			else if (resp.redirect != false)
			  <%= @modal ? "" : "parent." %>window.location = resp.redirect;			  
			else
			  parent.location.reload(true);
		},
		error: function() {	
		  modal.autosize("<p class='note error'>Error</p>"); 
		}
	});
}
</script>
<% end %>
<%= content_for :caboose_css do %>
<%= stylesheet_link_tag "caboose/register", :media => "all" %>
<% end %>

Version data entries

625 entries across 625 versions & 1 rubygems

Version Path
caboose-cms-0.7.62 app/views/caboose/register/index.html.erb
caboose-cms-0.7.61 app/views/caboose/register/index.html.erb
caboose-cms-0.7.60 app/views/caboose/register/index.html.erb
caboose-cms-0.7.59 app/views/caboose/register/index.html.erb
caboose-cms-0.7.58 app/views/caboose/register/index.html.erb
caboose-cms-0.7.57 app/views/caboose/register/index.html.erb
caboose-cms-0.7.55 app/views/caboose/register/index.html.erb
caboose-cms-0.7.54 app/views/caboose/register/index.html.erb
caboose-cms-0.7.53 app/views/caboose/register/index.html.erb
caboose-cms-0.7.52 app/views/caboose/register/index.html.erb
caboose-cms-0.7.51 app/views/caboose/register/index.html.erb
caboose-cms-0.7.50 app/views/caboose/register/index.html.erb
caboose-cms-0.7.49 app/views/caboose/register/index.html.erb
caboose-cms-0.7.48 app/views/caboose/register/index.html.erb
caboose-cms-0.7.47 app/views/caboose/register/index.html.erb
caboose-cms-0.7.46 app/views/caboose/register/index.html.erb
caboose-cms-0.7.45 app/views/caboose/register/index.html.erb
caboose-cms-0.7.44 app/views/caboose/register/index.html.erb
caboose-cms-0.7.43 app/views/caboose/register/index.html.erb
caboose-cms-0.7.42 app/views/caboose/register/index.html.erb