Sha256: 340b95728fcb9b129a7b5df137c79616b065edc7c3d645b3b72767ffacaf7575
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
<%= form.label field do %> <%= options[:label] %> <% if options[:required] %> <button type="button" style="background: none; border: none; outline: 0; position: absolute; margin-top: 0.3rem" data-bs-trigger="focus" data-bs-toggle="popover" title="Required" data-bs-content="<%= "#{options.fetch(:label)} is a required field." %>"> <i class="text-secondary fa-solid fa-star-of-life"></i> </button> <% end %> <% if options[:description].present? %> <button type="button" style="background: none; border: none; outline: 0; position: absolute; <%= options[:required] ? 'margin-left: 1.4rem;' : nil %> margin-top: 0.3rem" data-bs-toggle="popover" data-bs-trigger="focus" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_element-0.0.12 | app/views/active_element/components/form/_label.html.erb |