Sha256: 9fa3d83df1cb163f86111fb134bb45a49d9bfee4b570919a53db89135315f754

Contents?: true

Size: 1.92 KB

Versions: 9

Compression:

Stored size: 1.92 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(@testimonial, :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: close_form_modal, class: "pull-right btn btn-white" %>
    </div>

    <%= clear_tag %>

<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dhatu-0.3.9.pre.materialize app/views/dhatu/testimonials/_form.html.erb
dhatu-0.3.8.pre.materialize app/views/dhatu/testimonials/_form.html.erb
dhatu-0.3.7.pre.materialize app/views/dhatu/testimonials/_form.html.erb
dhatu-0.3.6.pre.materialize app/views/dhatu/testimonials/_form.html.erb
dhatu-0.3.5.pre.materialize app/views/dhatu/testimonials/_form.html.erb
dhatu-0.3.4.pre.materialize app/views/dhatu/testimonials/_form.html.erb
dhatu-0.3.3.pre.materialize app/views/dhatu/testimonials/_form.html.erb
dhatu-0.3.2.pre.materialize app/views/dhatu/testimonials/_form.html.erb
dhatu-0.3.1.pre.materialize app/views/dhatu/testimonials/_form.html.erb