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