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.7 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.6 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.5 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.4 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.3 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.2 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.1 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.2.0 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.0.24 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.0.23 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.0.22 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.0.21 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.0.20 app/views/themes/base/fields/_password_field.html.erb
bullet_train-themes-1.0.17 app/views/themes/base/fields/_password_field.html.erb