Skip to content

Instantly share code, notes, and snippets.

@veganstraightedge
Created December 8, 2010 08:36
Show Gist options
  • Save veganstraightedge/733040 to your computer and use it in GitHub Desktop.
Save veganstraightedge/733040 to your computer and use it in GitHub Desktop.
<% 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