Sha256: 521cf2cee59204aebdc5af5db1ac8f9a073421ced388f9106d1731040e6eb75d
Contents?: true
Size: 993 Bytes
Versions: 2
Compression:
Stored size: 993 Bytes
Contents
<%= render Yattho::ConditionalWrapper.new(condition: @input.auto_check_src, tag: "yattho-text-field") do %> <%= render(FormControl.new(input: @input)) do %> <%= content_tag(:div, **@field_wrap_arguments) do %> <% if @input.leading_visual %> <span class="FormControl-input-leadingVisualWrap"> <%= render(Yattho::Beta::Octicon.new(**@input.leading_visual)) %> </span> <% end %> <%= render Yattho::ConditionalWrapper.new(condition: @input.auto_check_src, tag: "auto-check", csrf: auto_check_authenticity_token, src: @input.auto_check_src) do %> <%= builder.text_field(@input.name, **@input.input_arguments) %> <% end %> <% if @input.show_clear_button? %> <button type="button" id="<%= @input.clear_button_id %>" class="FormControl-input-trailingAction" aria-label="Clear"> <%= render(Yattho::Beta::Octicon.new(icon: :"x-circle-fill")) %> </button> <% end %> <% end %> <% end %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yattho_view_components-0.1.1 | lib/yattho/forms/text_field.html.erb |
yattho_view_components-0.0.1 | lib/yattho/forms/text_field.html.erb |