Created
June 16, 2011 18:53
-
-
Save lxcodes/1029953 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get '/Registration' do | |
protected! | |
@registerees = User.all(:isRegistered => true) | |
erb :registration | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>REGISTRATION</h1> | |
<div class="hSeparator"><!--[ie]--></div> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam diam libero, aliquet sit amet posuere et, congue sit amet orci. Suspendisse ultricies, nisi non imperdiet congue, erat urna faucibus dui, eget aliquam quam massa rhoncus augue. Vestibulum laoreet adipiscing libero, quis lacinia nisl tristique nec. </p> | |
<form id="registration" action="/registration" method="post" accept-charset="utf-8"> | |
<table> | |
<tr> | |
<td><input type="text" name="reg_first_name" value="" id="reg_first_name"><br /><label for="reg_first_name">First Name</label></td> | |
<td><input type="text" name="reg_last_name" value="" id="reg_last_name"><br /><label for="reg_last_name">Last Name</label></td> | |
</tr> | |
<tr> | |
<td><input type="text" name="reg_company" value="" id="reg_company"><br /><label for="reg_company">Company</label></td> | |
<td><input type="text" name="reg_title" value="" id="reg_title"><br /><label for="reg_title">Title</label></td> | |
<td><input type="text" name="reg_language" value="" id="reg_language"><br /><label for="reg_language">Language</label></td> | |
</tr> | |
<tr> | |
<td><input type="text" name="reg_city" value="" id="reg_city"><br /><label for="reg_city">City</label></td> | |
<td><input type="text" name="reg_country" value="" id="reg_country"><br /><label for="reg_country">Country</label></td> | |
</tr> | |
<tr> | |
<td><input type="text" name="reg_mobile_number" value="" id="reg_language"><br /><label for="reg_mobile_number">Mobile #</label></td> | |
</tr> | |
</table> | |
<p id="attending">Attending: <label><strong>YES</strong><input type="radio" name="attending" value="yes"></label> <label><strong>NO</strong><input type="radio" name="attending" value="no"></label> | |
<p id="submit"><input type="submit" value="Continue →"></p> | |
</form> | |
<div id="confirmed"> | |
<h4>People who have already confirmed:</h4> | |
<div class="hSeparator"><!--[ie]--></div> | |
<table> | |
<%- @registerees.each do |r| %> | |
<tr> | |
<td><%= r[:fullName] %></td><td><%= r[:title]+' : '+r[:company] %></td><td><%= r[:city]+', '+r[:country]%></td> | |
</tr> | |
<% end %> | |
</table> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment