@extends('layouts.master') @section('content')
@if ($step === 1) @lang('descriptions.monothema-quiz.crud') @elseif ($step === 18) @lang('descriptions.monothema-quiz.request-approval') @endif
@if (Helper::createMode()) @if (isset($quiz)) {!! Form::model($quiz, ['route' => 'monothema-quiz.store', 'class' => 'quiz-form model', 'enctype' => 'multipart/form-data', 'accept-charset' => 'UTF-8']) !!}

@else {!! Form::open(['route' => 'monothema-quiz.store', 'class' => 'quiz-form', 'enctype' => 'multipart/form-data', 'accept-charset' => 'UTF-8']) !!} @endif @elseif (Helper::editMode()) {!! Form::model($quiz, ['route' => ['monothema-quiz.update', $quiz->id], 'class' => 'quiz-form', 'enctype' => 'multipart/form-data', 'accept-charset' => 'UTF-8']) !!} @endif
{!! Form::hidden('step', $step) !!} {!! Form::checkbox('go-next', 1, null, ['id' => 'go-next', 'class' => 'hidden']) !!} @if ($step === 1) {!! Form::hidden('image', null, ['class' => 'quiz-image-input']) !!}
Vorlagenname:
{!! Form::text('preset_name', null, ['class' => 'preset-name']) !!}
Tragen Sie hier die Überschrift ein:
(Diese kann zweizeilig angezeigt werden. Nutzen Sie die Enter-Taste, um ihre Überschrift umzubrechen.)
{!! Form::textarea('title', null, ['class' => 'quiz-title', 'placeholder' => '...', 'maxlength' => 100]) !!}
Tragen Sie hier das Oberthema Ihres Quizes ein:
(Das Oberthema ist keine Überschrift und sollte idealerweise nur aus einem Wort bestehen.)
{!! Form::text('theme', null, ['class' => 'quiz-theme', 'placeholder' => '...', 'maxlength' => 30]) !!}
Wählen Sie ein Hintergrundbild aus:
(Dieses wird prominent über die ganze Fläche des Bildschirmes angezeigt.)
Bilddatenbank
@elseif ($step === 18) {!! Form::checkbox('approval', 1, null, ['id' => 'approval', 'class' => 'hidden']) !!} @include ('partials.quiz_preview')
@include ('partials.approvers')
@else
Tragen Sie hier Frage {{ $step - 1 }} ein:
(Achten Sie bitte darauf, dass die Frage einfach und klar formuliert ist.)
{!! Form::textarea('question', $question, ['class' => 'quiz-question', 'placeholder' => '...', 'maxlength' => 100]) !!}
Tragen Sie hier Antwortmöglichkeit A ein:
{!! Form::text('answer_1', $answer_1, ['class' => 'quiz-answer', 'placeholder' => '...', 'maxlength' => 50]) !!}
Tragen Sie hier Antwortmöglichkeit B ein:
{!! Form::text('answer_2', $answer_2, ['class' => 'quiz-answer', 'placeholder' => '...', 'maxlength' => 50]) !!}
Tragen Sie hier Antwortmöglichkeit C ein:
{!! Form::text('answer_3', $answer_3, ['class' => 'quiz-answer', 'placeholder' => '...', 'maxlength' => 50]) !!}
@for ($i=1; $i<=3; $i++)
Warning: Undefined variable $i in C:\Apache24_x64\htdocs\origin_cms\resources\views\monothema\quiz\form.blade.php on line 121
{!! Form::radio('selected_answer', $i, $value, ['id' => 'selected-answer-'.$i, 'class' => 'custom-control-input form-check-input']) !!}
@endfor
@endif
@if ($step === 18) @else @endif
{!! Form::close() !!}
@endsection @section('back_button') @if (Gate::allows('admin-mode')) @if ($step === 1) Zurück @else @if (Helper::createMode()) Zurück @elseif (Helper::editMode()) Zurück @endif @endif @else Zurück @endif @endsection