Applied .blade.php formatting rules

This commit is contained in:
Bernd Bestel
2020-08-31 20:32:50 +02:00
parent ea9ba0b2be
commit 33325d5560
90 changed files with 4000 additions and 2091 deletions

View File

@@ -9,41 +9,49 @@
<div class="col-xs-12 col-md-6 col-xl-4 pb-3">
<h2 class="title">@yield('title')</h2>
<hr>
<form id="choretracking-form" novalidate>
<form id="choretracking-form"
novalidate>
<div class="form-group">
<label for="chore_id">{{ $__t('Chore') }}</label>
<select class="form-control combobox" id="chore_id" name="chore_id" required>
<select class="form-control combobox"
id="chore_id"
name="chore_id"
required>
<option value=""></option>
@foreach($chores as $chore)
<option value="{{ $chore->id }}">{{ $chore->name }}</option>
<option value="{{ $chore->id }}">{{ $chore->name }}</option>
@endforeach
</select>
<div class="invalid-feedback">{{ $__t('You have to select a chore') }}</div>
</div>
@include('components.datetimepicker', array(
'id' => 'tracked_time',
'label' => 'Tracked time',
'format' => 'YYYY-MM-DD HH:mm:ss',
'initWithNow' => true,
'limitEndToNow' => true,
'limitStartToNow' => false,
'invalidFeedback' => $__t('This can only be before now')
'id' => 'tracked_time',
'label' => 'Tracked time',
'format' => 'YYYY-MM-DD HH:mm:ss',
'initWithNow' => true,
'limitEndToNow' => true,
'limitStartToNow' => false,
'invalidFeedback' => $__t('This can only be before now')
))
@if(GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS)
@include('components.userpicker', array(
'label' => 'Done by',
'users' => $users,
'nextInputSelector' => '#user_id',
'prefillByUserId' => GROCY_USER_ID
'label' => 'Done by',
'users' => $users,
'nextInputSelector' => '#user_id',
'prefillByUserId' => GROCY_USER_ID
))
@else
<input type="hidden" id="user_id" name="user_id" value="{{ GROCY_USER_ID }}">
<input type="hidden"
id="user_id"
name="user_id"
value="{{ GROCY_USER_ID }}">
@endif
<button id="save-choretracking-button" class="btn btn-success">{{ $__t('OK') }}</button>
<button id="save-choretracking-button"
class="btn btn-success">{{ $__t('OK') }}</button>
</form>
</div>