|
@@ -117,7 +117,7 @@ class ONUAdmin extends WorkflowBaseAdmin
|
|
{
|
|
{
|
|
$subject = $this->getSubject();
|
|
$subject = $this->getSubject();
|
|
$id = $subject->getId();
|
|
$id = $subject->getId();
|
|
- $disabled = is_null($id) ? false : 'disabled';
|
|
|
|
|
|
+ $readonly = is_null($id) ? false : 'readonly';
|
|
$flashbag = $this->get('session')->getFlashBag();
|
|
$flashbag = $this->get('session')->getFlashBag();
|
|
if ($id) {
|
|
if ($id) {
|
|
$flashbag->add('warning', $this->trans('warning.disabled.fields'));
|
|
$flashbag->add('warning', $this->trans('warning.disabled.fields'));
|
|
@@ -192,7 +192,7 @@ class ONUAdmin extends WorkflowBaseAdmin
|
|
->add('ponSerialNumber', null, array(
|
|
->add('ponSerialNumber', null, array(
|
|
'attr' => array(
|
|
'attr' => array(
|
|
'style' => 'text-transform: uppercase;',
|
|
'style' => 'text-transform: uppercase;',
|
|
- 'disabled' => $disabled,
|
|
|
|
|
|
+ 'readonly' => $readonly,
|
|
)));
|
|
)));
|
|
if ($this->hasParameter('show.onu.activationCode') && $this->getParameter('show.onu.activationCode') == true) {
|
|
if ($this->hasParameter('show.onu.activationCode') && $this->getParameter('show.onu.activationCode') == true) {
|
|
$formMapper->add('activationCode');
|
|
$formMapper->add('activationCode');
|
|
@@ -218,12 +218,12 @@ class ONUAdmin extends WorkflowBaseAdmin
|
|
}
|
|
}
|
|
},
|
|
},
|
|
'attr' => [
|
|
'attr' => [
|
|
- 'disabled' => $disabled,
|
|
|
|
|
|
+ 'readonly' => $readonly,
|
|
],
|
|
],
|
|
))
|
|
))
|
|
->add('model', null, [
|
|
->add('model', null, [
|
|
'attr' => [
|
|
'attr' => [
|
|
- 'disabled' => $disabled,
|
|
|
|
|
|
+ 'readonly' => $readonly,
|
|
],
|
|
],
|
|
])
|
|
])
|
|
->add('comments')
|
|
->add('comments')
|
|
@@ -247,13 +247,13 @@ class ONUAdmin extends WorkflowBaseAdmin
|
|
)))
|
|
)))
|
|
->add('position', null, [
|
|
->add('position', null, [
|
|
'attr' => [
|
|
'attr' => [
|
|
- 'disabled' => $disabled,
|
|
|
|
|
|
+ 'readonly' => $readonly,
|
|
],
|
|
],
|
|
])
|
|
])
|
|
->add('ip')
|
|
->add('ip')
|
|
->add('mac', null, [
|
|
->add('mac', null, [
|
|
'attr' => [
|
|
'attr' => [
|
|
- 'disabled' => $disabled,
|
|
|
|
|
|
+ 'readonly' => $readonly,
|
|
],
|
|
],
|
|
])
|
|
])
|
|
->add('radiusAuth', 'choice', [
|
|
->add('radiusAuth', 'choice', [
|
|
@@ -262,7 +262,7 @@ class ONUAdmin extends WorkflowBaseAdmin
|
|
'MAC Address' => 'mac'
|
|
'MAC Address' => 'mac'
|
|
],
|
|
],
|
|
'attr' => [
|
|
'attr' => [
|
|
- 'disabled' => $disabled,
|
|
|
|
|
|
+ 'readonly' => $readonly,
|
|
],
|
|
],
|
|
])
|
|
])
|
|
->end()
|
|
->end()
|
|
@@ -274,14 +274,14 @@ class ONUAdmin extends WorkflowBaseAdmin
|
|
'required' => false,
|
|
'required' => false,
|
|
'by_reference' => false,
|
|
'by_reference' => false,
|
|
'attr' => [
|
|
'attr' => [
|
|
- 'disabled' => $disabled,
|
|
|
|
|
|
+ 'readonly' => $readonly,
|
|
],
|
|
],
|
|
))
|
|
))
|
|
->end()
|
|
->end()
|
|
->with('ZTE', ['class' => "col-md-12 {$hidden['ZTE']} olt_mark ZTE"])
|
|
->with('ZTE', ['class' => "col-md-12 {$hidden['ZTE']} olt_mark ZTE"])
|
|
->add('vlan', null, [
|
|
->add('vlan', null, [
|
|
'attr' => [
|
|
'attr' => [
|
|
- 'disabled' => $disabled,
|
|
|
|
|
|
+ 'readonly' => $readonly,
|
|
],
|
|
],
|
|
])
|
|
])
|
|
->add('vlanProfile', null, $optionsZTEV4)
|
|
->add('vlanProfile', null, $optionsZTEV4)
|