.modal-header
  %button.close(type="button" data-dismiss="modal" aria-hidden="true") &times;
  %h3 Inserisci un codice Kemler
.modal-body
  %p Cerca un codice ADR / ONU tra quelli disponibili.
  %form.form-horizontal
    .control-group
      %label.control-label(for="adr_code") Codice ADR
      .controls
        != CHtml::dropDownList(                                              |
          'adr_code',                                                        |
          '',                                                                |
          CHtml::listData(array_merge(array(''),$adrCodes), 'code', 'code'), |
          array(                                                             |
            'class' => 'span3 chzn-select',                                  |
            'data-placeholder' => 'Cerca un codice...',                      |
            'data-description-target' => "#adr-code-description",            |
            'data-url' => Yii::app()->baseUrl."/kemler/adrDescription",                 |
            )                                                                |
        )                                                                    |
        %p#adr-code-description.text-error

    .control-group
      %label.control-label(for="onu_code") Codice ONU
      .controls
        != CHtml::dropDownList(                                              |
          'onu_code',                                                        |
          '',                                                                |
          CHtml::listData(array_merge(array(''),$onuCodes), 'code', 'code'), |
          array(                                                             |
            'class' => 'span3 chzn-select',                                  |
            'data-placeholder' => 'Cerca un codice...',                      |
            'data-description-target' => "#onu-code-description",            |
            'data-url' => Yii::app()->baseUrl."/kemler/onuDescription"                  |
          )                                                                  |
        )                                                                    |
        %p#onu-code-description.text-error

.modal-footer
  %a.btn(href="#" data-dismiss="modal") Chiudi
  %a.btn.btn-primary#kemler-set(href="#" data-dismiss="modal") Imposta
