Sha256: 2a658f50183af3ff884ca57283ef0eed66f11f7584ffe0bc93367dcb3d347fc6

Contents?: true

Size: 1015 Bytes

Versions: 25

Compression:

Stored size: 1015 Bytes

Contents

<%= f.label :label %>
<%= f.text_field :label %>
<%= f.label :content_element_type_id, "Type" %>
<%= f.collection_select :content_element_type_id, Pulitzer::ContentElementType.all, :id, :name, {},
{ data: { "revealer" => true, "sub-type" => "FormFieldRevealer", "revealer-children-id" => dom_id(ptcet, :revealer) }} %>
<%= f.hidden_field :post_type_id %>

<div data-revealer-target="<%= dom_id(ptcet, :revealer) %>"></div>

<div data-revealer_id="<%= dom_id(ptcet, :revealer) %>" data-revealer-triggers="['<%= 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 data-revealer_id="<%= dom_id(ptcet, :revealer) %>" data-revealer-triggers="['<%= 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>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
pulitzer-0.3.9 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.3.8 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.3.7 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.3.6 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.3.5 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.3.4 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.3.3 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.3.2 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.3.1 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.3.0 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.2.2 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.2.1 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.2.0 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.1.10 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.1.9 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.1.8 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.1.7 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.1.6 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.1.5 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.1.4 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb