Sha256: b9d80b39c1a011b9940fa6af619993c8d435bd7401864eafb9b8a6b2cd0d5ba0
Contents?: true
Size: 1.54 KB
Versions: 192
Compression:
Stored size: 1.54 KB
Contents
<%= content_tag(:div, id: object.id, data: object.data, class: object.classname, **combined_html_options) do %> <% if object.label.present? %> <%= pb_rails("caption", props: {text: object.label, dark: object.dark}) %> <% end %> <% if content.present? %> <%= content %> <% if object.error %> <%= pb_rails("body", props: { dark: object.dark, status: "negative", text: object.error }) %> <% end %> <% else %> <%= text_area( :object, :method, :class => "#{object.classname}", :max_characters => object.max_characters, :name => object.name, :onkeyup => object.onkeyup, :placeholder => object.placeholder, :rows => object.rows, :value => object.value) %> <% if object.error %> <% if object.character_count %> <%= pb_rails("flex", props: { spacing: "between", vertical: "center" }) do %> <%= pb_rails("flex/flex_item") do %> <%= pb_rails("body", props: { dark: object.dark, status: "negative", text: object.error }) %> <% end %> <%= pb_rails("flex/flex_item") do %> <%= pb_rails("caption", props: { margin: "none", size: "xs", text: object.character_counter }) %> <% end %> <% end %> <% else %> <%= pb_rails("body", props: { dark: object.dark, status: "negative", text: object.error }) %> <% end %> <% else %> <%= pb_rails("caption", props: { margin: "none", size: "xs", text: object.character_counter }) %> <% end %> <% end %> <% end %>
Version data entries
192 entries across 192 versions & 1 rubygems