1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 22:22:32 +01:00
invoiceninja/resources/views/expense_categories/edit.blade.php

54 lines
1.3 KiB
PHP
Raw Normal View History

2016-07-06 20:35:16 +02:00
@extends('header')
@section('content')
{!! Former::open($url)
2017-11-30 20:17:50 +01:00
->addClass('col-lg-10 col-lg-offset-1 warn-on-exit')
2016-07-06 20:35:16 +02:00
->method($method)
->rules([
'name' => 'required',
]) !!}
@if ($category)
{!! Former::populate($category) !!}
@endif
<span style="display:none">
{!! Former::text('public_id') !!}
</span>
<div class="row">
2017-11-30 20:17:50 +01:00
<div class="col-lg-10 col-lg-offset-1">
2016-07-06 20:35:16 +02:00
<div class="panel panel-default">
<div class="panel-body">
{!! Former::text('name') !!}
</div>
</div>
</div>
</div>
<center class="buttons">
2017-07-31 21:14:14 +02:00
{!! Button::normal(trans('texts.cancel'))->large()->asLinkTo(HTMLUtils::previousUrl('/expense_categories'))->appendIcon(Icon::create('remove-circle')) !!}
2016-07-06 20:35:16 +02:00
{!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!}
@if ($category && Auth::user()->can('create', ENTITY_EXPENSE))
{!! Button::primary(trans('texts.new_expense'))->large()
->asLinkTo(url("/expenses/create/0/0/{$category->public_id}"))
->appendIcon(Icon::create('plus-sign')) !!}
@endif
2016-07-06 20:35:16 +02:00
</center>
{!! Former::close() !!}
<script>
$(function() {
$('#name').focus();
});
</script>
@stop