mirror of
				https://github.com/grocy/grocy.git
				synced 2025-10-31 02:36:54 +00:00 
			
		
		
		
	Implement custom entities / objects (closes #242)
This commit is contained in:
		
							
								
								
									
										62
									
								
								views/userentities.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										62
									
								
								views/userentities.blade.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,62 @@ | ||||
| @extends('layout.default') | ||||
|  | ||||
| @section('title', $__t('Userentities')) | ||||
| @section('activeNav', 'userentities') | ||||
| @section('viewJsName', 'userentities') | ||||
|  | ||||
| @section('content') | ||||
| <div class="row"> | ||||
| 	<div class="col"> | ||||
| 		<h1> | ||||
| 			@yield('title') | ||||
| 			<a id="new-userentity-button" class="btn btn-outline-dark" href="{{ $U('/userentity/new') }}"> | ||||
| 				<i class="fas fa-plus"></i> {{ $__t('Add') }} | ||||
| 			</a> | ||||
| 		</h1> | ||||
| 	</div> | ||||
| </div> | ||||
|  | ||||
| <div class="row mt-3"> | ||||
| 	<div class="col-xs-12 col-md-6 col-xl-3"> | ||||
| 		<label for="search">{{ $__t('Search') }}</label> <i class="fas fa-search"></i> | ||||
| 		<input type="text" class="form-control" id="search"> | ||||
| 	</div> | ||||
| </div> | ||||
|  | ||||
| <div class="row"> | ||||
| 	<div class="col"> | ||||
| 		<table id="userentities-table" class="table table-sm table-striped dt-responsive"> | ||||
| 			<thead> | ||||
| 				<tr> | ||||
| 					<th class="border-right"></th> | ||||
| 					<th>{{ $__t('Name') }}</th> | ||||
| 					<th>{{ $__t('Caption') }}</th> | ||||
| 				</tr> | ||||
| 			</thead> | ||||
| 			<tbody class="d-none"> | ||||
| 				@foreach($userentities as $userentity) | ||||
| 				<tr> | ||||
| 					<td class="fit-content border-right"> | ||||
| 						<a class="btn btn-info btn-sm" href="{{ $U('/userentity/') }}{{ $userentity->id }}"> | ||||
| 							<i class="fas fa-edit"></i> | ||||
| 						</a> | ||||
| 						<a class="btn btn-danger btn-sm userentity-delete-button" href="#" data-userentity-id="{{ $userentity->id }}" data-userentity-name="{{ $userentity->name }}"> | ||||
| 							<i class="fas fa-trash"></i> | ||||
| 						</a> | ||||
| 						<a class="btn btn-secondary btn-sm" href="{{ $U('/userfields?entity=userentity-') }}{{ $userentity->name }}"> | ||||
| 							<i class="fas fa-th-list"></i> {{ $__t('Configure userfields') }} | ||||
| 						</a> | ||||
| 					</td> | ||||
| 					<td> | ||||
| 						{{ $userentity->name }} | ||||
| 					</td> | ||||
| 					<td> | ||||
| 						{{ $userentity->caption }} | ||||
| 					</td> | ||||
| 				</tr> | ||||
| 				@endforeach | ||||
| 			</tbody> | ||||
| 		</table> | ||||
| 	</div> | ||||
| </div> | ||||
| @stop | ||||
		Reference in New Issue
	
	Block a user