mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 20:16:22 +00:00
This commit is contained in:
parent
c66d1f0f08
commit
414fd7348d
1 changed files with 13 additions and 14 deletions
|
@ -40,20 +40,19 @@
|
||||||
aria: { describedby: 'minimum-password-length' },
|
aria: { describedby: 'minimum-password-length' },
|
||||||
placeholder: t("#{password}_confirmation")
|
placeholder: t("#{password}_confirmation")
|
||||||
|
|
||||||
- if params[:consent]
|
.form-group
|
||||||
.form-group
|
- Usuarie::CONSENT_FIELDS.each do |field|
|
||||||
- Usuarie::CONSENT_FIELDS.each do |field|
|
- required = t(".#{field}.required", default: '').present?
|
||||||
- required = t(".#{field}.required", default: '').present?
|
- id = "usuarie_#{field}"
|
||||||
- id = "usuarie_#{field}"
|
- name = "usuarie[#{field}]"
|
||||||
- name = "usuarie[#{field}]"
|
- content = t(".#{field}.label")
|
||||||
- content = t(".#{field}.label")
|
- href = t(".#{field}.href", default: '')
|
||||||
- href = t(".#{field}.href", default: '')
|
- help_content = t(".#{field}.help")
|
||||||
- help_content = t(".#{field}.help")
|
= render 'bootstrap/custom_checkbox', id: id, name: name, content: content, required: required, value: "1" do
|
||||||
= render 'bootstrap/custom_checkbox', id: id, name: name, content: content, required: required, value: "1" do
|
- if href.present?
|
||||||
- if href.present?
|
= link_to help_content, href, target: '_blank', rel: 'noopener'
|
||||||
= link_to help_content, href, target: '_blank', rel: 'noopener'
|
- else
|
||||||
- else
|
= help_content
|
||||||
= help_content
|
|
||||||
|
|
||||||
.actions
|
.actions
|
||||||
= f.submit t('.sign_up'),
|
= f.submit t('.sign_up'),
|
||||||
|
|
Loading…
Reference in a new issue