Commit d1afc9ae authored by ZeMKI's avatar ZeMKI

Update newstudy.vue

* Layout update for tablets.
* Bugfix on token name missing.
parent 42189162
......@@ -129,11 +129,11 @@
<div class="bg-gray-900 p-5 text-center">
<div class="w-full block mx-auto text-white">{{sortingname}}</div>
<div class="block w-full mx-auto">
<span class="hover:bg-blue-500 text-2xl p-2 inline" @click="selectedSorting > 1 ? selectedSorting-- : false">
<span class="hover:bg-blue-500 md:text-2xl sm:text-xs md:p-2 sm:mb-4 md:mt-0 sm:p-0 inline" @click="selectedSorting > 1 ? selectedSorting-- : false">
<arrow-left class="text-white items-center"/>
</span>
<img class=" w-40 h-40 rounded-full inline" :src="baseUrl+productionUrl+'/images/sorting'+selectedSorting+'.png'" alt="circle sorting">
<span class=" hover:bg-blue-500 text-2xl p-2 inline" @click="selectedSorting < 2 ? selectedSorting++ : false">
<span class=" hover:bg-blue-500 md:text-2xl sm:text-xs md:p-2 sm:p-0 sm:mt-4 md:mt-0 inline" @click="selectedSorting < 2 ? selectedSorting++ : false">
<arrow-right class="text-white items-center"/>
</span>
</div>
......@@ -219,11 +219,11 @@
</v-select>
</div>
<b-field class="file block text-center">
<b-field class="file block text-center ">
<b-upload v-model="t.file" @input="setTokenName(index)"
accept="image/*">
<a class="button is-danger">
<div class="md:text-sm">
<a class="bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded md:w-auto sm:w-4">
<div class="md:text-xs text-center">
{{ trans('Click to upload') }}
</div>
</a>
......@@ -570,12 +570,16 @@
maxvalue: 1,
centerLabel: '',
numberofcircles: 3,
tokennumber: 0,
tokennumber: 1,
description: '',
sectionNumber: 2,
sections: ['', ''],
tokens: [
{
name: '',
file: null,
path: '',
},
],
},
......@@ -1252,10 +1256,10 @@
this.response += this.errormessages.short_description;
}
/* if (_.find(this.sorting.tokens, {name: ''}))
{
this.response += this.errormessages.tokens;
}*/
if (_.find(this.sorting.tokens, {name: ''}))
{
this.response += this.errormessages.tokens;
}
if (this.sorting.id == 2 && this.sorting.centerLabel == '')
{
......
Markdown is supported
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