Sha256: 8bcac12dfe44c414d9f1d8bfacb215e29f518adbcf40a75644478f519ff0d547
Contents?: true
Size: 569 Bytes
Versions: 4
Compression:
Stored size: 569 Bytes
Contents
<%= form_for post_tag, url: post_post_tags_path(post), html: ajax_form_hash("#show_#{underscore_class_name(tag_model)}") do |f| %> <%= f.label :name %> <%= f.select :label_id, options_from_collection_for_select(tag_model.constantize.all, :id, :name), {}, select2_html_options(tag_model) %> <%= f.hidden_field :post_id, value: post.id %> <%= f.hidden_field :label_type, value: tag_model %> <%= f.submit "Create" %> <%= link_to('Cancel', '#', class: 'button', data: { emptier: true, target: "#new_tag_#{underscore_class_name(tag_model)}" } ) %> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems