Files
wedding/app/views/guests/new.html.erb
Rene 2de9c36040
Some checks failed
CI / build (push) Has been cancelled
translation 1
2025-09-16 19:25:44 +02:00

35 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="container">
<div class="row">
<div class="offset-lg-2 col-lg-8">
<%= render partial: 'leader' %>
<p>Bitte gib deine EMail-Adresse ein, um loszulegen. Sobald du dich registriert hast, senden wir dir eine EMail mit wichtigen Informationen.</p>
<%= form_with scope: :guest, url: guests_path, local: true do |form| %>
<div class="row">
<div class="col-md-12">
<%= errors_for(@guest) %>
</div>
</div>
<div class="form-group row">
<div class="col-md-3">
<%= form.label :email, class: 'col-form-label' %>
</div>
<div class="col-md-9">
<%= form.email_field :email, id: 'guest_email', class: 'form-control', autofocus: true, required: true %>
</div>
</div>
<div class="row guests-buttons">
<div class="offset-md-3 col-md-6 text-center">
<%- if ENV['RECAPTCHA_SECRET_KEY'].blank? -%>
<%= form.submit 'Continue', class: 'btn btn-primary', data: { disable_with: 'Sending...' } %>
<%- else -%>
<%= invisible_recaptcha_tags text: 'Continue', class: 'btn btn-primary', data: { disable_with: 'Sending...' } %>
<%- end -%>
</div>
</div>
<% end %>
</div>
</div>
</div>