lms/public/build/assets/short-answer-form-Ct6uyXHG.js
2025-12-15 12:26:23 +01:00

2 lines
1.3 KiB
JavaScript

import{j as e}from"./vendor-BKmmeuxg.js";import{I as a}from"./input-error-LaPr_4wd.js";import{L as t}from"./label-HmIcv5Yx.js";import{T as l}from"./textarea-CyndvowL.js";import"./utils-DxSsnXxD.js";import"./index-WW_1X1qx.js";const h=({data:s,setData:n,errors:i})=>{var r;return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(t,{children:"Instructions"}),e.jsxs("div",{className:"rounded-md bg-blue-50 p-3 text-sm text-blue-900",children:[e.jsx("p",{className:"mb-1 font-medium",children:"About short answer questions:"}),e.jsx("p",{children:"• Students will type their answer in a text box"}),e.jsx("p",{children:"• These questions require manual grading by the instructor"}),e.jsx("p",{children:"• You can optionally provide a sample answer or grading rubric below"})]})]}),e.jsxs("div",{children:[e.jsx(t,{children:"Guidelines (Optional)"}),e.jsx(l,{placeholder:"Enter a sample answer or guidelines for grading this question...",rows:5,value:((r=s.options)==null?void 0:r.sample_answer)||"",onChange:o=>n("options",{...s.options,sample_answer:o.target.value})}),e.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"This will help you or other graders evaluate student responses consistently"}),e.jsx(a,{message:i.options})]})]})};export{h as default};