Sha256: aa7b15b167423ce287dc749944791d132a4a6371170cbb769c7a47893da43ae7
Contents?: true
Size: 1.93 KB
Versions: 5
Compression:
Stored size: 1.93 KB
Contents
<%= form_for(@testimonial, :url => (@testimonial.new_record? ? dhatu.testimonials_path : testimonial_path), :method => (@testimonial.new_record? ? :post : :put), :remote => true, :html => {:id=>"form_testimonial", :class=>"mb-0 form-horizontal"}) do |f| %> <div id="testimonial_form_error"> <%= @testimonial.errors[:base].to_sentence %> </div> <div class="form-inputs m-15"> <div class="row"> <div class="col-md-4 pr-20"> <!-- Name (string) --> <%= theme_form_field(@testimonial, :name, form_style: "top-bottom", html_options: { placeholder: "Dr. Alexander Grahambell"}) -%> </div> <div class="col-md-4 pr-20"> <!-- Designation (string) --> <%= theme_form_field(@testimonial, :designation, form_style: "top-bottom", html_options: { placeholder: "Vice President"}) -%> </div> </div> <div class="row"> <div class="col-md-4 pr-20"> <!-- Organisation (string) --> <%= theme_form_field(@testimonial, :organisation, form_style: "top-bottom", html_options: { placeholder: "ABC Oil Corporation"}) -%> </div> <div class="col-md-4 pr-20"> <!-- Priority (integer) --> <%= theme_form_field(@team_member, :priority, required: false, html_options: {type: :number, style: "width:70px;"}, form_style: "top-bottom") %> </div> </div> <!-- Statement (text) --> <%= theme_form_field(@testimonial, :statement, required: true, html_options: {type: :textarea, class: "form-control wysihtml5", "data-stylesheet-url": "assets/wysiwyg-color.css"}, form_style: "top-bottom") -%> </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
5 entries across 5 versions & 1 rubygems