1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 08:51:34 +02:00

Switch from checkbox to radio buttons for saving card

This commit is contained in:
Benjamin Beganović 2020-08-24 11:17:18 +02:00
parent 2f50217900
commit 7ed9e733b1
2 changed files with 10 additions and 2 deletions

View File

@ -63,6 +63,8 @@ class PaymentMethodController extends Controller
*/
public function store(Request $request)
{
return $request->all();
$gateway = $this->getClientGateway();
return $gateway

View File

@ -48,8 +48,14 @@
{{ ctrans('texts.save_as_default') }}
</dt>
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
<input type="checkbox" class="form-checkbox" name="proxy_is_default"
id="proxy_is_default"/>
<label for="yes" class="mr-4">
<input type="radio" class="form-radio cursor-pointer" name="proxy_is_default" {{ $client->getSetting('auto_bill') == 'on' ? 'checked': '' }} id="proxy_is_default" value="true">
<span class="ml-1">{{ ctrans('texts.yes') }}</span>
</label>
<label for="no">
<input type="radio" class="form-radio cursor-pointer" name="proxy_is_default" {{ $client->getSetting('auto_bill') == 'off' ? 'checked': '' }} id="proxy_is_default" value="false">
<span class="ml-1">{{ ctrans('texts.no') }}</span>
</label>
</dd>
</div>
<div class="bg-white px-4 py-5 flex justify-end">