Sha256: 6c3a2d4f5eaa9fbd1917907b43c9977746e7838bee446efcd41cb51c13c4ac98

Contents?: true

Size: 707 Bytes

Versions: 7

Compression:

Stored size: 707 Bytes

Contents

<% cache(content) do %>
  <div class="content_editor essence_boolean" id="<%= content.dom_id %>" data-content-id="<%= content.id %>">
    <input type="hidden" value="0" name="<%= content.form_field_name %>">
    <%= check_box_tag content.form_field_name, 1,
      content.ingredient.presence || content_settings_value(
        content, :default_value,
        local_assigns.fetch(:options, {})),
      class: local_assigns.fetch(:html_options, {})[:class],
      style: local_assigns.fetch(:html_options, {})[:style] %>
    <label for="<%= content.form_field_id %>" style="display: inline">
      <%= render_content_name(content) %>
      <%= delete_content_link(content) %>
    </label>
  </div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alchemy_cms-3.1.0.rc1 app/views/alchemy/essences/_essence_boolean_editor.html.erb
alchemy_cms-3.1.0.beta6 app/views/alchemy/essences/_essence_boolean_editor.html.erb
alchemy_cms-3.1.0.beta5 app/views/alchemy/essences/_essence_boolean_editor.html.erb
alchemy_cms-3.1.0.beta4 app/views/alchemy/essences/_essence_boolean_editor.html.erb
alchemy_cms-3.1.0.beta3 app/views/alchemy/essences/_essence_boolean_editor.html.erb
alchemy_cms-3.1.0.beta2 app/views/alchemy/essences/_essence_boolean_editor.html.erb
alchemy_cms-3.1.0.beta1 app/views/alchemy/essences/_essence_boolean_editor.html.erb