Commit b0dcb3c5 authored by ZeMKI's avatar ZeMKI
Browse files

study description bugfix + textarea on open answer

parent 969a24ea
This diff is collapsed.
......@@ -33,7 +33,7 @@ class LaratrustSetupTables extends Migration
Schema::create('studies', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('display_name')->nullable();
$table->string('display_name',255)->nullable();
$table->integer('user_id')->unsigned()->references('id')->on('users')->onDelete('cascade');
$table->string('author', 255);
$table->string('description')->nullable();
......
......@@ -11,7 +11,10 @@
<div class="field column is-10">
<div class="control" v-for="(a,answerindex) in x.answer">
<div class="control" v-if="a.type =='open'">
<input class="input is-large" type="text" placeholder="OPEN ANSWER" v-model="results[x.answer.ids[answerindex]]" >
<textarea class="textarea is-large" type="text" placeholder="OPEN ANSWER" v-model="results[x.answer.ids[answerindex]]" >
</textarea>
</div>
<div class="control" v-if="a.type =='scale'">
<input :id="'slider'+x.answer.ids[answerindex]" v-model="results[x.answer.ids[answerindex]]" class="slider is-fullwidth is-large" step="1" :min="a.answer.min" :max="a.answer.max" value="50" type="range">
......@@ -46,10 +49,13 @@
<div class="column is-6" v-for="(x,index) in questions.postsort">
<h1 class="is-size-1">{{x.q}}</h1>
<div class="field column is-10">
<div class="control" v-for="(a,answerindex) in x.answer">
<div class=" column is-10">
<div class="field" v-for="(a,answerindex) in x.answer">
<div class="control" v-if="a.type =='open'">
<input class="input is-large" type="text" placeholder="OPEN ANSWER" v-model="results[x.answer.ids[answerindex]]" >
<textarea class="textarea is-large" type="text" placeholder="OPEN ANSWER" v-model="results[x.answer.ids[answerindex]]" >
</textarea>
</div>
<div class="control" v-if="a.type =='scale'">
<input :id="'slider'+x.answer.ids[answerindex]" v-model="results[x.answer.ids[answerindex]]" class="slider is-fullwidth is-large" step="1" :min="a.answer.min" :max="a.answer.max" value="50" type="range">
......
......@@ -73,15 +73,15 @@
</a>
<div class="navbar-dropdown is-right ">
<a class="navbar-item" href="{{ route('logout') }}"
onclick="event.preventDefault();
document.getElementById('logout-form').submit();">
{{ __('Logout') }}
</a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
@csrf
</form>
</div>
<a class="navbar-item" href="{{ route('logout') }}"
onclick="event.preventDefault();
document.getElementById('logout-form').submit();">
{{ __('Logout') }}
</a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
@csrf
</form>
</div>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment