Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 1897 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1897 Rev 1898
Línea 140... Línea 140...
140
      title={`${isEdit ? labels.edit : labels.add} ${labels.question}`}
140
      title={`${isEdit ? labels.edit : labels.add} ${labels.question}`}
141
      show={show}
141
      show={show}
142
      onClose={onClose}
142
      onClose={onClose}
143
      onAccept={onSubmit}
143
      onAccept={onSubmit}
144
    >
144
    >
145
      <Box mt={2}>
-
 
146
        <TagsInput
-
 
147
          suggestions={questionsCategories}
-
 
148
          settedTags={currentCategories}
-
 
149
          onChange={onTagsChange}
-
 
150
        />
-
 
151
        {errors.category_id && (
-
 
152
          <FormErrorFeedback>{errors.category_id?.message}</FormErrorFeedback>
-
 
153
        )}
-
 
154
      </Box>
-
 
155
 
-
 
156
      <Form.Group>
145
      <Form.Group>
157
        <Form.Label>{labels.title}</Form.Label>
146
        <Form.Label>{labels.title}</Form.Label>
158
        <Form.Control
147
        <Form.Control
159
          type='text'
148
          type='text'
160
          name='title'
149
          name='title'
Línea 164... Línea 153...
164
        {errors.title && (
153
        {errors.title && (
165
          <FormErrorFeedback>{labels.error_field_empty}</FormErrorFeedback>
154
          <FormErrorFeedback>{labels.error_field_empty}</FormErrorFeedback>
166
        )}
155
        )}
167
      </Form.Group>
156
      </Form.Group>
Línea -... Línea 157...
-
 
157
 
-
 
158
      <Box mt={2}>
-
 
159
        <label>Categorías</label>
-
 
160
        <TagsInput
-
 
161
          suggestions={questionsCategories}
-
 
162
          settedTags={currentCategories}
-
 
163
          onChange={onTagsChange}
-
 
164
        />
-
 
165
        {errors.category_id && (
-
 
166
          <FormErrorFeedback>{errors.category_id?.message}</FormErrorFeedback>
-
 
167
        )}
-
 
168
      </Box>
168
 
169
 
169
      <CKEditor
170
      <CKEditor
170
        onChange={(e) => setValue('description', e.editor.getData())}
171
        onChange={(e) => setValue('description', e.editor.getData())}
171
        onInstanceReady={(e) => e.editor.setData(getValues('description'))}
172
        onInstanceReady={(e) => e.editor.setData(getValues('description'))}
172
        config={CKEDITOR_OPTIONS}
173
        config={CKEDITOR_OPTIONS}