Sha256: 654a89a936954c4edb5cd6ad86de5b5b1a1452c89906205c9701952bb1aedc38

Contents?: true

Size: 1.08 KB

Versions: 20

Compression:

Stored size: 1.08 KB

Contents

<div class="base-errors">
  <% @obj.errors[:base].each do |err| %>
    <%= err %>
    <br>
  <% end %>
</div>

<%= simple_form_for @obj, url: polymorphic_path([:admin, @parent, :clone]),
                    method: :post, remote: true, html: {class: "form_cloner"} do |f| %>

  <%= f.input :site_id, as: :select, collection: sites_for_select,
              input_html: {id: "select_site_clone", class: "alchemy_selectbox"} %>

  <%= f.input :language_id, as: :select,
              collection: Alchemy::Language.all.
                  map {|l| [l.name, l.id, {data: {site_id: l.site.id}}]},
              input_html: {id: "select_language_clone", class: "alchemy_selectbox"} %>


  <div class="submit">
    <%= f.submit t(:clone, model: @parent.class.model_name.human) %>
  </div>


<% end %>

<script type="text/javascript">


    $("#select_site_clone").select2filter({
        elementToFilter: "#select_language_clone",
        hideparam: "site-id"
    });

    $("#select_language_clone").select2filter({
        elementToFilter: "#select_category_clone",
        hideparam: "language-id"
    });

</script>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
alchemy-custom-model-3.2 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-3.1.5 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-3.1.4 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-3.1.3 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-3.1.2 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-3.1.1 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-3.1.0 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-2.2.2 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-3.0.0 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-2.2.1 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-2.2.0 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-2.1.2 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-2.1.1 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-2.1.0 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-2.0.3 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-2.0.2 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-2.0.1 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-2.0.0 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-0.1.9 app/views/alchemy/custom/model/admin/clones/new.html.erb
alchemy-custom-model-0.1.7 app/views/alchemy/custom/model/admin/clones/new.html.erb