1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/resources/views/accounts/product.blade.php

59 lines
1.5 KiB
PHP
Raw Normal View History

2015-10-14 16:15:39 +02:00
@extends('header')
2015-03-16 22:45:25 +01:00
2016-09-23 16:00:47 +02:00
@section('content')
2015-03-16 22:45:25 +01:00
@parent
2015-04-06 13:46:02 +02:00
{!! Former::open($url)->method($method)
2015-06-14 10:55:02 +02:00
->rules(['product_key' => 'required|max:255'])
2016-09-23 16:00:47 +02:00
->addClass('col-md-10 col-md-offset-1 warn-on-exit') !!}
2015-03-16 22:45:25 +01:00
2015-04-20 16:34:23 +02:00
<div class="panel panel-default">
2015-04-22 21:21:04 +02:00
<div class="panel-heading">
<h3 class="panel-title">{!! $title !!}</h3>
</div>
2015-10-14 19:18:19 +02:00
<div class="panel-body form-padding-right">
2015-04-20 16:34:23 +02:00
2015-03-16 22:45:25 +01:00
@if ($product)
{{ Former::populate($product) }}
{{ Former::populateField('cost', Utils::roundSignificant($product->cost)) }}
2015-03-16 22:45:25 +01:00
@endif
2015-04-06 13:46:02 +02:00
{!! Former::text('product_key')->label('texts.product') !!}
2016-09-23 16:00:47 +02:00
{!! Former::textarea('notes')->rows(6) !!}
2017-02-23 15:33:02 +01:00
@if ($account->hasFeature(FEATURE_INVOICE_SETTINGS))
@if ($account->custom_invoice_item_label1)
2017-08-04 15:39:11 +02:00
{!! Former::text('custom_value1')->label(e($account->custom_invoice_item_label1)) !!}
2017-02-23 15:33:02 +01:00
@endif
@if ($account->custom_invoice_item_label2)
2017-08-04 15:39:11 +02:00
{!! Former::text('custom_value2')->label(e($account->custom_invoice_item_label2)) !!}
2017-02-23 15:33:02 +01:00
@endif
@endif
2015-04-06 13:46:02 +02:00
{!! Former::text('cost') !!}
2015-03-16 22:45:25 +01:00
2017-05-29 18:32:32 +02:00
@if ($account->invoice_item_taxes)
@include('partials.tax_rates')
@endif
2015-10-21 13:11:08 +02:00
2015-04-20 16:34:23 +02:00
</div>
</div>
2016-09-23 16:00:47 +02:00
{!! Former::actions(
2017-06-13 14:42:41 +02:00
Button::normal(trans('texts.cancel'))->large()->asLinkTo(HTMLUtils::previousUrl('/products'))->appendIcon(Icon::create('remove-circle')),
2015-06-04 22:53:58 +02:00
Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk'))
2015-04-06 13:46:02 +02:00
) !!}
2015-03-16 22:45:25 +01:00
2015-04-06 13:46:02 +02:00
{!! Former::close() !!}
2015-03-16 22:45:25 +01:00
<script type="text/javascript">
2015-05-09 20:25:16 +02:00
$(function() {
$('#product_key').focus();
});
2015-03-16 22:45:25 +01:00
</script>
2016-09-23 16:00:47 +02:00
@stop