Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ZeMKI
Mesort
Commits
b0dcb3c5
Commit
b0dcb3c5
authored
Jul 04, 2019
by
ZeMKI
Browse files
study description bugfix + textarea on open answer
parent
969a24ea
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
composer.lock
View file @
b0dcb3c5
This diff is collapsed.
Click to expand it.
database/migrations/2018_06_18_083851_laratrust_setup_tables.php
View file @
b0dcb3c5
...
...
@@ -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
();
...
...
resources/js/components/newinterview.vue
View file @
b0dcb3c5
...
...
@@ -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"
>
...
...
resources/views/layouts/nav.blade.php
View file @
b0dcb3c5
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment