Sha256: 7c1ac9d3b07c3cca4d86837b203944661db85ff7593c0e89f97f3f693bcb93b6

Contents?: true

Size: 1.5 KB

Versions: 6

Compression:

Stored size: 1.5 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">

    <!-- Name (string) -->
    <%= theme_form_field(@testimonial, :name, form_style: "top-bottom", html_options: { placeholder: "Dr. Alexander Grahambell"}) -%>
                  
    <!-- Designation (string) -->
    <%= theme_form_field(@testimonial, :designation, form_style: "top-bottom", html_options: { placeholder: "Vice President"}) -%>
                  
    <!-- Organisation (string) -->
    <%= theme_form_field(@testimonial, :organisation, form_style: "top-bottom", html_options: { placeholder: "ABC Oil Corporation"}) -%>
                  
    <!-- 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

6 entries across 6 versions & 1 rubygems

Version Path
dhatu-0.1.5 app/views/dhatu/testimonials/_form.html.erb
dhatu-0.1.4 app/views/dhatu/testimonials/_form.html.erb
dhatu-0.1.3 app/views/dhatu/testimonials/_form.html.erb
dhatu-0.1.2 app/views/dhatu/testimonials/_form.html.erb
dhatu-0.1.1 app/views/dhatu/testimonials/_form.html.erb
dhatu-0.1.0 app/views/dhatu/testimonials/_form.html.erb