mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			59 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Twig
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Twig
		
	
	
	
	
	
| <table class="table table-striped table-bordered sortable">
 | |
|     <thead>
 | |
|     <tr>
 | |
|         <th data-defaultsort="disabled"> </th>
 | |
|         <th>Name</th>
 | |
|         {% if what == 'asset' %}
 | |
|         <th>Role</th>
 | |
|         {% endif %}
 | |
|         <th>Current balance</th>
 | |
|         <th>Active</th>
 | |
|         <th>Last activity</th>
 | |
|         <th>Balance difference between {{ Session.get('start').format('jS F Y') }} and {{ Session.get('end').format('jS F Y') }}</th>
 | |
|     </tr>
 | |
|     </thead>
 | |
|     <tbody>
 | |
|     {% for account in accounts %}
 | |
|         <tr>
 | |
|             <td>
 | |
|                 <div class="btn-group btn-group-xs">
 | |
|                     <a class="btn btn-default btn-xs" href="{{route('accounts.edit',account.id)}}"><i class="fa fa-fw fa-pencil"></i></a>
 | |
|                     <a class="btn btn-danger btn-xs" href="{{route('accounts.delete',account.id)}}"><i class="fa fa-fw fa-trash-o"></i></a>
 | |
|                 </div>
 | |
|             </td>
 | |
|             <td><a href="{{route('accounts.show',account.id)}}">{{ account.name }}</a></td>
 | |
|             {% if what == "asset" %}
 | |
|                 <td>
 | |
|                     {% for entry in account.accountmeta %}
 | |
|                         {% if entry.name == 'accountRole' %}
 | |
|                             {{ entry.data|getAccountRole }}
 | |
|                         {% endif %}
 | |
|                     {% endfor %}
 | |
|                 </td>
 | |
|             {% endif %}
 | |
|             <td data-value="{{ account|balance }}">{{ account|balance|formatAmount }}</td>
 | |
|             <td data-value="{{account.active}}">
 | |
|                 {% if account.active %}
 | |
|                     <i class="fa fa-fw fa-check"></i>
 | |
|                 {% else %}
 | |
|                     <i class="fa fa-fw fa-ban"></i>
 | |
|                 {% endif %}
 | |
|             </td>
 | |
|             {% if account.lastActivityDate %}
 | |
|                 <td data-value="{{ account.lastActivityDate.format('U') }} ">
 | |
|                     {{ account.lastActivityDate.format('j F Y') }}
 | |
|                 </td>
 | |
|             {% else %}
 | |
|                 <td data-value="0">
 | |
|                     <em>Never</em>
 | |
|                 </td>
 | |
|             {% endif %}
 | |
|             <td data-value="{{account.endBalance - account.startBalance}}">
 | |
|                 {{ (account.endBalance - account.startBalance)|formatAmount }}
 | |
|             </td>
 | |
| 
 | |
|         </tr>
 | |
| 
 | |
|     {% endfor %}
 | |
|     </tbody>
 | |
| </table> |