Sha256: 51f02f3738ebe2979af9212e4e16d21b24f394dfe864db2930db7ee7b18d2081
Contents?: true
Size: 1.01 KB
Versions: 32
Compression:
Stored size: 1.01 KB
Contents
<%= content_tag(:div, class: object.classname) do %> <% if object.label.present? %> <%= pb_rails("caption", props: { text: object.label, dark: object.dark, classname: "pb_text_input_kit_label" }) %> <% end %> <%= content_tag(:div, class: "text_input_wrapper") do %> <% if object.children.present? %> <%= capture(&object.children) %> <% if object.error %> <%= pb_rails("body", props: {dark: object.dark, status: "negative", text: object.error}) %> <% end %> <% else %> <%= tag(:input, id: object.id, class: object.classname, data: object.data, name: object.name, pattern: object.validation_pattern, placeholder: object.placeholder, required: object.required, type: object.type, value: object.value) %> <% if object.error %> <%= pb_rails("body", props: {dark: object.dark, status: "negative", text: object.error}) %> <% end %> <% end %> <% end %> <% end %>
Version data entries
32 entries across 32 versions & 1 rubygems