Sha256: 60a8755e1d1a6f332cfb138fb79cb0e1140239dccee8e221db275499c2b4ab4b
Contents?: true
Size: 1.65 KB
Versions: 6
Compression:
Stored size: 1.65 KB
Contents
<%= form_for(@offer, :url => (@offer.new_record? ? dhatu.offers_path : dhatu.offer_path), :method => (@offer.new_record? ? :post : :put), :remote => true, :html => {:id=>"form_offer", :class=>"mb-0 form-horizontal"}) do |f| %> <div id="offer_form_error"> <%= @offer.errors[:base].to_sentence %> </div> <div class="form-inputs m-15"> <%= theme_form_field(@offer, :title, form_style: "top-bottom", html_options: { placeholder: "e.g: Samsung Galaxy S8 Dual SIM Smartphone (64GB, Black, 5.8”) + FREE 128GB MicroSD Card"}) %> <%= theme_form_field(@offer, :offer_text, required: false, form_style: "top-bottom", html_options: { placeholder: "e.g Dhs 2,499, Was Dhs 2,799, Save Dhs 300 (11%)" }) %> <%= theme_form_field(@offer, :description, required: true, html_options: {type: :textarea, class: "form-control wysihtml5", "data-stylesheet-url": "assets/wysiwyg-color.css"}, form_style: "top-bottom") %> <div class="row"> <div class="col-md-4 pr-20"> <%= theme_form_field(@offer, :starts_at, required: false, html_options: {type: :date}, form_style: "top-bottom") %> </div> <div class="col-md-4 pl-20"> <%= theme_form_field(@offer, :ends_at, required: false, html_options: {type: :date}, form_style: "top-bottom") %> </div> </div> </div> <div> <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %> <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %> </div> <%= clear_tag %> <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems