<% label = local_assigns[:label].presence %>
<% html_options = {class: 'password_string fullwidth'}.update(local_assigns[:html_options] || {}) %>

<div class="form-group">
  <% if local_assigns[:form] %>
    <%= form.label attribute, label %>
    <%= form.password_field attribute, html_options %>
  <% else %>
    <%= label_tag name, label %>
    <%= password_field_tag name, value, html_options %>
  <% end %>
</div>
