Skip to content

Commit

Permalink
feat: add planner
Browse files Browse the repository at this point in the history
  • Loading branch information
JeukHwang committed Aug 21, 2023
1 parent c80ea54 commit 0100c88
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backend/src/api/apply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const newApply = async (ctx: any): Promise<void> => {
phone: joi.string().required(),
applyType: joi
.string()
.valid('developer', 'designer')
.valid('developer', 'designer', 'planner')
.required(),

introduction: joi.string(),
Expand Down Expand Up @@ -170,7 +170,7 @@ const editApply = async (ctx: any): Promise<void> => {
phone: joi.string().required(),
applyType: joi
.string()
.valid('developer', 'designer')
.valid('developer', 'designer', 'planner')
.required(),

introduction: joi.string(),
Expand Down
2 changes: 1 addition & 1 deletion backend/src/db/models/ApplyForm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface IApplyFormDocument extends mongoose.Document {
stdNo: number;
dept: string;
phone: string;
applyType: 'developer' | 'designer';
applyType: 'developer' | 'designer' | 'planner';

introduction: string;
workToDo: string;
Expand Down
11 changes: 10 additions & 1 deletion frontend/pages/apply.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@
/>
디자이너
</label>
<label class="radio" :disabled="overdue">
<input
type="radio"
name="applyType"
value="planner"
:disabled="overdue"
/>
기획자
</label>
</div>
</div>

Expand Down Expand Up @@ -179,7 +188,7 @@

<div class="form-item">
<p class="form-desc">
개발 및 디자인과 관련된 경험이나 관심을 갖게 된 계기가 있다면
개발, 디자인, 기획 또는 행사 진행과 관련된 경험이나 관심을 갖게 된 계기가 있다면
자유롭게 작성해주세요.
</p>
<div class="control">
Expand Down

0 comments on commit 0100c88

Please sign in to comment.