Sha256: 4a756b82638cd6901eab7b6bc0b81988c7e67a94434f26bcc244ce48f923994c

Contents?: true

Size: 691 Bytes

Versions: 10

Compression:

Stored size: 691 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(
        :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) %>
    </label>
    <%= render_hint_for(content) %>
  </div>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
alchemy_cms-3.4.2 app/views/alchemy/essences/_essence_boolean_editor.html.erb
alchemy_cms-3.4.1 app/views/alchemy/essences/_essence_boolean_editor.html.erb
alchemy_cms-3.3.3 app/views/alchemy/essences/_essence_boolean_editor.html.erb
alchemy_cms-3.3.2 app/views/alchemy/essences/_essence_boolean_editor.html.erb
alchemy_cms-3.4.0 app/views/alchemy/essences/_essence_boolean_editor.html.erb
alchemy_cms-3.4.0.rc1 app/views/alchemy/essences/_essence_boolean_editor.html.erb
alchemy_cms-3.3.1 app/views/alchemy/essences/_essence_boolean_editor.html.erb
alchemy_cms-3.3.0 app/views/alchemy/essences/_essence_boolean_editor.html.erb
alchemy_cms-3.3.0.rc2 app/views/alchemy/essences/_essence_boolean_editor.html.erb
alchemy_cms-3.3.0.rc1 app/views/alchemy/essences/_essence_boolean_editor.html.erb