Sha256: 0b900e5630fa80d525c5777bcbac06908f0ae4be55e770bf911ab8d1daaf169f

Contents?: true

Size: 562 Bytes

Versions: 5

Compression:

Stored size: 562 Bytes

Contents

<%%= text_field_tag name, local_assigns[:value] || params[name],
  type: local_assigns[:type] || "text",
  id: local_assigns[:id],
  autocomplete: local_assigns[:autocomplete],
  inputmode: local_assigns[:inputmode],
  required: local_assigns[:required] != false,
  class: "#{local_assigns[:class] || "form-control"} #{"is-invalid" if <%= rodauth %>.field_error(name)}",
  aria: ({ invalid: "true", describedby: "#{name}_error_message" } if <%= rodauth %>.field_error(name)) %>

<%%= render "field_error", name: name unless local_assigns[:skip_error_message] %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rodauth-rails-0.17.1 lib/generators/rodauth/templates/app/views/rodauth/_field.html.erb
rodauth-rails-0.17.0 lib/generators/rodauth/templates/app/views/rodauth/_field.html.erb
rodauth-rails-0.16.0 lib/generators/rodauth/templates/app/views/rodauth/_field.html.erb
rodauth-rails-0.15.0 lib/generators/rodauth/templates/app/views/rodauth/_field.html.erb
rodauth-rails-0.14.0 lib/generators/rodauth/templates/app/views/rodauth/_field.html.erb