mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			74 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			Twig
		
	
	
	
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			Twig
		
	
	
	
	
	
| {% extends "./layout/default" %}
 | |
| 
 | |
| {% block breadcrumbs %}
 | |
|     {{ Breadcrumbs.render(Route.getCurrentRoute.getName, bill) }}
 | |
| {% endblock %}
 | |
| 
 | |
| {% block content %}
 | |
| 
 | |
|     {{ Form.model(bill, {'class' : 'form-horizontal','enctype': 'multipart/form-data','id' : 'update','url' : route('bills.update', bill.id)}) }}
 | |
| 
 | |
|     <input type="hidden" name="id" value="{{ bill.id }}"/>
 | |
| 
 | |
|     <div class="row">
 | |
|         <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
 | |
|             <div class="box box-primary">
 | |
|                 <div class="box-header with-border">
 | |
|                     <h3 class="box-title">{{ 'mandatoryFields'|_ }}</h3>
 | |
|                 </div>
 | |
|                 <div class="box-body">
 | |
|                     {{ ExpandedForm.text('name') }}
 | |
|                     {{ ExpandedForm.tags('match') }}
 | |
|                     {{ ExpandedForm.amount('amount_min') }}
 | |
|                     {{ ExpandedForm.amount('amount_max') }}
 | |
|                     {{ ExpandedForm.date('date',bill.date.format('Y-m-d')) }}
 | |
|                     {{ ExpandedForm.select('repeat_freq',periods) }}
 | |
|                 </div>
 | |
|             </div>
 | |
| 
 | |
| 
 | |
|         </div>
 | |
|         <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
 | |
|             <div class="box">
 | |
|                 <div class="box-header with-border">
 | |
|                     <h3 class="box-title">{{ 'optionalFields'|_ }}</h3>
 | |
|                 </div>
 | |
|                 <div class="box-body">
 | |
|                     {{ ExpandedForm.textarea('notes',null,{helpText: trans('firefly.field_supports_markdown')}) }}
 | |
|                     {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
 | |
|                     {{ ExpandedForm.integer('skip') }}
 | |
|                     {{ ExpandedForm.checkbox('automatch',1) }}
 | |
|                     {{ ExpandedForm.checkbox('active',1) }}
 | |
| 
 | |
|                 </div>
 | |
|             </div>
 | |
|             <div class="box">
 | |
|                 <div class="box-header with-border">
 | |
|                     <h3 class="box-title">{{ 'options'|_ }}</h3>
 | |
|                 </div>
 | |
|                 <div class="box-body">
 | |
|                     {{ ExpandedForm.optionsList('update','bill') }}
 | |
|                 </div>
 | |
|                 <div class="box-footer">
 | |
|                     <button type="submit" class="btn pull-right btn-success">
 | |
|                         {{ 'update_bill'|_ }}
 | |
|                     </button>
 | |
|                 </div>
 | |
|             </div>
 | |
|         </div>
 | |
|     </div>
 | |
|     {{ Form.close|raw }}
 | |
| 
 | |
| {% endblock %}
 | |
| {% block styles %}
 | |
|     <link href="css/bootstrap-tagsinput.css?v={{ FF_VERSION }}" type="text/css" rel="stylesheet" media="all">
 | |
|     <link href="css/jquery-ui/jquery-ui.structure.min.css?v={{ FF_VERSION }}" type="text/css" rel="stylesheet" media="all">
 | |
|     <link href="css/jquery-ui/jquery-ui.theme.min.css?v={{ FF_VERSION }}" type="text/css" rel="stylesheet" media="all">
 | |
| {% endblock %}
 | |
| {% block scripts %}
 | |
|     <script type="text/javascript" src="js/lib/bootstrap-tagsinput.min.js?v={{ FF_VERSION }}"></script>
 | |
|     <script type="text/javascript" src="js/lib/modernizr-custom.js?v={{ FF_VERSION }}"></script>
 | |
|     <script type="text/javascript" src="js/lib/jquery-ui.min.js?v={{ FF_VERSION }}"></script>
 | |
|     <script type="text/javascript" src="js/ff/accounts/edit.js?v={{ FF_VERSION }}"></script>
 | |
| {% endblock %}
 |