Sha256: f19905f1c545af941016bfb5b7c45c13240547e4cd5b5e3d1e1cb1ec3b6ac93c

Contents?: true

Size: 765 Bytes

Versions: 34

Compression:

Stored size: 765 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-600"></div>
  <% end %>
</div>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
bullet_train-themes-1.2.27 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.26 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.25 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.24 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.23 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.22 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.21 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.20 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.19 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.18 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.17 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.16 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.15 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.14 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.13 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.12 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.11 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.10 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.9 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.8 app/views/themes/base/fields/_password_field.html.erb