Delete tags

This commit is contained in:
James Cole
2015-04-28 11:04:46 +02:00
parent 21644ff4dd
commit e232f2e223
4 changed files with 103 additions and 7 deletions

View File

@@ -0,0 +1,44 @@
@extends('layouts.default')
@section('content')
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $tag) !!}
{!! Form::open(['class' => 'form-horizontal','id' => 'destroy','url' => route('tags.destroy',$tag->id)]) !!}
<div class="row">
<div class="col-lg-6 col-md-12 col-sm-12">
<div class="panel panel-red">
<div class="panel-heading">
Delete tag "{{{$tag->tag}}}"
</div>
<div class="panel-body">
<p>
Are you sure that you want to delete tag "{{{$tag->tag}}}"?
</p>
@if($tag->transactionjournals()->count() > 0)
<p class="text-info">
Tag "{{{$tag->name}}}" still has {{$tag->transactionjournals()->count()}} transaction(s) connected
to it. These will <strong>not</strong> be removed but will lose their connection to this tag.
</p>
@endif
<p>
<button type="submit" class="btn btn-default btn-danger">Delete permanently</button>
<a href="{{URL::previous()}}" class="btn-default btn">Cancel</a >
</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6">
<div class="form-group">
<div class="col-sm-8">
</div>
</div>
</div>
</div>
{!! Form::close() !!}
@stop