Sha256: 6d05c7d734bce007f4166b9f8f4a15ee3c8f82bc3012201bf635a466f104d7b9

Contents?: true

Size: 1.03 KB

Versions: 6

Compression:

Stored size: 1.03 KB

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, {},
revealer(dom_id(ptcet, :revealer), highlander: true) %>
<%= f.hidden_field :post_type_id %>

<div <%= revealer_target_attrs(dom_id(ptcet, :revealer)) %>></div>

<div <%= revealer_option_attrs(dom_id(ptcet, :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(ptcet, :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>

<div>
  <%= f.label :required %>
  <%= f.check_box :required %>
</div>

<div>
  <%= f.label :sort_order %>
  <%= f.text_field :sort_order %>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pulitzer-0.12.5 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.12.4 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.12.3 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.12.2 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.12.1 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb
pulitzer-0.12.0 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb