Sha256: d0aac7964634665818ed907b37b4c9cc47be317c488d05e2922803ead7586b17

Contents?: true

Size: 1.54 KB

Versions: 1

Compression:

Stored size: 1.54 KB

Contents

<div class="pulitzer-span one-fifth">
  <%= f.text_field :label %>
</div>
<div class="pulitzer-span one-fifth">
  <%= f.collection_select :content_element_type_id, Pulitzer::ContentElementType.all, :id, :name, {},
revealer(dom_id(ptcet, :revealer), highlander: true) %>
</div>
<%= 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) %> class="pulitzer-span one-fifth">
  <%= f.text_field :height, placeholder: 'Height' %>
  x
  <%= f.text_field :width, placeholder: 'Width' %>
</div>

<div <%= revealer_option_attrs(dom_id(ptcet, :revealer), trigger: Pulitzer::ContentElementType.find_by(name: 'Text').id) %> class="pulitzer-span one-fifth">
  <%= f.select :text_editor, Pulitzer.text_editor_toolbars.map { |t| t[:name] } %>
</div>

<div <%= revealer_option_attrs(dom_id(ptcet, :revealer), trigger: Pulitzer::ContentElementType.find_by(name: 'Video').id) %> class="pulitzer-span one-fifth">
  &nbsp;
</div>

<div <%= revealer_option_attrs(dom_id(ptcet, :revealer), trigger: Pulitzer::ContentElementType.find_by(name: 'Clickable').id) %> class="pulitzer-span one-fifth">
  <%= f.select :clickable_kind, options_from_collection_for_select(Pulitzer::PostTypeContentElementType.clickable_kinds, :gid, :name, f.object.clickable_kind) %>  
</div>

<div class="pulitzer-span ten-percent">
  <%= f.check_box :required %>
</div>

<div class="pulitzer-span ten-percent">
  <%= f.text_field :sort_order %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pulitzer-0.14.0 app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb