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.3.4 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.3.3 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.3.2 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.2.7 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.3.1 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.3.0 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.2.6 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.2.5 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.1.12 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.2.4 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.1.11 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.2.3 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.1.10 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.2.2 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.1.9 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.2.1 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.1.8 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.1.7 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.1.6 app/views/alchemy/admin/pages/_publication_fields.html.erb
alchemy_cms-7.1.5 app/views/alchemy/admin/pages/_publication_fields.html.erb