webui: Set 'SOA serial' field as read-only

On the WebUI, the SOA serial textbox must be disabled (non-editable)
to prevent the 'ValidationError' message to be shown when this
specific field is manually set.

Fixes: https://pagure.io/freeipa/issue/9249
Signed-off-by: Carla Martinez <carlmart@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
This commit is contained in:
Carla Martinez 2022-09-19 15:17:39 +02:00
parent b326b4afae
commit a3b4b476b9

View File

@ -158,7 +158,10 @@ return {
required: true
},
'idnssoarname',
'idnssoaserial',
{
name: 'idnssoaserial',
read_only: true
},
{
name: 'idnssoarefresh',
measurement_unit: 'seconds'