Sha256: f349b14a590bbe5b64b9d61966d4988883cf2816b374128db9493c93e92acfa1

Contents?: true

Size: 1.88 KB

Versions: 20

Compression:

Stored size: 1.88 KB

Contents

<%= form_for(@meta_tag,
            :url => (@meta_tag.new_record? ? dhatu.meta_tags_path(meta_taggable_id: @meta_taggable.id, meta_taggable_type: @meta_taggable.class.name) : dhatu.meta_tag_path(meta_taggable_id: @meta_taggable.id, meta_taggable_type: @meta_taggable.class.name)),
            :method => (@meta_tag.new_record? ? :post : :put),
            :remote => true,
            :html => {:id=>"form_page", :class=>"mb-0 form-horizontal"}) do |f| %>

      <%= hidden_field_tag :meta_taggable_id, params[:meta_taggable_id] %>

      <%= hidden_field_tag :meta_taggable_type, params[:meta_taggable_type] %>

      <div id="page_form_error">
        <%= @meta_tag.errors[:base].to_sentence %>
      </div>

      <div class="form-inputs m-15">

        <div class="row">
          <div class="col-md-12 pr-20">
            <% options_list = Array[*Dhatu::MetaTag::META_TYPES.map {|i| [i,i] }] %>

            <%= theme_form_select_group(@meta_tag, :meta_type, options_list, param_name: "dhatu/meta_tag[meta_type]", label: "Choose Type", prompt: "Select Type", include_blank: true, form_style: "top-bottom") %>
          </div>
        </div>
        <div class="row">
          <div class="col-md-12 pr-20">
            <%= theme_form_field(@meta_tag, :meta_key, form_style: "top-bottom") %>
          </div>
        </div>

        <div class="row">
          <div class="col-md-12 pl-20">
            <%= theme_form_field(@meta_tag, :meta_value, form_style: "top-bottom", html_options: {"data-id": @meta_tag.id.to_s, type: "textarea", height: "400px"}) %>
          </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: "closeGenericModal();", class: "pull-right btn btn-white" %>
      </div>

      <%= clear_tag %>
  </div>

<% end %>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
dhatu-0.3.9.pre.materialize app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.3.8.pre.materialize app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.3.7.pre.materialize app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.3.6.pre.materialize app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.3.5.pre.materialize app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.3.4.pre.materialize app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.3.3.pre.materialize app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.3.2.pre.materialize app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.3.1.pre.materialize app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.3.0.pre.materialize app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.2.3 app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.2.2 app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.2.1 app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.2.0 app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.1.25 app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.1.24 app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.1.23 app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.1.22 app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.1.21 app/views/dhatu/meta_tags/_form.html.erb
dhatu-0.1.20 app/views/dhatu/meta_tags/_form.html.erb