Added a "clear" button above the new notes field on the shopping list page

This commit is contained in:
Bernd Bestel
2019-09-28 08:48:58 +02:00
parent e548caabb1
commit dea2ffeaaf
4 changed files with 30 additions and 2 deletions

View File

@@ -149,7 +149,8 @@
<div class="col-xs-12 col-md-8">
<div class="form-group">
<label class="text-larger font-weight-bold" for="notes">{{ $__t('Notes') }}</label>
<a id="save-description-button" class="btn btn-success btn-sm ml-1 mb-2 disabled" href="#">{{ $__t('Save') }}</a>
<a id="save-description-button" class="btn btn-success btn-sm ml-1 mb-2" href="#">{{ $__t('Save') }}</a>
<a id="clear-description-button" class="btn btn-danger btn-sm ml-1 mb-2" href="#">{{ $__t('Clear') }}</a>
<textarea class="form-control wysiwyg-editor" id="description" name="description">{{ FindObjectInArrayByPropertyValue($shoppingLists, 'id', $selectedShoppingListId)->description }}</textarea>
</div>
</div>