2013-12-04 17:20:14 +01:00
|
|
|
@extends('header')
|
|
|
|
|
|
|
|
|
|
|
|
@section('onReady')
|
|
|
|
$('input#name').focus();
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
|
2014-04-17 16:48:56 +02:00
|
|
|
{{ Former::open($url)->addClass('col-md-10 col-md-offset-1 warn-on-exit')->method($method)->rules(array(
|
2013-12-08 14:32:49 +01:00
|
|
|
'client' => 'required',
|
2013-12-30 21:17:45 +01:00
|
|
|
'invoice' => 'required',
|
2014-05-08 19:16:00 +02:00
|
|
|
'amount' => 'required',
|
2013-12-04 17:20:14 +01:00
|
|
|
)); }}
|
|
|
|
|
|
|
|
<div class="row">
|
2013-12-05 16:23:24 +01:00
|
|
|
<div class="col-md-8">
|
2013-12-04 17:20:14 +01:00
|
|
|
|
2013-12-05 16:23:24 +01:00
|
|
|
{{ Former::select('client')->addOption('', '')->addGroupClass('client-select') }}
|
|
|
|
{{ Former::select('invoice')->addOption('', '')->addGroupClass('invoice-select') }}
|
|
|
|
{{ Former::text('amount') }}
|
2014-04-01 12:30:43 +02:00
|
|
|
{{ Former::select('payment_type_id')->addOption('','')
|
2014-01-13 20:22:43 +01:00
|
|
|
->fromQuery($paymentTypes, 'name', 'id') }}
|
2014-02-17 17:25:38 +01:00
|
|
|
{{ Former::text('payment_date')->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('<i class="glyphicon glyphicon-calendar"></i>') }}
|
2014-05-08 19:16:00 +02:00
|
|
|
{{ Former::text('transaction_reference') }}
|
2014-04-01 12:30:43 +02:00
|
|
|
{{-- Former::select('currency_id')->addOption('','')
|
2014-01-15 15:01:24 +01:00
|
|
|
->fromQuery($currencies, 'name', 'id')->select(Session::get(SESSION_CURRENCY, DEFAULT_CURRENCY)) --}}
|
2013-12-04 17:20:14 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-02-27 12:42:23 +01:00
|
|
|
<center class="buttons">
|
2014-04-01 12:30:43 +02:00
|
|
|
{{ Button::lg_primary_submit_success(trans('texts.save'))->append_with_icon('floppy-disk') }}
|
|
|
|
{{ Button::lg_default_link('payments/' . ($payment ? $payment->public_id : ''), trans('texts.cancel'))->append_with_icon('remove-circle'); }}
|
2013-12-04 17:20:14 +01:00
|
|
|
</center>
|
|
|
|
|
|
|
|
{{ Former::close() }}
|
|
|
|
|
2013-12-05 16:23:24 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
var invoices = {{ $invoices }};
|
|
|
|
var clients = {{ $clients }};
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
|
2014-01-02 14:21:15 +01:00
|
|
|
populateInvoiceComboboxes({{ $clientPublicId }}, {{ $invoicePublicId }});
|
2013-12-05 16:23:24 +01:00
|
|
|
|
2014-02-01 21:01:32 +01:00
|
|
|
$('#payment_type_id').combobox();
|
2014-06-30 13:42:25 +02:00
|
|
|
$('#payment_date').datepicker('update', new Date());
|
2014-01-02 14:21:15 +01:00
|
|
|
|
2013-12-05 16:23:24 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
@stop
|