Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 10561 | Rev 10569 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 10561 Rev 10567
Línea 181... Línea 181...
181
									</div>
181
									</div>
182
									<div className="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">
182
									<div className="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">
183
										{
183
										{
184
											competencies.length
184
											competencies.length
185
                                            &&
185
                                            &&
186
                                            competencies.map((competency, competency_index) => (
186
                                            competencies.map((competency) => (
187
                                            	<div className="card" key={competency.competency_uuid}>
187
                                            	<div className="card" key={competency.competency_uuid}>
188
                                            		<div className="card-header">
188
                                            		<div className="card-header">
189
                                            			<h5>{competency.competency_name} - {competency.competency_type_name}</h5>
189
                                            			<h5>{competency.competency_name} - {competency.competency_type_name}</h5>
190
                                            		</div>
190
                                            		</div>
191
                                            		<div className="card-body">
191
                                            		<div className="card-body">
192
                                            			{
192
                                            			{
193
                                            				competency.behaviors
193
                                            				competency.behaviors
194
                                                            &&
194
                                                            &&
195
                                                            competency.behaviors.map((behavior, index) => (
195
                                                            competency.behaviors.map((behavior) => (
196
                                                            	<table key={behavior.uuid}>
196
                                                            	<table key={behavior.uuid} className="table table-hover">
197
                                                            		<thead>
197
                                                            		<thead>
198
                                                            			<tr>
198
                                                            			<tr>
199
                                                            				<th style={{ width: '20%' }}>Conducta Observable</th>
199
                                                            				<th style={{ width: '20%' }}>Conducta Observable</th>
200
                                                            				<th style={{ width: '60%' }}>Comentario</th>
200
                                                            				<th style={{ width: '60%' }}>Comentario</th>
201
                                                            				<th style={{ width: '20%' }}>Evaluación</th>
201
                                                            				<th style={{ width: '20%' }}>Evaluación</th>
Línea 204... Línea 204...
204
                                                            		<tbody>
204
                                                            		<tbody>
205
                                                            			<tr>
205
                                                            			<tr>
206
                                                            				<td style={{ width: '20%' }}>{behavior.description}</td>
206
                                                            				<td style={{ width: '20%' }}>{behavior.description}</td>
207
                                                            				<td style={{ width: '60%' }}>
207
                                                            				<td style={{ width: '60%' }}>
208
                                                            					<textarea
208
                                                            					<textarea
209
                                                            						name="behavior-comment"
209
                                                            						name={`${behavior.competency_uuid}_${behavior.uuid}-name`}
210
                                                            						cols="30"
210
                                                            						cols="30"
211
                                                            						rows="3"
211
                                                            						rows="3"
-
 
212
                                                            						ref={register}
212
                                                            						onChange={(e) => setCompetencies(prev => [...prev, prev[competency_index].behaviors[index].name = e.target.value])}
213
                                                            						className='form-control w100'
213
                                                            					/>
214
                                                            					/>
214
                                                            				</td>
215
                                                            				</td>
215
                                                            				<td style={{ width: '20%' }}>
216
                                                            				<td style={{ width: '20%' }}>
216
                                                            					<select className='form-control' name='behavior-points' >
217
                                                            					<select className='form-control' name={`${behavior.competency_uuid}_${behavior.uuid}-points`} ref={register}>
217
                                                            						{
218
                                                            						{
218
                                                            							pointsOptions.map(({ label, value }) => (
219
                                                            							pointsOptions.map(({ label, value }) => (
219
                                                            								<option selected={behavior.points === value} key={value} value={value}>{label}</option>
220
                                                            								<option selected={behavior.points === value} key={value} value={value}>{label}</option>
220
                                                            							))
221
                                                            							))
221
                                                            						}
222
                                                            						}