mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 12:04:35 -04:00
Switch from checkbox to radio buttons for saving card
This commit is contained in:
parent
2f50217900
commit
7ed9e733b1
@ -63,6 +63,8 @@ class PaymentMethodController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
{
|
{
|
||||||
|
return $request->all();
|
||||||
|
|
||||||
$gateway = $this->getClientGateway();
|
$gateway = $this->getClientGateway();
|
||||||
|
|
||||||
return $gateway
|
return $gateway
|
||||||
|
@ -48,8 +48,14 @@
|
|||||||
{{ ctrans('texts.save_as_default') }}
|
{{ ctrans('texts.save_as_default') }}
|
||||||
</dt>
|
</dt>
|
||||||
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
<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"
|
<label for="yes" class="mr-4">
|
||||||
id="proxy_is_default"/>
|
<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>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
<div class="bg-white px-4 py-5 flex justify-end">
|
<div class="bg-white px-4 py-5 flex justify-end">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user