46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
.container
|
|
h1
|
|
| Profil preferences
|
|
|
|
h2
|
|
| Recap
|
|
form(method="POST")
|
|
== csrf_tag
|
|
/-
|
|
- USER_PREFERENCES.each do |param_name, upc|
|
|
- if upc.html[:type] == "checkbox"
|
|
.form-group.form-check.form-switch
|
|
label.col-sm-12.form-check-label for=param_name
|
|
strong=upc.description
|
|
- if cookies[upc.cookie] == "on"
|
|
input.form-check-input *upc.html name=param_name checked="on" /
|
|
- else
|
|
input.form-check-input *upc.html name=param_name /
|
|
- else
|
|
.form-group.row
|
|
label.col-sm-12.col-form-label for=param_name
|
|
strong=upc.description
|
|
input.form-control.form-control-lg *upc.html name=param_name value=cookies[upc.cookie] /
|
|
.form-group.row
|
|
input.btn.btn-lg.btn-block type="submit" value="Update"
|
|
|
|
- if LifePex::APP_ENV == "debug"
|
|
h2
|
|
| Debug
|
|
p
|
|
table
|
|
- cookies.each do |k, v|
|
|
tr
|
|
td= "cookies.#{k}"
|
|
td= v
|
|
tr
|
|
td
|
|
| get_user_date
|
|
td= get_user_date
|
|
|
|
h2
|
|
| Private data export
|
|
a.btn.btn-success(href="/api/user-pex/v1/export.csv")
|
|
| Export as CSV
|
|
|