<label <?php echo MtHaml\Runtime::renderAttributes(array(array('class', ('span3' . ' ' . 'sty_display_inline')), array('for', ('field_' . ($field->name))), array('title', (t($field->description)))), 'html5', 'UTF-8'); ?>>
  <?php echo htmlspecialchars(t($field->label),ENT_QUOTES,'UTF-8'); ?>
  <?php if($field->required) { ?>
    <div class="sty_display_inline color-red"><?php echo htmlspecialchars('*',ENT_QUOTES,'UTF-8'); ?></div>
  <?php } ?>
</label>
<?php if($field->editable) { ?>
  <?php echo $form->dropDownList($model, $field->name, $field->valuesArray, array('class'=>'span3 chzn-select',"id"=>"field_{$field->name}","data-placeholder"=>t('Select an option...'))); ?>
<?php } else { ?>
  <?php echo CHtml::textField($field->name."_label", $field->valuesArray[$model->{$field->name}], array('class'=>'span3',"id"=>"field_{$field->name}", "readonly"=>"readonly")); ?>
  <?php echo $form->hiddenField($model, $field->name); ?>
<?php } ?>
