- Korrektur bei Verarbeitung Aufgabe "Schlangentext".
+# V 0.3.4 Task
+
+- Korrektur bei Verarbeitung Aufgabe "Schlangentext".
+
# V 0.3.3 Aufgaben mittels Note/Task, Email bei Note, Farben
## Added
} else {
$fields = $request->all();
if (count($fields) <= 1) {
- $fields['snaketext'] = TextProcessor::compressSnakeText($page->body);
+ $fields['snaketext'] = TextProcessor::compressSnakeText($page->contents);
$fields['solution'] = $note->body != null && $note->body !== '' ? $note->body : $fields['snaketext'];
+ $fields['message'] = '';
if ($page != null && $note != null) {
$fields['pageId'] = $page->id;
}
}
+ if ($request->btnSubmit === 'btnCheck') {
+ $fields['message'] = __('I found 3 errors.');
+ }
if ($request->btnSubmit === 'btnStore') {
$note->update(['body' => $fields['solution']]);
}
width2="4" />
<x-laraknife.forms.string position="alone" name="title" label="Title"
value="{{ $context->valueOf('title') }}" width2="10" />
- <x-laraknife.forms.text position="alone" name="body" label="Body" value="{{ $context->valueOf('body') }}"
- width2="10" rows="10" />
<x-laraknife.forms.combobox position="first" name="task" label="Task" :options="$optionsTask"
width2="4" />
</x-laraknife.panels.create>
<x-laraknife.panels.edit title="{{ __('Change of a Task') }}">
<x-laraknife.layout.nav-tabs :info="$navTabsInfo" fieldset="true">
<input type="hidden" name="pageNo" value="{{ $context->valueOf('pageNo') }}" />
- <x-laraknife.forms.text position="alone" name="contents" label="Snaketext"
+ <x-laraknife.forms.text position="alone" name="snaketext" label="Snaketext"
value="{{ $context->valueOf('snaketext') }}" width2="10" rows="4" attribute="readonly" />
<x-laraknife.forms.text position="alone" name="solution" label="Solution"
value="{{ $context->valueOf('solution') }}" width2="10" rows="4" />
<x-laraknife.buttons.button-position position="alone" name="btnCheck" label="Check" width2="4" />
- @if ($context->valueOf('note') != null)
- <x-laraknife.forms.const-text text="" width2="10" />
+ @if ($context->valueOf('message') != null)
+ <x-laraknife.forms.const-text text="{{ $context->valueOf('message')}}" width2="10" />
@endif
</x-laraknife.layout.nav-tabs>
</x-laraknife.panels.edit>