Sha256: e62ee85536161534c74aefa95220759bf6b89df0ff97bc60c2ca81850956e553
Contents?: true
Size: 763 Bytes
Versions: 11
Compression:
Stored size: 763 Bytes
Contents
= error_messages_for :coupon = form.text_field :code = form.text_field :amount = form.text_field :percent, :tip =>"Only enter an amount or a percent. Amount will take precedence over percent if both values are entered" = form.text_field :use_limit, :label => {:text => "Allowed uses"}, :tip =>"Indicates how many times the discount can be used before it expires" = form.check_box :unlimited, :label => {:text => "Unlimited uses"}, :tip => "Indicates that the coupon can be used any number of times" = form.text_field :expires_at :javascript function init_form() { Calendar.setup({ dateField : 'coupon_expires_at', triggerElement : 'coupon_expires_at' }) } - content_for(:onReady) do :plain init_form();
Version data entries
11 entries across 11 versions & 1 rubygems