Sha256: b089b17ef6131b73ae1eba8a8d51d34801bb0b17c55d43b9c9175309ba188411

Contents?: true

Size: 846 Bytes

Versions: 2

Compression:

Stored size: 846 Bytes

Contents

<fieldset>
  <legend>Publishing Options</legend>
  <p>
    <%= f.label :published_at, "Publish at" %><br/>
    <%= check_box_tag 'published_at', true, f.object.published?, :onclick => 'toggle_published_at(this.checked)', :id => 'live-from' %>
    <%= f.hidden_field :published_at, :value => '' %>
    <span id="published_at"><%= f.datetime_select :published_at, :disabled => f.object.published? ? nil : 'disabled'  %></span>
  </p>

  <p>
    <%= f.label :published_to, "Publish till" %><br/>
    <%= check_box_tag 'published_to', true, !f.object.published_to.blank?, :onclick => 'toggle_published_to(this.checked)', :id => 'live-to' %>
    <%= f.hidden_field :published_to, :value => '' %>
    <span id="published_to"><%= f.datetime_select :published_to, :disabled => f.object.published_to.blank? ? 'disabled' : nil  %></span>
  </p>
</fieldset>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts_as_content_node-0.1.11 app/views/content_nodes/_publish_select.html.erb
acts_as_content_node-0.1.10 app/views/content_nodes/_publish_select.html.erb