Skip to content

Commit

Permalink
Merge pull request #1571 from dangerdogz/feature/promo-tooltip
Browse files Browse the repository at this point in the history
Document promotion availability
  • Loading branch information
jhawthorn authored Nov 4, 2016
2 parents b00f4b2 + 33dc68e commit 5fccd80
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions backend/app/views/spree/admin/promotions/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@

<div id="starts_at_field" class="field">
<%= f.label :starts_at %>
<%= f.text_field :starts_at, :value => datepicker_field_value(@promotion.starts_at), :class => 'datepicker datepicker-from fullwidth' %>
<%= f.field_hint :starts_at %>
<%= f.text_field :starts_at, :value => datepicker_field_value(@promotion.starts_at), :placeholder => t(".starts_at_placeholder"), :class => 'datepicker datepicker-from fullwidth' %>
</div>

<div id="expires_at_field" class="field">
<%= f.label :expires_at %>
<%= f.text_field :expires_at, :value => datepicker_field_value(@promotion.expires_at), :class => 'datepicker datepicker-to fullwidth' %>
<%= f.field_hint :expires_at %>
<%= f.text_field :expires_at, :value => datepicker_field_value(@promotion.expires_at), :placeholder => t(".expires_at_placeholder"), :class => 'datepicker datepicker-to fullwidth' %>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion backend/app/views/spree/admin/promotions/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<% admin_breadcrumb(Spree.t(:new_promotion)) %>


<%= form_for :promotion, :url => collection_url do |f| %>
<%= form_for @promotion, :url => collection_url do |f| %>
<fieldset class="no-border-top">
<%= render :partial => 'form', :locals => { :f => f } %>
<%= render :partial => 'spree/admin/shared/new_resource_links' %>
Expand Down
7 changes: 7 additions & 0 deletions core/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,10 @@ en:
edit_price: Edit Price
new:
new_price: New Price
promotions:
form:
starts_at_placeholder: Immediately
expires_at_placeholder: Never
store_credits:
add: "Add store credit"
amount_authorized: "Amount Authorized"
Expand Down Expand Up @@ -1172,6 +1176,9 @@ en:
promotionable: "This determines whether or not promotions can apply to this product.<br/>Default: Checked"
shipping_category: "This determines what kind of shipping this product requires.<br/> Default: Default"
tax_category: "This determines what kind of taxation is applied to this product.<br/> Default: None"
spree/promotion:
starts_at: "This determines when the promotion can be applied to orders. <br/> If no value is specified, the promotion will be immediately available."
expires_at: "This determines when the promotion expires. <br/> If no value is specified, the promotion will never expires."
spree/store:
cart_tax_country_iso: "This determines which country is used for taxes on carts (orders which don't yet have an address).<br/> Default: None."
spree/variant:
Expand Down

0 comments on commit 5fccd80

Please sign in to comment.