mirror of
https://github.com/grocy/grocy.git
synced 2025-10-14 17:24:07 +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 shopping list'))
|
||||
@section('title', $__t('Edit shopping list'))
|
||||
@else
|
||||
@section('title', $__t('Create shopping list'))
|
||||
@section('title', $__t('Create shopping list'))
|
||||
@endif
|
||||
|
||||
@section('viewJsName', 'shoppinglistform')
|
||||
@@ -17,21 +17,32 @@
|
||||
</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 = {{ $shoppingList->id }};</script>
|
||||
<script>
|
||||
Grocy.EditObjectId = {{ $shoppingList->id }};
|
||||
</script>
|
||||
@endif
|
||||
|
||||
<form id="shopping-list-form" novalidate>
|
||||
<form id="shopping-list-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'){{ $shoppingList->name }}@endif">
|
||||
<input type="text"
|
||||
class="form-control"
|
||||
required
|
||||
id="name"
|
||||
name="name"
|
||||
value="@if($mode == 'edit'){{ $shoppingList->name }}@endif">
|
||||
<div class="invalid-feedback">{{ $__t('A name is required') }}</div>
|
||||
</div>
|
||||
|
||||
<button id="save-shopping-list-button" class="btn btn-success">{{ $__t('Save') }}</button>
|
||||
<button id="save-shopping-list-button"
|
||||
class="btn btn-success">{{ $__t('Save') }}</button>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user