diff --git a/app/views/header.blade.php b/app/views/header.blade.php index c3ec4a3d24..76f0215399 100755 --- a/app/views/header.blade.php +++ b/app/views/header.blade.php @@ -217,7 +217,7 @@ -
+

{{ Former::open('signup/submit')->addClass('signUpForm') }} @@ -232,11 +232,16 @@ {{ Former::text('new_first_name')->label('First name') }} {{ Former::text('new_last_name')->label('Last name') }} {{ Former::text('new_email')->label('Email') }} - {{ Former::password('new_password')->label('Password') }} + {{ Former::password('new_password')->label('Password') }} + {{ Former::checkbox('terms_checkbox')->label(' ')->text('I agree to the Invoice Ninja Terms of Service') }} {{ Former::close() }} - -
-
+ +
+
+ + + +
@@ -285,7 +290,7 @@ @endif - @if (App::environment() != ENV_PRODUCTION) + @if ($_SERVER['SERVER_NAME'] != 'www.invoiceninja.com')
Powered by InvoiceNinja.com
@endif @@ -323,6 +328,13 @@ } } }); + + if (!$('#terms_checkbox').is(':checked')) { + isFormValid = false; + } + + $('#saveSignUpButton').prop('disabled', !isFormValid); + return isFormValid; } diff --git a/app/views/invoices/edit.blade.php b/app/views/invoices/edit.blade.php index 39687a665b..5941e7b0ed 100755 --- a/app/views/invoices/edit.blade.php +++ b/app/views/invoices/edit.blade.php @@ -63,16 +63,16 @@
{{ Former::text('invoice_date')->data_bind("datePicker: invoice_date, valueUpdate: 'afterkeydown'") - ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') }} + ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') }} {{ Former::text('due_date')->data_bind("datePicker: due_date, valueUpdate: 'afterkeydown'") - ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') }} + ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') }}
{{ Former::select('frequency_id')->label('How often')->options($frequencies)->data_bind("value: frequency_id") }} {{ Former::text('start_date')->data_bind("datePicker: start_date, valueUpdate: 'afterkeydown'") - ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') }} + ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') }} {{ Former::text('end_date')->data_bind("datePicker: end_date, valueUpdate: 'afterkeydown'") - ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') }} + ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') }}
@if ($invoice && $invoice->recurring_invoice_id)
@@ -138,7 +138,7 @@ - + @@ -176,9 +176,9 @@ - Tax + Tax - + @@ -579,6 +579,10 @@ return invoice; } + function toggleDatePicker(field) { + $('#'+field).datepicker('show'); + } + /* function refreshPDF() { setTimeout(function() { @@ -589,13 +593,15 @@ var isRefreshing = false; var needsRefresh = false; - function refreshPDF() { + function getPDFString() { var invoice = createInvoiceModel(); var doc = generatePDF(invoice); if (!doc) return; - var string = doc.output('datauristring'); - + return doc.output('datauristring'); + } + function refreshPDF() { if (isFirefox || (isChrome && !isChromium)) { + var string = getPDFString(); $('#theFrame').attr('src', string).show(); } else { if (isRefreshing) { @@ -603,7 +609,7 @@ return; } isRefreshing = true; - + var string = getPDFString(); var pdfAsArray = convertDataURIToBinary(string); PDFJS.getDocument(pdfAsArray).then(function getPdfHelloWorld(pdf) { diff --git a/public/css/style.css b/public/css/style.css index 5ffecc1a31..0be98f5926 100755 --- a/public/css/style.css +++ b/public/css/style.css @@ -60,7 +60,7 @@ min-height: 40px; table.dataTable { border-radius: 3px; border-collapse: collapse; /*border-spacing: 0;*/} table.dataTable thead > tr > th, table.invoice-table thead > tr > th { - background: #e37329 !important; + background-color: #e37329 !important; color:#fff; } th:first-child { @@ -223,7 +223,7 @@ margin-left: 10px !important; /*new*/ div { - word-break: break-word; + word-break: break-all; } div.required > label { diff --git a/public/js/script.js b/public/js/script.js index 5521a5367f..3d4bae51d2 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -625,7 +625,6 @@ $.fn.datepicker.defaults.todayHighlight = true; //==================================================================================================================== function GetPdf(invoice,checkMath,report_id){ - var layout = { accountTop: 30, marginLeft: 50, @@ -1534,7 +1533,7 @@ function displayInvoiceItems(doc, invoice, layout) { for (var i=0; i