Skip to content

Commit

Permalink
Hide proxy id. Issue #205
Browse files Browse the repository at this point in the history
  • Loading branch information
shua123 committed Sep 26, 2016
1 parent 44a7f16 commit 8d2abc1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/gift_cards/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
<%= f.label :batch_id %><br>
<%= f.text_field :batch_id, class: 'input-mini', placeholder: '4321' %>
</div>
<% if ENV['BLUE_RIDGE'].present? %>
<div class="field">
<%= f.label :proxy_id %><br>
<%= f.text_field :proxy_id, class: 'input-mini' %>
</div>
<% end %>
<div class='field input-prepend'>
<%= f.label :gift_card_number %><br>
<span class='add-on'>****-****-***</span>
Expand Down
2 changes: 2 additions & 0 deletions app/views/gift_cards/_gift_card.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<td><%= gift_card.reason.titleize %></td>
<td><%= gift_card.giftable_id %></td>
<td><%= gift_card.batch_id %></td>
<% if ENV['BLUE_RIDGE'].present? %>
<td><%= gift_card.proxy_id %></td>
<% end %>
<td><%= gift_card.gift_card_number %></td>
<td><%= gift_card.expiration_date %></td>
<td><%= humanized_money_with_symbol gift_card.amount %></td>
Expand Down
8 changes: 8 additions & 0 deletions app/views/gift_cards/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
<th>Name</th>
<th>Address</th>
<th>Batch</th>
<% if ENV['BLUE_RIDGE'].present? %>
<th>ProxyID</th>
<% end %>
<th>Card Number</th>
<th>Expiration Date</th>
<th>Amount</th>
Expand Down Expand Up @@ -52,9 +54,11 @@
<td id="new-batchid-<%= @recent_signups[index].id %>">
<%= form.text_field :batch_id, class: 'input-small', :placeholder => "Batch ID" %>
</td>
<% if ENV['BLUE_RIDGE'].present? %>
<td id="new-proxyid-<%= @recent_signups[index].id %>">
<%= form.text_field :proxy_id,class: 'input-mini', :placeholder => "Proxy ID" %>
</td>
<% end %>
<td id="new-cardnumber-<%= @recent_signups[index].id %>" class='input-prepend'>
<span class='add-on'>****-****-***</span>
<%= form.text_field :gift_card_number,class: 'input-small', :placeholder => "#####" %>
Expand Down Expand Up @@ -107,7 +111,9 @@
<th>Reason</th>
<th>Giftable ID</th>
<th>Batch</th>
<% if ENV['BLUE_RIDGE'].present? %>
<th>Proxy ID</th>
<% end %>
<th>Card Number</th>
<th>Expiration Date</th>
<th>Amount</th>
Expand All @@ -126,7 +132,9 @@
<td><%= gift_card.reason.titleize %></td>
<td><%= gift_card.giftable_id %></td>
<td><%= gift_card.batch_id %></td>
<% if ENV['BLUE_RIDGE'].present? %>
<td><%= gift_card.proxy_id %></td>
<% end %>
<td><%= gift_card.gift_card_number %></td>
<td><%= gift_card.expiration_date %></td>
<td><%= humanized_money_with_symbol gift_card.amount %></td>
Expand Down
2 changes: 2 additions & 0 deletions app/views/people/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@
<%= form.hidden_field :person_id, :value => @person.id %>
<%= form.select :reason, [['Signup', 'signup'], ['Test', 'test'], ['Referral', 'referral'], ['Other', 'other']], { :prompt => "Reason" }, class: 'input-small', id: "new-reason" %>
<%= form.text_field :notes, placeholder: 'Notes', class: 'input-medium', id: 'new-notes' %>
<% if ENV['BLUE_RIDGE'].present? %>
<%= form.text_field :proxy_id, placeholder: "ProxyID",class: 'input-mini', id: "new-proxyid" %>
<% end %>
<%= form.text_field :batch_id, placeholder: "BatchID",class: 'input-mini', id: "new-batchid" %>
<div class='input-prepend'>
<span class='add-on'>****-****-***</span>
Expand Down

0 comments on commit 8d2abc1

Please sign in to comment.