This repository has been archived by the owner on Nov 11, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dan Croak
committed
Feb 4, 2011
1 parent
b21b9ac
commit 31c315f
Showing
10 changed files
with
49 additions
and
1,336 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
class UsersController < ApplicationController | ||
def update | ||
|
||
if current_user.update_attributes(params[:user]) | ||
render :partial => 'parties/thanks' | ||
else | ||
render :partial => 'parties/form' | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<section id="registration"> | ||
<header id="registration-banner"> | ||
<img src="/images/RSVP-banner.png" alt="registration-banner" width="422" height="145" /> | ||
</header> | ||
<%= semantic_form_for current_user, :remote => true, | ||
:html => { :id => "event-registration", | ||
'data-type' => 'html' } do |form| %> | ||
<ol class="form"> | ||
<%= form.input :description, :label => "Tell local students about yourself", :required => true %> | ||
<li id="radio"> | ||
<label>Are you attending the after-party?<abbr title="required">*</abbr></label> | ||
<p class="radio developer"> | ||
<%= form.radio_button :partying, "Partying", :checked => "checked" %> | ||
<%= form.label :partying, "Partying", :for => "user_partying_partying" %> | ||
</p> | ||
<p class="radio designer"> | ||
<%= form.radio_button :partying, "Not Partying" %> | ||
<%= form.label :partying, "Not Partying", :for => "user_partying_not_partying" %> | ||
</p> | ||
</li> | ||
<li id="submit-button"> | ||
<%= form.submit "Change RSVP", :disable_with => "Please wait..." %> | ||
</li> | ||
</ol> | ||
<% end %> | ||
</section> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="student"> | ||
<h2>Thanks for RSVPing!</h2> | ||
</div> |
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
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
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
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
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
Oops, something went wrong.