mirror of
				https://github.com/grocy/grocy.git
				synced 2025-10-31 10:46:36 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| @extends('layout.default')
 | |
| 
 | |
| @if($mode == 'edit')
 | |
| 	@section('title', $L('Edit quantity unit'))
 | |
| @else
 | |
| 	@section('title', $L('Create quantity unit'))
 | |
| @endif
 | |
| 
 | |
| @section('viewJsName', 'quantityunitform')
 | |
| 
 | |
| @section('content')
 | |
| <div class="col-lg-4 col-xs-12">
 | |
| 	<h1 class="page-header">@yield('title')</h1>
 | |
| 
 | |
| 	<script>Grocy.EditMode = '{{ $mode }}';</script>
 | |
| 
 | |
| 	@if($mode == 'edit')
 | |
| 		<script>Grocy.EditObjectId = {{ $quantityunit->id }};</script>
 | |
| 	@endif
 | |
| 
 | |
| 	<form id="quantityunit-form">
 | |
| 
 | |
| 		<div class="form-group">
 | |
| 			<label for="name">{{ $L('Name') }}</label>
 | |
| 			<input type="text" class="form-control" required id="name" name="name" value="@if($mode == 'edit'){{ $quantityunit->name }}@endif">
 | |
| 			<div class="help-block with-errors"></div>
 | |
| 		</div>
 | |
| 
 | |
| 		<div class="form-group">
 | |
| 			<label for="description">{{ $L('Description') }}</label>
 | |
| 			<textarea class="form-control" rows="2" id="description" name="description">@if($mode == 'edit'){{ $quantityunit->description }}@endif</textarea>
 | |
| 		</div>
 | |
| 
 | |
| 		<button id="save-quantityunit-button" type="submit" class="btn btn-default">{{ $L('Save') }}</button>
 | |
| 
 | |
| 	</form>
 | |
| </div>
 | |
| @stop
 |