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

57 lines
1.4 KiB
PHP

@extends('header')
@section('content')
{!! Former::open($url)
->addClass('col-md-10 col-md-offset-1 warn-on-exit')
->method($method)
->rules([
'name' => 'required',
]) !!}
@if ($category)
{!! Former::populate($category) !!}
@endif
<span style="display:none">
{!! Former::text('public_id') !!}
</span>
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{!! trans('texts.category') !!}</h3>
</div>
<div class="panel-body">
{!! Former::text('name') !!}
</div>
</div>
</div>
</div>
<center class="buttons">
{!! Button::normal(trans('texts.cancel'))->large()->asLinkTo(url('/expense_categories'))->appendIcon(Icon::create('remove-circle')) !!}
{!! 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
</center>
{!! Former::close() !!}
<script>
$(function() {
$('#name').focus();
});
</script>
@stop