Sha256: 6a99892e7d3b1c24833bbc38976f89f1a014ddc1ae486737357980359cd0be7e
Contents?: true
Size: 978 Bytes
Versions: 27
Compression:
Stored size: 978 Bytes
Contents
<% stimulus_controller = 'fields--password' form ||= current_fields_form options ||= {} strong_passwords = Object.const_defined?("BulletTrain::Configuration") ? BulletTrain::Configuration.strong_passwords : true # TODO: This should be `bt_options` if options[:show_strength_indicator] && 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 %> <%# TODO: This should be `bt_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
27 entries across 27 versions & 1 rubygems