Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that input IDs are unique on the checkout page #643

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions resources/views/utils/checkout/add-expense.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
<form method="POST" action="{{ route($route_base . '.expense.add') }}" enctype="multipart/form-data">
@csrf
<div class="row">
<x-input.text m=6 l=6 id="comment" required text="Megjegyzés" />
<x-input.text type="number" m=6 l=6 id="amount" min=0 required text="Összeg" />
<x-input.text m=6 l=6 id="expense-comment" name="comment" required text="Megjegyzés" />
<x-input.text type="number" m=6 l=6 id="expense-amount" name="amount" min=0 required text="Összeg" />
@can('administrate', $checkout)
<x-input.select m=6 l=6 id="payer" text="Fizető" :elements="\App\Models\User::collegists()" default="{{user()->id}}" :formatter="function($user) { return $user->uniqueName; }" />
<x-input.checkbox m=6 l=6 id="paid" checked text="A tartozás kifizetésre került"/>
<x-input.select m=6 l=6 id="expense-payer" name="payer" text="Fizető" :elements="\App\Models\User::collegists()" default="{{user()->id}}" :formatter="function($user) { return $user->uniqueName; }" />
<x-input.checkbox m=6 l=6 id="expense-paid" name="paid" checked text="A tartozás kifizetésre került"/>
@endcan
<x-input.file s="12" id="receipt" style="margin-top:auto" accept=".pdf,.jpg,.png,.jpeg,.gif"
<x-input.file s="12" id="expense-receipt" name="receipt" style="margin-top:auto" accept=".pdf,.jpg,.png,.jpeg,.gif"
text="checkout.receipt" required/>
</div>
<x-input.button floating class="btn-large right" icon="payments" />
Expand Down
4 changes: 2 additions & 2 deletions resources/views/utils/checkout/add-income.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<form method="POST" action="{{ route($route_base . '.income.add') }}">
@csrf
<div class="row">
<x-input.text m=6 l=6 id="comment" required text="Megjegyzés" />
<x-input.text type="number" m=6 l=6 id="amount" min=0 required text="Összeg" />
<x-input.text m=6 l=6 id="income-comment" name="comment" required text="Megjegyzés" />
<x-input.text type="number" m=6 l=6 id="income-amount" name="amount" min=0 required text="Összeg" />
</div>
<x-input.button floating class="btn-large right" icon="payments" />
</form>
Expand Down