Skip to content

Commit

Permalink
Update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
entantoencuanto committed Jan 9, 2025
1 parent 3651f47 commit 787b8bd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,18 @@
<span class="help-text">
<%= t("document_type_and_number.help_text", scope: "decidim.initiatives.initiative_signatures.dummy_signature.form.fields") %>
</span>
<div class="flex flex-row gap-2">
<%= form.select(
:document_type,
handler.document_types_for_select,
prompt: t("decidim.initiatives.initiative_signatures.dummy_signature.form.fields.document_type.prompt"),
label: false
) %>
<%= form.text_field :document_number, label: false, placeholder: t("decidim.initiatives.initiative_signatures.dummy_signature.form.fields.document_number.placeholder") %>
<div class="flex flex-row gap-6">
<div class="w-full">
<%= form.select(
:document_type,
handler.document_types_for_select,
prompt: t("decidim.initiatives.initiative_signatures.dummy_signature.form.fields.document_type.prompt"),
label: false
) %>
</div>
<div class="w-full">
<%= form.text_field :document_number, label: false, placeholder: t("decidim.initiatives.initiative_signatures.dummy_signature.form.fields.document_number.placeholder") %>
</div>
</div>
</div>

Expand All @@ -57,8 +61,14 @@
) %>
</div>

<div class="row column flex flex-row gap-2">
<%= form.date_select :date_of_birth, prompt: true, start_year: Date.today.year - 100 %>
<div class="row column">
<label for="dummy_signature_handler_date_of_birth">
<%= t("date_of_birth.label", scope: "decidim.initiatives.initiative_signatures.dummy_signature.form.fields") %>

<div class="flex row-col space-x-3 w-full">
<%= form.date_select :date_of_birth, prompt: true, start_year: Date.today.year - 100, label: false %>
</div>
</label>
</div>

<div class="row column">
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ en:
form:
choose_placeholder: Choose
fields:
date_of_birth:
label: Date of birth
document_number:
placeholder: Document number
document_type:
Expand Down

0 comments on commit 787b8bd

Please sign in to comment.