Sha256: 6a3d9c3202108d0338c8879afa01c9aa1cd570c9e915393ad7db5d6e0a71f7e1
Contents?: true
Size: 1.5 KB
Versions: 3
Compression:
Stored size: 1.5 KB
Contents
<% if destroy && item.present? %> <%= active_element.component.destroy_button(item, destroy, float: 'end') %> <% end %> <% if edit && item.present? %> <%= active_element.component.edit_button(item, edit, float: 'end') %> <% end %> <% if new %> <%= active_element.component.new_button(component.model, float: 'end', class: 'mb-3') %> <% end %> <table class="<%= class_name %> table" style="<%= style %>"> <tbody> <% fields.each do |field, class_mapper, label, value_mapper, options| %> <tr> <th> <%= 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" data-bs-trigger="focus" data-bs-content="<%= options[:description] %>"> <i class="text-secondary fa-solid fa-circle-info"></i> </button> <% end %> </th> <td class="<%= class_mapper.call(item) %>"> <% if component.secret_field?(field) %> <%= render partial: 'active_element/components/secret/field', locals: { secret: value_mapper.call(item), label: label } %> <% else %> <%= render partial: 'active_element/components/table/field', locals: { value: value_mapper.call(item) } %> <% end %> </td> </tr> <% end %> </tbody> </table>
Version data entries
3 entries across 3 versions & 1 rubygems