Sha256: b8f01901486ec067c15f1c7ea19bbef7458ff8024cc290db01edae49379f1458

Contents?: true

Size: 820 Bytes

Versions: 15

Compression:

Stored size: 820 Bytes

Contents

<%= form_tag :action => :relate, :id => @item.id do %>

  <fieldset class="inputs">

    <%= hidden_field :related, :id %>
    <%= hidden_field :related, :model, :value => model_to_relate %>
    <%= hidden_field :related, :association_name, :value => association_name %>

    <ol>
      <li>
        <input data-autocomplete="<%= "/admin/#{model_to_relate.to_resource}/autocomplete" %>"
               id="autocomplete"
               id_element="<%= "##{association_name} #related_id" %>"
               name="autocomplete"
               size="30"
               type="text"
               value="" />
        <%= submit_tag Typus::I18n.t("Assign"),
                       :class => "button",
                       :disable_with => Typus::I18n.t("Sending data ...") %>
      </li>
    </ol>

  </fieldset>

<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
typus-3.0.12 app/views/admin/templates/_relate_form_with_autocomplete.html.erb
typus-3.0.11 app/views/admin/templates/_relate_form_with_autocomplete.html.erb
typus-3.0.11.rc5 app/views/admin/templates/_relate_form_with_autocomplete.html.erb
typus-3.0.11.rc4 app/views/admin/templates/_relate_form_with_autocomplete.html.erb
typus-3.0.11.rc3 app/views/admin/templates/_relate_form_with_autocomplete.html.erb
typus-3.1.0.rc6 app/views/admin/templates/_relate_form_with_autocomplete.html.erb
typus-3.1.0.rc5 app/views/admin/templates/_relate_form_with_autocomplete.html.erb
typus-3.1.0.rc4 app/views/admin/templates/_relate_form_with_autocomplete.html.erb
typus-3.1.0.rc3 app/views/admin/templates/_relate_form_with_autocomplete.html.erb
typus-3.1.0.rc2 app/views/admin/templates/_relate_form_with_autocomplete.html.erb
typus-3.0.11.rc2 app/views/admin/templates/_relate_form_with_autocomplete.html.erb
typus-3.0.11.rc1 app/views/admin/templates/_relate_form_with_autocomplete.html.erb
typus-3.1.0.rc1 app/views/admin/templates/_relate_form_with_autocomplete.html.erb
typus-3.0.10 app/views/admin/templates/_relate_form_with_autocomplete.html.erb
typus-3.0.9 app/views/admin/templates/_relate_form_with_autocomplete.html.erb