Commit 61085851 authored by ZeMKI's avatar ZeMKI
Browse files

Update newstudy.vue

parent 7e1d86fb
......@@ -7,7 +7,7 @@
<section class="section">
<b-tabs position="is-centered" class="block" size="is-medium" expanded>
<b-tab-item label="Study details" data-toggle="tab">
<b-tab-item :label="trans('Study details')" data-toggle="tab">
<h6 class="subtitle has-text-danger mt-2">
{{ trans('Please give your study a name, assign one or more responsible researchers and add a short description. All information is mandatory to successful save the study.')}}
......@@ -68,7 +68,7 @@
</b-tab-item>
<b-tab-item label="Select Sorting options">
<b-tab-item :label="trans('Select Sorting options')">
<h6 class="subtitle has-text-danger mt-2">
{{ trans('Please provide your study with instructions for the interviewee, select a sorting scheme and define sorting tokens according to your needs, or use preset tokens.') }}
</h6>
......@@ -119,7 +119,7 @@
<div class="level">
<div class="field">
<div class="control">
<b-field label="Number of circles (2-8)">
<b-field :label="trans('Number of circles (2-8)')">
<b-numberinput controls-position="compact" type="is-light"
v-model="sorting.numberofcircles" min="2" max="8"
:editable="editable" steps="1"></b-numberinput>
......@@ -131,7 +131,7 @@
<div class="column is-four-fifths" style="margin-left: 1rem;">
<div class="column is-one-quarter">
<b-field label="Number of tokens to be sorted">
<b-field :label="trans('Number of tokens to be sorted')">
<b-numberinput controls-position="compact" type="is-light"
v-model="sorting.tokennumber"
id="numberoftokens" min="1" max="50" :editable="editable"
......@@ -163,7 +163,7 @@
@input="settokenfrompreset(index)">
<template slot="label" slot-scope="label">
{ option.basename }}
{{ option.basename }}
</template>
<template slot="option" slot-scope="option">
<img :src="option.dirname"
......@@ -209,21 +209,21 @@
:src="image.dirname" class="w-5 h-5 inline">
</b-tab-item>
<b-tab-item label="Questions">
<b-tab-item :label="trans('Questions')">
<h6 class="subtitle has-text-danger mt-2">
{{ trans('Here you can define questions that will be displayed before or after the sorting; you can choose between different kinds of question formats as well.') }}
</h6>
<div class="columns">
<div class="column">
<div class="field">
<b-field label="Pre-Sort Questions">
<b-field :label="trans('Pre-Sort Questions')">
<b-numberinput controls-position="compact" type="is-light"
v-model="presort.number"
min="0" max="20" :editable="editable" steps="1"></b-numberinput>
</b-field>
</div>
<div class="field" v-for="(q,index) in presort.questions">
<label class="label">Question</label>
<label class="label">{{trans('Question')}}</label>
<div class="control">
<input v-model="q.question"
class="input bg-gray-200 focus:bg-white border-transparent focus:border-blue-400"
......@@ -261,14 +261,14 @@
</div>
<span v-if="(q.ismultiple || q.isonechoice) && !q.isscale">
<div class="field">
<b-field label="Number of Answers">
<b-field :label="trans('Number of Answers')">
<b-numberinput controls-position="compact" type="is-light" v-model="q.numberofanswer"
min="1" max="20" :editable="editable" steps="1"
@input="normalizeanwers(index,'presort')"></b-numberinput>
</b-field>
</div>
<div class="field" v-for="na in q.numberofanswer">
<label class="label">Answers</label>
<label class="label">{{trans('Answers')}}</label>
<div class="control">
<input v-model="q.answers[na-1]"
class="input bg-gray-200 focus:bg-white border-transparent focus:border-blue-400"
......@@ -324,7 +324,7 @@
</div>
<div class="column">
<div class="field">
<b-field label="Post-Sort Questions">
<b-field :label="trans('Post-Sort Questions')">
<b-numberinput controls-position="compact" type="is-light"
v-model="postsort.number"
min="0" max="20" :editable="editable" steps="1"></b-numberinput>
......@@ -374,7 +374,7 @@
</div>
<span v-if="(q.ismultiple || q.isonechoice) && !q.isscale">
<div class="field">
<b-field label="Number of Answers">
<b-field :label="trans('Number of Answers')">
<b-numberinput controls-position="compact" type="is-light" v-model="q.numberofanswer"
min="1" max="20" :editable="editable" steps="1"
@input="normalizeanwers(index,'postsort')"
......@@ -382,7 +382,7 @@
</b-field>
</div>
<div class="field" v-for="na in q.numberofanswer">
<label class="label">Answers</label>
<label class="label">{{trans('Answers')}}</label>
<div class="control">
<input v-model="q.answers[na-1]"
class="input bg-gray-200 focus:bg-white border-transparent focus:border-blue-400"
......
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