forked from chaosdorf/mete
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_form.html.haml
More file actions
18 lines (17 loc) · 999 Bytes
/
_form.html.haml
File metadata and controls
18 lines (17 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
= simple_form_for @user, :html => { :class => 'form-horizontal' } do |f|
= f.error_notification
.form-inputs
= f.input :name, hint: 'your nickname'
= f.input :avatar_provider,
:collection => [['Gravatar', 'gravatar'], ['WebFinger / ActivityPub', 'webfinger']],
:as => :radio_buttons,
:hint => "This determines how the identifier below will be interpreted. Use an email for Gravatar and a fediverse username for WebFinger / ActivityPub"
= f.input :avatar, hint: 'An identifier for your avatar'
= f.input :balance, :as => :decimal, hint: 'just in case you need to correct this'
= f.input :active
= f.input :audit, hint: 'This will create detailed logs about what you buy and deposit. If you uncheck this box, all records will be deleted.'
= f.input :redirect, hint: "Redirect after buying a drink?"
= f.input :barcode, hint: 'your barcode'
.form-actions
= f.button :submit, class: 'btn-primary'
%style .user { display: initial!important; }