Sha256: ecbb3a703631cec575c1fe70da307aa2efcfbbcb4ea3b55c4d33448dff41c46e

Contents?: true

Size: 1.7 KB

Versions: 5

Compression:

Stored size: 1.7 KB

Contents

.saasaparilla
	%h1 Subscription Detail

	.info
		%h2 Subscriber Contact Info
		%p
			= "#{@subscription.first_name} #{@subscription.last_name}"
			%br
			= @subscription.contact_info.email
			%br
			- if @subscription.contact_info.require_billing_address?
				= @subscription.address
				%br
				= "#{@subscription.city}, #{@subscription.state} #{@subscription.zip}"
				%br
			- if @subscription.contact_info.require_phone_number?
				= "#{@subscription.phone_number}"

	.info
		%h2 Subscription Details
		%p
			="Status: "
			= @subscription.status 
			%br
			- if @subscription.no_charge
				Complimentary (no_charge):
				= @subscription.no_charge 
				%br
			= "Balance: "
			= number_to_currency(@subscription.balance)
			%br
			= "Last Invoiced: "
			= @subscription.invoiced_on.to_s(:month_day_year) unless @subscription.invoiced_on.nil?
			%br
			= "Last Transaction Date: "
			= @subscription.last_transaction_date
			%br
			= "Last Transaction Amount: "
			= number_to_currency(@subscription.last_transaction_amount)
			%br
			%br
			= link_to "See all transactions", admin_subscription_transactions_path(@subscription)
	
	.info
		%h2 Actions
		%p
			= link_to "Cancel Subscription", cancel_admin_subscription_path(@subscription), :confirm => "Are you sure you want to cancel this subscription?" unless @subscription.status == "canceled" 
			%br
			- if @subscription.no_charge
				= link_to "Revoke complimentary subscription", toggle_no_charge_admin_subscription_path(@subscription), :confirm => "Are you sure you want to comp this subscription?"
			- else 
				= link_to "Make subscription complimentary", toggle_no_charge_admin_subscription_path(@subscription), :confirm => "Are you sure you want to comp this subscription?"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
saasaparilla-0.2.2 app/views/saasaparilla/admin/subscriptions/show.html.haml
saasaparilla-0.2.1 app/views/saasaparilla/admin/subscriptions/show.html.haml
saasaparilla-0.1.8 app/views/saasaparilla/admin/subscriptions/show.html.haml
saasaparilla-0.1.7 app/views/saasaparilla/admin/subscriptions/show.html.haml
saasaparilla-0.1.6 app/views/saasaparilla/admin/subscriptions/show.html.haml