Sha256: 53cd53454ea83fef5ea4990bb3313ec3ec5a74a380bc0c9ab9c1d3b3503bed08

Contents?: true

Size: 694 Bytes

Versions: 7

Compression:

Stored size: 694 Bytes

Contents

<%= form.label field do %>
  <%= options[:label] %>
  <% if options[:description].present? %>
    <button type="button"
            style="background: none; border: none; outline: 0; position: absolute; margin-top: 0.3rem"
            data-bs-toggle="popover"
            title="<%= options.fetch(:label) %>"
            data-bs-content="<%= options[:description] %>">
            <i class="text-secondary fa-solid fa-circle-info"></i>
    </button>
  <% end %>
<% end %>

<% if type == :check_boxes && options[:option_groups].present? %>
  <%= render partial: 'active_element/components/form/option_groups_summary',
             locals: { option_groups: options[:option_groups] } %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_element-0.0.10 app/views/active_element/components/form/_label.html.erb
active_element-0.0.9 app/views/active_element/components/form/_label.html.erb
active_element-0.0.8 app/views/active_element/components/form/_label.html.erb
active_element-0.0.7 app/views/active_element/components/form/_label.html.erb
active_element-0.0.6 app/views/active_element/components/form/_label.html.erb
active_element-0.0.5 app/views/active_element/components/form/_label.html.erb
active_element-0.0.4 app/views/active_element/components/form/_label.html.erb