|
|
|
@ -27,7 +27,7 @@
|
|
|
|
<%= form_for @submitter, url: start_form_path(@template.slug), data: { turbo_frame: :_top }, method: :put, html: { class: 'space-y-4', onsubmit: 'event.submitter.disabled = true' } do |f| %>
|
|
|
|
<%= form_for @submitter, url: start_form_path(@template.slug), data: { turbo_frame: :_top }, method: :put, html: { class: 'space-y-4', onsubmit: 'event.submitter.disabled = true' } do |f| %>
|
|
|
|
<div class="form-control !mt-0">
|
|
|
|
<div class="form-control !mt-0">
|
|
|
|
<%= f.label :email, class: 'label' %>
|
|
|
|
<%= f.label :email, class: 'label' %>
|
|
|
|
<%= f.email_field :email, value: current_user&.email, required: true, class: 'base-input', placeholder: 'Provide your email to start' %>
|
|
|
|
<%= f.email_field :email, value: current_user&.email || params[:email], required: true, class: 'base-input', placeholder: 'Provide your email to start' %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-control">
|
|
|
|
<div class="form-control">
|
|
|
|
<%= f.button button_title(title: 'Start', disabled_with: 'Starting'), class: 'base-button' %>
|
|
|
|
<%= f.button button_title(title: 'Start', disabled_with: 'Starting'), class: 'base-button' %>
|
|
|
|
|