.tableContainer.pagination-data-container.gate-behavior-table.span6
  %table.table.table-condensed
    %thead
      %tr
      %tr
        %th= t('Behavior')
        %th= t('Validate')
        %th= t('Alert')
        %th= t('Ignore')
        %th
          %span.icon-arrow-right
          = t('Traces')
        %th
          %span.icon-arrow-right
          = t('Events')
        %th
          %span.icon-arrow-right
          = t ( 'Empty plates' )
        %th= t ( 'Whitelist gate' ) 
    %tbody
      - foreach($gate->gateBehavior as $gB)
        -$model = $gB
        -if (! user ()->checkAccess ( "gate_behavior_update" ) && ! user ()->checkAccess ( "gate_behavior_switch" ) )
          %tr
            %td
              = t($gB->behavior->name)
            %td
              - if($gB->validate)
                .icon-circle
              - else
                .icon-circle-blank
            %td
              - if($gB->generate_alarm >= 3)
                .icon-exclamation-sign.alarm.alarm-icon
              - else if($gB->generate_alarm >= 2)
                .icon-warning-sign.alarm.warning-icon
              - else if($gB->generate_alarm >= 1)
                .icon-info-sign.alarm.info-icon
              - else
                .icon-cirlce-empty
            %td
              - if($gB->to_ignore)
                .icon-circle
              - else
                .icon-circle-blank  
            %td
              - if($gB->transfer_from_vt)
                .icon-circle
              - else
                .icon-circle-blank 
            %td
              - if($gB->transfer_from_event)
                .icon-circle
              - else
                .icon-circle-blank
            %td
              - if($gB->transfer_empty_plates)
                .icon-circle
              - else
                .icon-circle-blank
            %td
              - if($gB->is_whitelist)
                .icon-circle
              - else
                .icon-circle-blank
        -else
          %tr
            %td
              = t($gB->behavior->name)
            %td
              !=SystemInfoHelper::getFullSwitchButtonLabel("gateBehavior", "switchValidate", $model->ID, $model->validate, "Yes","No","green","red",app()->controller->getAbsoluteUrl(),"icon-refresh")              
            %td
              !=SystemInfoHelper::trafficEventSelector($model->ID, $model->generate_alarm, "gateBehavior", "switchGenerateAlarm", "value", app()->controller->getAbsoluteUrl())
            %td
              !=SystemInfoHelper::getFullSwitchButtonLabel("gateBehavior", "switchToIgnore", $model->ID, $model->to_ignore, "Yes","No","green","red",app()->controller->getAbsoluteUrl(),"icon-refresh")
            %td
              !=SystemInfoHelper::getFullSwitchButtonLabel("gateBehavior", "switchTransVt", $model->ID, $model->transfer_from_vt, "Yes","No","green","red",app()->controller->getAbsoluteUrl(),"icon-refresh")
            %td
              !=SystemInfoHelper::getFullSwitchButtonLabel("gateBehavior", "switchtransEv", $model->ID, $model->transfer_from_event, "Yes","No","green","red",app()->controller->getAbsoluteUrl(),"icon-refresh")
            %td
              !=SystemInfoHelper::getFullSwitchButtonLabel("gateBehavior", "switchTransEp", $model->ID, $model->transfer_empty_plates, "Yes","No","green","red",app()->controller->getAbsoluteUrl(),"icon-refresh")
            %td
              !=SystemInfoHelper::getFullSwitchButtonLabel("gateBehavior", "switchIsWhitelist", $model->ID, $model->is_whitelist, "Yes","No","green","red",app()->controller->getAbsoluteUrl(),"icon-refresh")
              