mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Twig
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Twig
		
	
	
	
	
	
| {% extends "./layout/default.twig" %}
 | |
| 
 | |
| {% block breadcrumbs %}
 | |
|     {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, journal) }}
 | |
| {% endblock %}
 | |
| 
 | |
| {% block content %}
 | |
|     {{ Form.open({'class' : 'form-horizontal','id' : 'destroy','url' : route('transactions.destroy',journal.id)}) }}
 | |
| 
 | |
|     <div class="row">
 | |
|         <div class="col-lg-6 col-lg-offset-3 col-md-6 col-sm-12">
 | |
|             <div class="box box-danger">
 | |
|                 <div class="box-header with-border">
 | |
|                     <h3 class="box-title">{{ trans('form.delete_journal', {'description': journal.description}) }}</h3>
 | |
|                 </div>
 | |
|                 <div class="box-body">
 | |
|                     <p class="text-danger">
 | |
|                         {{ trans('form.permDeleteWarning') }}
 | |
|                     </p>
 | |
| 
 | |
|                     <p>
 | |
|                         {{ trans('form.journal_areYouSure', {'description': journal.description}) }}
 | |
|                     </p>
 | |
|                 </div>
 | |
|                 <div class="box-footer">
 | |
|                     <input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}" class="btn btn-danger pull-right"/>
 | |
|                     {% if journal.transactiontype.type == 'Withdrawal' %}
 | |
|                         <a href="{{ route('transactions.index','withdrawal') }}" class="btn-default btn">{{ trans('form.cancel') }}</a>
 | |
|                     {% endif %}
 | |
|                     {% if journal.transactiontype.type == 'Deposit' %}
 | |
|                         <a href="{{ route('transactions.index','deposit') }}" class="btn-default btn">{{ trans('form.cancel') }}</a>
 | |
|                     {% endif %}
 | |
|                     {% if journal.transactiontype.type == 'Transfer' %}
 | |
|                         <a href="{{ route('transactions.index','transfers') }}" class="btn-default btn">{{ trans('form.cancel') }}</a>
 | |
|                     {% endif %}
 | |
|                 </div>
 | |
|             </div>
 | |
|         </div>
 | |
|     </div>
 | |
| 
 | |
|     {{ Form.close|raw }}
 | |
| {% endblock %}
 |