mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Applied .blade.php formatting rules
This commit is contained in:
@@ -5,12 +5,13 @@
|
||||
@section('viewJsName', 'mealplan')
|
||||
|
||||
@push('pageScripts')
|
||||
<script src="{{ $U('/node_modules/fullcalendar/dist/fullcalendar.min.js?v=', true) }}{{ $version }}"></script>
|
||||
@if(!empty($__t('fullcalendar_locale') && $__t('fullcalendar_locale') != 'x'))<script src="{{ $U('/node_modules', true) }}/fullcalendar/dist/locale/{{ $__t('fullcalendar_locale') }}.js?v={{ $version }}"></script>@endif
|
||||
<script src="{{ $U('/node_modules/fullcalendar/dist/fullcalendar.min.js?v=', true) }}{{ $version }}"></script>
|
||||
@if(!empty($__t('fullcalendar_locale') && $__t('fullcalendar_locale') != 'x'))<script src="{{ $U('/node_modules', true) }}/fullcalendar/dist/locale/{{ $__t('fullcalendar_locale') }}.js?v={{ $version }}"></script>@endif
|
||||
@endpush
|
||||
|
||||
@push('pageStyles')
|
||||
<link href="{{ $U('/node_modules/fullcalendar/dist/fullcalendar.min.css?v=', true) }}{{ $version }}" rel="stylesheet">
|
||||
<link href="{{ $U('/node_modules/fullcalendar/dist/fullcalendar.min.css?v=', true) }}{{ $version }}"
|
||||
rel="stylesheet">
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
@@ -38,94 +39,130 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="add-recipe-modal" tabindex="-1">
|
||||
<div class="modal fade"
|
||||
id="add-recipe-modal"
|
||||
tabindex="-1">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 id="add-recipe-modal-title" class="modal-title w-100"></h4>
|
||||
<h4 id="add-recipe-modal-title"
|
||||
class="modal-title w-100"></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="add-recipe-form" novalidate>
|
||||
<form id="add-recipe-form"
|
||||
novalidate>
|
||||
|
||||
@include('components.recipepicker', array(
|
||||
'recipes' => $recipes,
|
||||
'isRequired' => true,
|
||||
'nextInputSelector' => '#recipe_servings'
|
||||
'recipes' => $recipes,
|
||||
'isRequired' => true,
|
||||
'nextInputSelector' => '#recipe_servings'
|
||||
))
|
||||
|
||||
@include('components.numberpicker', array(
|
||||
'id' => 'recipe_servings',
|
||||
'label' => 'Servings',
|
||||
'min' => 1,
|
||||
'value' => '1',
|
||||
'invalidFeedback' => $__t('This cannot be lower than %s', '1')
|
||||
'id' => 'recipe_servings',
|
||||
'label' => 'Servings',
|
||||
'min' => 1,
|
||||
'value' => '1',
|
||||
'invalidFeedback' => $__t('This cannot be lower than %s', '1')
|
||||
))
|
||||
|
||||
<input type="hidden" id="day" name="day" value="">
|
||||
<input type="hidden" name="type" value="recipe">
|
||||
<input type="hidden"
|
||||
id="day"
|
||||
name="day"
|
||||
value="">
|
||||
<input type="hidden"
|
||||
name="type"
|
||||
value="recipe">
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{ $__t('Cancel') }}</button>
|
||||
<button id="save-add-recipe-button" data-dismiss="modal" class="btn btn-success">{{ $__t('Save') }}</button>
|
||||
<button type="button"
|
||||
class="btn btn-secondary"
|
||||
data-dismiss="modal">{{ $__t('Cancel') }}</button>
|
||||
<button id="save-add-recipe-button"
|
||||
data-dismiss="modal"
|
||||
class="btn btn-success">{{ $__t('Save') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="add-note-modal" tabindex="-1">
|
||||
<div class="modal fade"
|
||||
id="add-note-modal"
|
||||
tabindex="-1">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 id="add-note-modal-title" class="modal-title w-100"></h4>
|
||||
<h4 id="add-note-modal-title"
|
||||
class="modal-title w-100"></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="add-note-form" novalidate>
|
||||
<form id="add-note-form"
|
||||
novalidate>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="note">{{ $__t('Note') }}</label>
|
||||
<textarea class="form-control" rows="2" id="note" name="note"></textarea>
|
||||
<textarea class="form-control"
|
||||
rows="2"
|
||||
id="note"
|
||||
name="note"></textarea>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="type" value="note">
|
||||
<input type="hidden"
|
||||
name="type"
|
||||
value="note">
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{ $__t('Cancel') }}</button>
|
||||
<button id="save-add-note-button" data-dismiss="modal" class="btn btn-success">{{ $__t('Save') }}</button>
|
||||
<button type="button"
|
||||
class="btn btn-secondary"
|
||||
data-dismiss="modal">{{ $__t('Cancel') }}</button>
|
||||
<button id="save-add-note-button"
|
||||
data-dismiss="modal"
|
||||
class="btn btn-success">{{ $__t('Save') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="add-product-modal" tabindex="-1">
|
||||
<div class="modal fade"
|
||||
id="add-product-modal"
|
||||
tabindex="-1">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 id="add-product-modal-title" class="modal-title w-100"></h4>
|
||||
<h4 id="add-product-modal-title"
|
||||
class="modal-title w-100"></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="add-product-form" novalidate>
|
||||
<form id="add-product-form"
|
||||
novalidate>
|
||||
|
||||
@include('components.productpicker', array(
|
||||
'products' => $products,
|
||||
'nextInputSelector' => '#amount'
|
||||
'products' => $products,
|
||||
'nextInputSelector' => '#amount'
|
||||
))
|
||||
|
||||
@include('components.productamountpicker', array(
|
||||
'value' => 1,
|
||||
'additionalGroupCssClasses' => 'mb-0'
|
||||
'value' => 1,
|
||||
'additionalGroupCssClasses' => 'mb-0'
|
||||
))
|
||||
|
||||
<input type="hidden" name="type" value="product">
|
||||
<input type="hidden"
|
||||
name="type"
|
||||
value="product">
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{ $__t('Cancel') }}</button>
|
||||
<button id="save-add-product-button" data-dismiss="modal" class="btn btn-success">{{ $__t('Save') }}</button>
|
||||
<button type="button"
|
||||
class="btn btn-secondary"
|
||||
data-dismiss="modal">{{ $__t('Cancel') }}</button>
|
||||
<button id="save-add-product-button"
|
||||
data-dismiss="modal"
|
||||
class="btn btn-success">{{ $__t('Save') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user