[할인코드확장 PR4] Admin 폼 UI — 라디오 4개 + 조건부 체크박스

ID: 6bc0fbbd-e0e4-4336-bea8-dde6aa3c64b1

보통 완료

## 목표
Admin 할인코드 관리 폼에서 apply_scope 4가지를 선택하고, specific 시 상품/교육과정을 체크박스로 선택

## 변경 사항

### Admin::DiscountCodesController
- new/edit/create/update에서 Expert::Course, Study::Course 목록 전달
- discount_code_params에 apply_scope, discount_code_item 관련 파라미터 추가
- show에서 apply_scope별 적용 대상 표시

### _form.html.erb
- applies_to_all 체크박스 → apply_scope 라디오 4개 (전체/리포트/교육/특정선택)
- specific 선택 시 3개 섹션: Products, Expert::Course, Study::Course
- Stimulus toggle 컨트롤러 활용

### i18n
- config/locales/ko.yml: admin.discount_codes.form 키 추가

## 완료 기준
- [ ] 라디오 4개 정상 렌더링
- [ ] specific 선택 시 체크박스 노출
- [ ] 생성/수정 시 apply_scope + items 저장 정상
- [ ] show 페이지에서 적용 범위 표시

## 의존성: PR #1 완료 필수

## 관련 파일
- app/controllers/admin/discount_codes_controller.rb
- app/views/admin/discount_codes/_form.html.erb
- app/views/admin/discount_codes/show.html.erb
- config/locales/ko.yml

첨부 이미지

이미지 추가 (Ctrl+V로 붙여넣기 또는 클릭)

JPEG, PNG, GIF, WebP / 최대 10MB

담당자: 미배정
생성일: 2026년 04월 15일 08:04

활동 로그

  • 팀리드 상태 변경: 리뷰 → 완료

    2026년 04월 15일 08:37:49

  • 팀리드 상태 변경: 백로그 → 리뷰

    2026년 04월 15일 08:23:25

  • 팀리드 상태 변경: 할 일 → 백로그

    2026년 04월 15일 08:04:41