Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
survey
Commits
9a60dc8a
Commit
9a60dc8a
authored
Jul 02, 2022
by
Jiwon Yoon
Browse files
세부변경사항 수정
parent
5921fbdd
Changes
5
Hide whitespace changes
Inline
Side-by-side
frontend/src/CreateSurveyForm/CreateSurveyFormPage.tsx
View file @
9a60dc8a
...
@@ -37,6 +37,7 @@ export const CreateSurveyForm = () => (
...
@@ -37,6 +37,7 @@ export const CreateSurveyForm = () => (
cols
=
{
60
}
cols
=
{
60
}
></
textarea
>
></
textarea
>
</
div
>
</
div
>
<
Question
/>
<
Question
/>
<
div
className
=
"flex w-4/5 content-center justify-center border-2 border-black h-8 mt-3"
>
<
div
className
=
"flex w-4/5 content-center justify-center border-2 border-black h-8 mt-3"
>
...
...
frontend/src/CreateSurveyForm/Q_Assay.tsx
View file @
9a60dc8a
...
@@ -10,13 +10,13 @@ export const Q_Assay = ({ element, questionList }: Props) => {
...
@@ -10,13 +10,13 @@ export const Q_Assay = ({ element, questionList }: Props) => {
console
.
log
(
questionList
);
console
.
log
(
questionList
);
return
(
return
(
<
div
className
=
"flex flex-col container w-4/5 h-auto border-2 border-themeColor items-center m-3 py-2"
>
<
div
className
=
"flex flex-col container w-4/5 h-auto border-2 border-themeColor items-center m-3 py-2"
>
<
div
className
=
"flex
flexgi-row
h-16 w-full place-content-between items-center"
>
<
div
className
=
"flex h-16 w-full place-content-between items-center"
>
<
p
className
=
"text-xl font-bold
w-1/2 ml-6
"
>
<
p
className
=
"text-xl font-bold
ml-6 border-b-2
"
>
<
input
type
=
"text"
placeholder
=
{
element
.
title
}
></
input
>
<
input
type
=
"text"
placeholder
=
{
element
.
title
}
></
input
>
</
p
>
</
p
>
<
select
<
select
id
=
"Questions"
id
=
"Questions"
className
=
"w-36 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-themeColor
focus:themeColor block
w-full mr-3 p-2.5"
className
=
"w-36 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-themeColor w-full mr-3 p-2.5"
>
>
<
option
>
질문종류
</
option
>
<
option
>
질문종류
</
option
>
<
option
value
=
"Essay"
selected
>
<
option
value
=
"Essay"
selected
>
...
@@ -30,7 +30,7 @@ export const Q_Assay = ({ element, questionList }: Props) => {
...
@@ -30,7 +30,7 @@ export const Q_Assay = ({ element, questionList }: Props) => {
<
option
value
=
"Date"
>
날짜
</
option
>
<
option
value
=
"Date"
>
날짜
</
option
>
</
select
>
</
select
>
</
div
>
</
div
>
<
div
className
=
"flex "
>
<
div
className
=
"flex
w-full
"
>
<
textarea
<
textarea
className
=
"border"
className
=
"border"
rows
=
{
1
}
rows
=
{
1
}
...
@@ -39,10 +39,11 @@ export const Q_Assay = ({ element, questionList }: Props) => {
...
@@ -39,10 +39,11 @@ export const Q_Assay = ({ element, questionList }: Props) => {
></
textarea
>
></
textarea
>
</
div
>
</
div
>
<
div
id
=
"commentarea"
className
=
"flex border mt-4"
>
<
div
id
=
"commentarea"
className
=
"flex border mt-4"
>
<
textarea
className
=
"resize-none"
cols
=
{
80
}
readOnly
></
textarea
>
<
textarea
className
=
"resize-none"
readOnly
></
textarea
>
</
div
>
</
div
>
<
div
className
=
"flex w-full
flex-row
justify-end py-2"
>
<
div
className
=
"flex w-full justify-end py-2"
>
<
button
className
=
"w-1/12"
>
필수
</
button
>
<
button
className
=
"w-1/12"
>
필수
</
button
>
<
button
className
=
"w-1/12"
>
옵션
</
button
>
<
button
className
=
"w-1/12"
>
삭제
</
button
>
<
button
className
=
"w-1/12"
>
삭제
</
button
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
frontend/src/CreateSurveyForm/Q_Checkbox.tsx
View file @
9a60dc8a
...
@@ -8,7 +8,7 @@ type Props = {
...
@@ -8,7 +8,7 @@ type Props = {
export
const
Q_Checkbox
=
({
element
}:
Props
)
=>
(
export
const
Q_Checkbox
=
({
element
}:
Props
)
=>
(
<
div
className
=
"flex flex-col container w-4/5 h-auto border-2 border-themeColor items-center m-3 py-2"
>
<
div
className
=
"flex flex-col container w-4/5 h-auto border-2 border-themeColor items-center m-3 py-2"
>
<
div
className
=
"flex flexgi-row h-16 w-full place-content-between items-center"
>
<
div
className
=
"flex flexgi-row h-16 w-full place-content-between items-center"
>
<
p
className
=
"
underline underline-offset-auto
text-xl font-bold
w-1/2 ml-6
"
>
<
p
className
=
"text-xl font-bold
ml-6 border-b-2
"
>
<
input
type
=
"text"
placeholder
=
{
element
.
title
}
></
input
>
<
input
type
=
"text"
placeholder
=
{
element
.
title
}
></
input
>
</
p
>
</
p
>
<
select
<
select
...
@@ -49,6 +49,7 @@ export const Q_Checkbox = ({ element }: Props) => (
...
@@ -49,6 +49,7 @@ export const Q_Checkbox = ({ element }: Props) => (
</
div
>
</
div
>
<
div
className
=
"flex w-full flex-row justify-end py-2"
>
<
div
className
=
"flex w-full flex-row justify-end py-2"
>
<
button
className
=
"w-1/12"
>
필수
</
button
>
<
button
className
=
"w-1/12"
>
필수
</
button
>
<
button
className
=
"w-1/12"
>
옵션
</
button
>
<
button
className
=
"w-1/12"
>
삭제
</
button
>
<
button
className
=
"w-1/12"
>
삭제
</
button
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
frontend/src/CreateSurveyForm/Q_Radio.tsx
View file @
9a60dc8a
...
@@ -8,8 +8,8 @@ type Props = {
...
@@ -8,8 +8,8 @@ type Props = {
export
const
Q_Radio
=
({
element
}:
Props
)
=>
(
export
const
Q_Radio
=
({
element
}:
Props
)
=>
(
<
div
className
=
"flex flex-col container w-4/5 h-auto border-2 border-themeColor items-center m-3 py-2"
>
<
div
className
=
"flex flex-col container w-4/5 h-auto border-2 border-themeColor items-center m-3 py-2"
>
<
div
className
=
"flex flexgi-row h-16 w-full place-content-between items-center"
>
<
div
className
=
"flex flexgi-row h-16 w-full place-content-between items-center"
>
<
p
className
=
"
underline underline-offset-auto
text-xl font-bold
w-1/2 ml-6
"
>
<
p
className
=
"text-xl font-bold
ml-6 border-b-2
"
>
<
input
type
=
"text"
placeholder
=
{
element
.
title
}
></
input
>
<
input
type
=
"text
"
placeholder
=
{
element
.
title
}
></
input
>
</
p
>
</
p
>
<
select
<
select
id
=
"Questions"
id
=
"Questions"
...
@@ -53,6 +53,7 @@ export const Q_Radio = ({ element }: Props) => (
...
@@ -53,6 +53,7 @@ export const Q_Radio = ({ element }: Props) => (
</
div
>
</
div
>
<
div
className
=
"flex w-full flex-row justify-end py-2"
>
<
div
className
=
"flex w-full flex-row justify-end py-2"
>
<
button
className
=
"w-1/12"
>
필수
</
button
>
<
button
className
=
"w-1/12"
>
필수
</
button
>
<
button
className
=
"w-1/12"
>
옵션
</
button
>
<
button
className
=
"w-1/12"
>
삭제
</
button
>
<
button
className
=
"w-1/12"
>
삭제
</
button
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
frontend/src/CreateSurveyForm/Question.tsx
View file @
9a60dc8a
...
@@ -23,7 +23,7 @@ let EssayQ: EssayType = {
...
@@ -23,7 +23,7 @@ let EssayQ: EssayType = {
export
interface
RadioType
extends
BasicQuestionType
{
export
interface
RadioType
extends
BasicQuestionType
{
content
:
{
content
:
{
hasOther
:
boolean
;
hasOther
:
boolean
;
choices
:
any
;
choices
:
any
[]
;
otherText
:
string
;
otherText
:
string
;
};
};
}
}
...
@@ -41,7 +41,7 @@ let RadioQ: RadioType = {
...
@@ -41,7 +41,7 @@ let RadioQ: RadioType = {
export
interface
CheckboxType
extends
BasicQuestionType
{
export
interface
CheckboxType
extends
BasicQuestionType
{
content
:
{
content
:
{
choices
:
any
;
choices
:
any
[]
;
maxCount
:
number
;
maxCount
:
number
;
};
};
}
}
...
...
Write
Preview
Markdown
is supported
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