Sha256: b4e1751f0487bae2b24d08dd80547f3e4aec24a40f14709575fad0ecf85c9af4

Contents?: true

Size: 761 Bytes

Versions: 6

Compression:

Stored size: 761 Bytes

Contents

<% yield %>

<%
stimulus_controller = 'fields--password'

form ||= current_fields_form
options ||= {}

if options[:show_strength_indicator]
  options = options.merge({ data: {"action": "keyup->fields--password#estimateStrength" }})
end

other_options ||= {}
%>

<div data-controller="<%= stimulus_controller %>">
  <%= render 'shared/fields/field', form: form, method: method, helper: :password_field, options: options, other_options: other_options %>
  <% if options[:show_strength_indicator] %>
    <% # TODO This is the wrong place to define this kind of style, but I couldn't make this work in the `:help` content buffer. %>
    <div data-<%= stimulus_controller %>-target="strengthIndicator" class="hidden mt-1.5 text-xs text-red"></div>
  <% end %>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bullet_train-themes-1.0.16 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.0.15 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.0.14 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.0.13 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.0.12 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.0.11 app/views/themes/base/fields/_password_field.html.erb