-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
8 changed files
with
112 additions
and
44 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
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,27 +1,49 @@ | ||
<p id="notice"><%= notice %></p> | ||
<script type="text/javascript"> | ||
$(document).ready(function(){ | ||
$( "input:submit", ".update_button" ).button(); | ||
}); | ||
</script> | ||
|
||
|
||
<% if @address %> | ||
<div style="text-align:center"> | ||
<%= link_to "Create/Edit Subscriptions", new_subscription_path(:address_id => @address.id) %> | ||
</div> | ||
<div style="text-align:center">Or</div> | ||
<div class="update_button"> | ||
<%= button_to "Update This Address Now!", :controller => "users", :action => "run_update", :address_id => @address.id %> | ||
</div> | ||
<br> | ||
<p> | ||
<div> | ||
<b>Line1:</b> | ||
<%= @address.line1 %> | ||
|
||
</div> | ||
<div> | ||
<% if @address.line2 %> | ||
<b>Line2:</b> | ||
<%= @address.line2 %> | ||
<% end %> | ||
</div> | ||
<div> | ||
<b>City:</b> | ||
<%= @address.city %> | ||
</div> | ||
<div> | ||
<b>State:</b> | ||
<%= @address.state %> | ||
</div> | ||
<div> | ||
<b>Zip:</b> | ||
<%= @address.zip %> | ||
<b>Category:</b> | ||
<%= @address.category %> | ||
</div> | ||
</p> | ||
|
||
<% @address.subscriptions.each do |sub| %> | ||
<p> | ||
<%= render "subscriptions/quickshow.html.erb", :@subscription => sub %> | ||
</p> | ||
<% end %> | ||
|
||
<%= link_to "Create/Edit Subscriptions", new_subscription_path(:address_id => @address.id) %> | ||
<% else %> | ||
You haven't updated any addresses for this category yet. Update today! | ||
<% 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 |
---|---|---|
@@ -1,8 +1,16 @@ | ||
<div> | ||
<b> Email: </b> | ||
<%= @subscribable.email %> | ||
</div> | ||
<div> | ||
<b> Full Name: </b> | ||
<%= @subscribable.full_name %> | ||
</div> | ||
<div> | ||
<b> Country: </b> | ||
<%= @subscribable.country %> | ||
</div> | ||
<div> | ||
<b> Phone Number: </b> | ||
<%= @subscribable.phone_number %> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
<div> | ||
<b> Lincense #: </b> | ||
<%= @subscribable.driver_license %> | ||
</div> | ||
<div> | ||
<b> SSN: </b> | ||
<%= @subscribable.ssn %> | ||
</div> | ||
<div> | ||
<b> County: </b> | ||
<%= @subscribable.county %> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<br> | ||
<% if @subscription.subscribable_id != nil %> | ||
<b>Subscriber Type:</b> | ||
<b>Subscriber:</b> | ||
<%= @subscription.subscribable_type %> | ||
<%= render "subscriptions/#{@subscription.subscribable_type.downcase}.html.erb", :@subscribable => @subscription.subscribable %> | ||
<% 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 |
---|---|---|
@@ -1,25 +1,40 @@ | ||
<script> | ||
$(function() { | ||
$( "#tabs" ).tabs({ disable: true, collapsible: true }) }); | ||
$(function() { | ||
$( "#tabs" ).accordion({ autoHeight: false}); | ||
}); | ||
|
||
</script> | ||
|
||
<div id="tabs"> | ||
<ul> | ||
<li><img style="float:left" src="/assets/home_icon.png"><a href="#tabs-1">Home</a></li> | ||
<li><a href="#tabs-2">Office</a></li> | ||
<li><a href="#tabs-3">School</a></li> | ||
<li><a href="#tabs-4">Travel</a></li> | ||
</ul> | ||
<div id="tabs-1"> | ||
Tab 1 content | ||
</div> | ||
<div id="tabs-2"> | ||
Tab 2 content | ||
</div> | ||
<div id="tabs-3"> | ||
Tab 3 content | ||
</div> | ||
<div id="tabs-4"> | ||
Tab 4 content | ||
</div> | ||
</div> | ||
<h3><a href="#home">Home</a></h3> | ||
<div> | ||
<p> | ||
<%= render "addresses/quickshow.html.erb", :@address => home %> | ||
</p> | ||
</div> | ||
<h3><a href="#office">Office</a></h3> | ||
<div> | ||
<p> | ||
<%= render "addresses/quickshow.html.erb", :@address => office %> | ||
</p> | ||
</div> | ||
<h3><a href="#school">School</a></h3> | ||
<div> | ||
<p> | ||
<%= render "addresses/quickshow.html.erb", :@address => school %> | ||
</p> | ||
</div> | ||
<h3><a href="#travel">Travel</a></h3> | ||
<div> | ||
<p> | ||
<%= render "addresses/quickshow.html.erb", :@address => travel %> | ||
</p> | ||
</div> | ||
<h3><a href="#travel">Other</a></h3> | ||
<div> | ||
<p> | ||
<%= render "addresses/quickshow.html.erb", :@address => other %> | ||
</p> | ||
</div> | ||
|
||
</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