mirror of
				https://github.com/grocy/grocy.git
				synced 2025-10-31 10:46:36 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			49 lines
		
	
	
		
			988 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			988 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| @extends('layout.default')
 | |
| 
 | |
| @if($mode == 'edit')
 | |
| @section('title', $__t('Edit %s', $userentity->caption))
 | |
| @else
 | |
| @section('title', $__t('Create %s', $userentity->caption))
 | |
| @endif
 | |
| 
 | |
| @section('viewJsName', 'userobjectform')
 | |
| 
 | |
| @section('content')
 | |
| <div class="row">
 | |
| 	<div class="col">
 | |
| 		<h2 class="title">@yield('title')</h2>
 | |
| 	</div>
 | |
| </div>
 | |
| 
 | |
| <hr class="my-2">
 | |
| 
 | |
| <div class="row">
 | |
| 	<div class="col-lg-6 col-xs-12">
 | |
| 		<script>
 | |
| 			Grocy.EditMode = '{{ $mode }}';
 | |
| 			Grocy.EditObjectParentId = {{ $userentity->id }};
 | |
| 			Grocy.EditObjectParentName = "{{ $userentity->name }}";
 | |
| 		</script>
 | |
| 
 | |
| 		@if($mode == 'edit')
 | |
| 		<script>
 | |
| 			Grocy.EditObjectId = {{ $userobject->id }};
 | |
| 		</script>
 | |
| 		@endif
 | |
| 
 | |
| 		<form id="userobject-form"
 | |
| 			novalidate>
 | |
| 
 | |
| 			@include('components.userfieldsform', array(
 | |
| 			'userfields' => $userfields,
 | |
| 			'entity' => 'userentity-' . $userentity->name
 | |
| 			))
 | |
| 
 | |
| 			<button id="save-userobject-button"
 | |
| 				class="btn btn-success">{{ $__t('Save') }}</button>
 | |
| 
 | |
| 		</form>
 | |
| 	</div>
 | |
| </div>
 | |
| @stop
 |