Sha256: eeccfde32f6a2ab9b00f6eac5568bd85b8b1e59e2ac4cfcd2d57d3c2602efdc8

Contents?: true

Size: 1.08 KB

Versions: 28

Compression:

Stored size: 1.08 KB

Contents

<% checkbox = check_box_tag :page_public, nil, @page.public?, name: nil, disabled: @page.attribute_fixed?(:public_on) %>

<label class="checkbox">
<% if @page.attribute_fixed?(:public_on) || @page.attribute_fixed?(:public_until) %>
  <sl-tooltip class="like-hint-tooltip" content="<%= Alchemy.t(:attribute_fixed) %>" placement="bottom-start">
    <%= checkbox %>
    <%= Alchemy::Page.human_attribute_name :public %>
  </sl-tooltip>
<% else %>
  <%= checkbox %>
  <%= Alchemy::Page.human_attribute_name :public %>
<% end %>
</label>

<%= content_tag :div, class: [
  @page.public_on.present? || @page.public_until.present? ? nil : 'hidden',
  'page-publication-date-fields',
  'input-row'
] do %>
  <div class="input-column">
    <label><%= Alchemy.t(:from) %></label>
    <%= alchemy_datepicker @page, :public_on, type: :datetime,
      disabled: @page.attribute_fixed?(:public_on) %>
  </div>
  <div class="input-column">
    <label><%= Alchemy.t(:until) %></label>
    <%= alchemy_datepicker @page, :public_until, type: :datetime,
      disabled: @page.attribute_fixed?(:public_until) %>
  </div>
<% end %>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
alchemy_cms-7.1.4 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.1.3 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.1.2 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.1.1 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.1.0 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.1.0.pre.rc1 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.1.0.pre.b2 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.1.0.pre.b1 app/views/alchemy/admin/pages/_publication_fields.html.erb