Created
December 8, 2010 08:36
-
-
Save veganstraightedge/733040 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
<% if @artist %> | |
<%= link_to "Edit Artist Information", @artist %> | |
<% if @artist.representative_required %> | |
<% if @representative %> | |
<%= link_to "Edit Representative", edit_representative_path(@representative) %> | |
<% else %> | |
<%= link_to "Add Representative", new_representative_path %> | |
<% end %> | |
<% else %> | |
<%= link_to "Add Artist Information", new_artist_path %> | |
<% end %> | |
<% if @user.unpaid? and @artist.north_america? %> | |
<% form_tag "https://www.sandbox.paypal.com/cgi-bin/webscr" do %> | |
<%= hidden_field_tag :cmd, "_s-xclick" %> | |
<%= hidden_field_tag :encrypted, @user.paypal_encrypted(submissions_url, transactions_url(:secret => 'foobar')) %> | |
<p><%= submit_tag "Checkout" %></p> | |
<% end %> | |
<% else %> | |
<%= link_to "Submit Art", new_submission_path %> | |
<% end %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment