- allowed decimals in scores;
This commit is contained in:
@@ -1212,8 +1212,9 @@ const DomandaEditInstructorManager = () => {
|
|||||||
<InputNumber
|
<InputNumber
|
||||||
disabled={shouldDisableField('criteria') || evaluationBlockedForUser(data)}
|
disabled={shouldDisableField('criteria') || evaluationBlockedForUser(data)}
|
||||||
placeholder={__('Punteggio', 'gepafin')}
|
placeholder={__('Punteggio', 'gepafin')}
|
||||||
keyfilter="int"
|
|
||||||
value={o.score}
|
value={o.score}
|
||||||
|
minFractionDigits={0}
|
||||||
|
maxFractionDigits={2}
|
||||||
max={o.maxScore}
|
max={o.maxScore}
|
||||||
onChange={(e) => updateEvaluationValue(
|
onChange={(e) => updateEvaluationValue(
|
||||||
e.value,
|
e.value,
|
||||||
@@ -1253,7 +1254,9 @@ const DomandaEditInstructorManager = () => {
|
|||||||
</tr>)}
|
</tr>)}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{__('Punteggio:', 'gepafin')}</td>
|
<td>{__('Punteggio:', 'gepafin')}</td>
|
||||||
<td>{sum(data.criteria.map(o => o.score))}</td>
|
<td>{new Intl.NumberFormat("it-IT").format(
|
||||||
|
sum(data.criteria.map(o => o.score))
|
||||||
|
)}</td>
|
||||||
<td>
|
<td>
|
||||||
{isAdmissible
|
{isAdmissible
|
||||||
? <Tag icon="pi pi-check" severity="success"
|
? <Tag icon="pi pi-check" severity="success"
|
||||||
|
|||||||
@@ -1214,8 +1214,9 @@ const DomandaEditPreInstructor = () => {
|
|||||||
<InputNumber
|
<InputNumber
|
||||||
disabled={shouldDisableField('criteria') || evaluationBlockedForUser(data)}
|
disabled={shouldDisableField('criteria') || evaluationBlockedForUser(data)}
|
||||||
placeholder={__('Punteggio', 'gepafin')}
|
placeholder={__('Punteggio', 'gepafin')}
|
||||||
keyfilter="int"
|
|
||||||
value={o.score}
|
value={o.score}
|
||||||
|
minFractionDigits={0}
|
||||||
|
maxFractionDigits={2}
|
||||||
max={o.maxScore}
|
max={o.maxScore}
|
||||||
onChange={(e) => updateEvaluationValue(
|
onChange={(e) => updateEvaluationValue(
|
||||||
e.value,
|
e.value,
|
||||||
@@ -1255,7 +1256,9 @@ const DomandaEditPreInstructor = () => {
|
|||||||
</tr>)}
|
</tr>)}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{__('Punteggio:', 'gepafin')}</td>
|
<td>{__('Punteggio:', 'gepafin')}</td>
|
||||||
<td>{sum(data.criteria.map(o => o.score))}</td>
|
<td>{new Intl.NumberFormat("it-IT").format(
|
||||||
|
sum(data.criteria.map(o => o.score))
|
||||||
|
)}</td>
|
||||||
<td>
|
<td>
|
||||||
{isAdmissible
|
{isAdmissible
|
||||||
? <Tag icon="pi pi-check" severity="success"
|
? <Tag icon="pi pi-check" severity="success"
|
||||||
|
|||||||
Reference in New Issue
Block a user