|
346 | 346 | </span> |
347 | 347 | </label> |
348 | 348 | <div class="space-y-2"> |
349 | | - <% |
350 | | - first_party = @template.submitters.first['name'] || t('first_party') |
| 349 | +first_party = @template.submitters.first['name'] || t('first_party') |
351 | 350 | second_party = @template.submitters.second&.[]('name') || t('second_party') |
352 | 351 | current_value = ff.object.submitters_order.presence || 'simultaneous' |
353 | 352 | %> |
354 | 353 |
|
355 | 354 | <label class="flex items-start space-x-3 p-3 border border-base-300 rounded-lg cursor-pointer hover:border-primary transition-colors"> |
356 | 355 | <%= ff.radio_button :submitters_order, 'employee_then_manager', |
357 | | - checked: current_value == 'employee_then_manager', |
358 | | - class: 'radio radio-primary mt-0.5', |
359 | | - onchange: 'this.form.requestSubmit()' %> |
| 356 | + checked: current_value == 'employee_then_manager', |
| 357 | + class: 'radio radio-primary mt-0.5', |
| 358 | + onchange: 'this.form.requestSubmit()' %> |
360 | 359 | <div class="flex-1"> |
361 | 360 | <div class="font-medium"><%= t('employee_then_manager_title', first_party: first_party, second_party: second_party) %></div> |
362 | 361 | <div class="text-sm text-base-content/70"><%= t('employee_then_manager_description', first_party: first_party, second_party: second_party) %></div> |
|
365 | 364 |
|
366 | 365 | <label class="flex items-start space-x-3 p-3 border border-base-300 rounded-lg cursor-pointer hover:border-primary transition-colors"> |
367 | 366 | <%= ff.radio_button :submitters_order, 'manager_then_employee', |
368 | | - checked: current_value == 'manager_then_employee', |
369 | | - class: 'radio radio-primary mt-0.5', |
370 | | - onchange: 'this.form.requestSubmit()' %> |
| 367 | + checked: current_value == 'manager_then_employee', |
| 368 | + class: 'radio radio-primary mt-0.5', |
| 369 | + onchange: 'this.form.requestSubmit()' %> |
371 | 370 | <div class="flex-1"> |
372 | 371 | <div class="font-medium"><%= t('manager_then_employee_title', first_party: first_party, second_party: second_party) %></div> |
373 | 372 | <div class="text-sm text-base-content/70"><%= t('manager_then_employee_description', first_party: first_party, second_party: second_party) %></div> |
|
376 | 375 |
|
377 | 376 | <label class="flex items-start space-x-3 p-3 border border-base-300 rounded-lg cursor-pointer hover:border-primary transition-colors"> |
378 | 377 | <%= ff.radio_button :submitters_order, 'simultaneous', |
379 | | - checked: current_value == 'simultaneous', |
380 | | - class: 'radio radio-primary mt-0.5', |
381 | | - onchange: 'this.form.requestSubmit()' %> |
| 378 | + checked: current_value == 'simultaneous', |
| 379 | + class: 'radio radio-primary mt-0.5', |
| 380 | + onchange: 'this.form.requestSubmit()' %> |
382 | 381 | <div class="flex-1"> |
383 | 382 | <div class="font-medium"><%= t('simultaneous_signing_title') %></div> |
384 | 383 | <div class="text-sm text-base-content/70"><%= t('simultaneous_signing_description') %></div> |
|
0 commit comments