mirror of
https://github.com/grocy/grocy.git
synced 2025-08-28 09:01:14 +00:00
Applied .blade.php formatting rules
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
@extends('layout.default')
|
||||
|
||||
@if($mode == 'edit')
|
||||
@section('title', $__t('Edit product group'))
|
||||
@section('title', $__t('Edit product group'))
|
||||
@else
|
||||
@section('title', $__t('Create product group'))
|
||||
@section('title', $__t('Create product group'))
|
||||
@endif
|
||||
|
||||
@section('viewJsName', 'productgroupform')
|
||||
@@ -17,31 +17,45 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<script>Grocy.EditMode = '{{ $mode }}';</script>
|
||||
<script>
|
||||
Grocy.EditMode = '{{ $mode }}';
|
||||
</script>
|
||||
|
||||
@if($mode == 'edit')
|
||||
<script>Grocy.EditObjectId = {{ $group->id }};</script>
|
||||
<script>
|
||||
Grocy.EditObjectId = {{ $group->id }};
|
||||
</script>
|
||||
@endif
|
||||
|
||||
<form id="product-group-form" novalidate>
|
||||
<form id="product-group-form"
|
||||
novalidate>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="name">{{ $__t('Name') }}</label>
|
||||
<input type="text" class="form-control" required id="name" name="name" value="@if($mode == 'edit'){{ $group->name }}@endif">
|
||||
<input type="text"
|
||||
class="form-control"
|
||||
required
|
||||
id="name"
|
||||
name="name"
|
||||
value="@if($mode == 'edit'){{ $group->name }}@endif">
|
||||
<div class="invalid-feedback">{{ $__t('A name is required') }}</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="description">{{ $__t('Description') }}</label>
|
||||
<textarea class="form-control" rows="2" id="description" name="description">@if($mode == 'edit'){{ $group->description }}@endif</textarea>
|
||||
<textarea class="form-control"
|
||||
rows="2"
|
||||
id="description"
|
||||
name="description">@if($mode == 'edit'){{ $group->description }}@endif</textarea>
|
||||
</div>
|
||||
|
||||
@include('components.userfieldsform', array(
|
||||
'userfields' => $userfields,
|
||||
'entity' => 'product_groups'
|
||||
'userfields' => $userfields,
|
||||
'entity' => 'product_groups'
|
||||
))
|
||||
|
||||
<button id="save-product-group-button" class="btn btn-success">{{ $__t('Save') }}</button>
|
||||
<button id="save-product-group-button"
|
||||
class="btn btn-success">{{ $__t('Save') }}</button>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user