Sfoglia il codice sorgente

#36 show onu profile fields for all olt brands

drone 6 anni fa
parent
commit
58cd0d1219
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4 3
      src/FTTHBundle/Admin/ONUAdmin.php

+ 4 - 3
src/FTTHBundle/Admin/ONUAdmin.php

@@ -237,6 +237,7 @@ class ONUAdmin extends WorkflowBaseAdmin
                             'MAC Address' => 'mac'
                         ]
                     ])
+                    ->add('onuProfile')
                 ->end()
                 ->with('Huawei', ['class' => "col-md-12 {$hidden['Huawei']} olt_mark Huawei"])
                     ->add('servicePorts', CollectionType::class, array(
@@ -250,7 +251,6 @@ class ONUAdmin extends WorkflowBaseAdmin
                 ->with('ZTE', ['class' => "col-md-12 {$hidden['ZTE']} olt_mark ZTE"])
                     ->add('vlan')
                     ->add('vlanProfile', null, $optionsZTEV4)
-                    ->add('onuProfile', null, $optionsZTEV4)
                     ->add('trafficProfileIn')
                     ->add('trafficProfileOut')
                     ->add('tcontprofile')
@@ -463,7 +463,9 @@ class ONUAdmin extends WorkflowBaseAdmin
                     ->add('olt')
                     ->add('currentState')
                     ->add('position')
-                    ->add('ip');
+                    ->add('ip')
+                    ->add('onuProfile')
+                    ;
 
                     // Consulto en stats la url del detalle de onu
                     $onuShowUrl = $this->getStatsShowOnuUrl();
@@ -488,7 +490,6 @@ class ONUAdmin extends WorkflowBaseAdmin
                 ->with('ZTE', ['class' => "col-md-12 {$hidden['ZTE']} olt_mark ZTE"])
                     ->add('vlan')
                     ->add('vlanProfile', null, $optionsZTEV4)
-                    ->add('onuProfile', null, $optionsZTEV4)
                     ->add('trafficProfileIn')
                     ->add('trafficProfileOut')
                     ->add('tcontprofile')