Sha256: b9d19f69ac2768d495846197322eefe5a02cf316587c566a0cb513eb8cb7da4d

Contents?: true

Size: 800 Bytes

Versions: 72

Compression:

Stored size: 800 Bytes

Contents

<%
stimulus_controller = 'fields--password'

form ||= current_fields_form
options ||= {}

if options[:show_strength_indicator] && BulletTrain::Configuration.strong_passwords
  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-500"></div>
  <% end %>
</div>

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
bullet_train-themes-1.6.30 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.29 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.28 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.27 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.26 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.25 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.24 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.23 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.22 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.21 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.20 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.19 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.18 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.17 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.16 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.15 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.14 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.13 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.12 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.6.11 app/views/themes/base/fields/_password_field.html.erb