mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 19:44:09 +00:00
* Add and organise component stylesheets * Revert CSS folder and file structure * Add FormsHelper and FormBuilder to apply component classes * Refactor label args Co-authored-by: Jose Farias <31393016+josefarias@users.noreply.github.com> Signed-off-by: Josh Brown <josh@joossh.com> * Update form field styles * Apply form builder to all fields * Remove redundant style rules Some of these were either duplicative or had no effect. * Apply default submit button styles * Set default form class * Fix opacity of input when focused --------- Signed-off-by: Josh Brown <josh@joossh.com> Co-authored-by: Jose Farias <31393016+josefarias@users.noreply.github.com> Co-authored-by: Josh Pigford <josh@joshpigford.com>
24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
<h1 class="text-3xl font-semibold font-display">Update settings</h1>
|
|
|
|
<%= form_with model: Current.user, url: settings_path, html: { class: "space-y-4" } do |form| %>
|
|
<%= form.fields_for :family_attributes do |family_fields| %>
|
|
<%= family_fields.text_field :name, placeholder: "Family name", value: Current.family.name, label: "Family name" %>
|
|
<% end %>
|
|
|
|
<%= form.text_field :first_name, placeholder: "First name", value: Current.user.first_name, label: true %>
|
|
|
|
<%= form.text_field :last_name, placeholder: "Last name", value: Current.user.last_name, label: true %>
|
|
|
|
<%= form.email_field :email, placeholder: "Email", value: Current.user.email, label: true %>
|
|
|
|
<%= form.password_field :password, label: true %>
|
|
|
|
<%= form.password_field :password_confirmation, label: true %>
|
|
|
|
<div class="fixed right-5 bottom-5">
|
|
<button type="submit" class="flex items-center justify-center w-12 h-12 mb-2 bg-black rounded-full shrink-0 grow-0 hover:bg-gray-600">
|
|
<%= inline_svg_tag('icn-check.svg', class: 'text-white fill-current') %>
|
|
</button>
|
|
</div>
|
|
<% end %>
|