Sha256: c7ad0aee7c2abcf35c53aea3147d38b6681c8c416eac3a53ceb46a3da31b5d4a
Contents?: true
Size: 1.84 KB
Versions: 9
Compression:
Stored size: 1.84 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-3 pr-20"> <%= theme_form_field(@offer, :starts_at, required: false, html_options: {type: :date}, form_style: "top-bottom") %> </div> <div class="col-md-3 pl-20"> <%= theme_form_field(@offer, :ends_at, required: false, html_options: {type: :date}, form_style: "top-bottom") %> </div> <div class="col-md-3 pl-20"> <%= theme_form_field(@offer, :priority, required: false, html_options: {type: :number, style: "width:70px;"}, 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: close_form_modal, class: "pull-right btn btn-white" %> </div> <%= clear_tag %> <% end %>
Version data entries
9 entries across 9 versions & 1 rubygems