Sha256: afa2838583602b775ecd6980b85ff0d84a3366ab09a3a16d3584a67d838b0689

Contents?: true

Size: 1.36 KB

Versions: 10

Compression:

Stored size: 1.36 KB

Contents

<%= form_for content_element, html: ajax_form_hash(dom_target(version, :free_form_content_element_container), insert_method: 'append', sub_class: "AddALineForm", container: dom_target(version, :new_free_form_content_element)) do |f| %>
  <%= f.collection_select :content_element_type_id, Pulitzer::ContentElementType.all, :id, :name, {},
  revealer(dom_id(version, :content_element_type_revealer), highlander: true) %>

  <div <%= revealer_target_attrs dom_id(version, :content_element_type_revealer) %>></div>

  <div <%= revealer_option_attrs(dom_id(version, :content_element_type_revealer), trigger: Pulitzer::ContentElementType.find_by(name: 'Image').id) %> >
    <%= f.label :height %>
    <%= f.text_field :height, placeholder: 'Height' %>
    <%= f.label :width %>
    <%= f.text_field :width, placeholder: 'Width' %>
  </div>

  <div <%= revealer_option_attrs(dom_id(version, :content_element_type_revealer), trigger: Pulitzer::ContentElementType.find_by(name: 'Text').id) %>>
    <%= f.label :text_editor, "Text editor" %>
    <%= f.select :text_editor, Pulitzer.text_editor_toolbars.map { |t| t[:name] } %>
  </div>

  <%= f.hidden_field :version_id %>
  <%= f.hidden_field :kind, value: :free_form %>

  <%= submit_tag "Create" %>
  <%= link_to('Cancel', '#', :class => 'button',
    data: { emptier: true, target: dom_target(version, :new_free_form_content_element) } ) %>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pulitzer-0.3.9 app/views/pulitzer/content_elements/_new.html.erb
pulitzer-0.3.8 app/views/pulitzer/content_elements/_new.html.erb
pulitzer-0.3.7 app/views/pulitzer/content_elements/_new.html.erb
pulitzer-0.3.6 app/views/pulitzer/content_elements/_new.html.erb
pulitzer-0.3.5 app/views/pulitzer/content_elements/_new.html.erb
pulitzer-0.3.4 app/views/pulitzer/content_elements/_new.html.erb
pulitzer-0.3.3 app/views/pulitzer/content_elements/_new.html.erb
pulitzer-0.3.2 app/views/pulitzer/content_elements/_new.html.erb
pulitzer-0.3.1 app/views/pulitzer/content_elements/_new.html.erb
pulitzer-0.3.0 app/views/pulitzer/content_elements/_new.html.erb