示例#1
0
<?php

$form = \app\core\ActiveForm::begin(array('options' => array('class' => 'form-horizontal', 'id' => 'form_modal'), 'fieldConfig' => array('inputOptions' => array('class' => 'input-xlarge'))));
?>
<div id="modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header alert alert-error">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="margin-right: 20px;">×</button>
   
	   <h3 id="myModalLabel"></h3> 
	 
  </div>
  <div class="modal-body ">
    
  </div>
  <div class="modal-footer">
    	<?php 
echo \app\core\Html::button(__('run'), null, null, array('class' => 'btn btn-primary'));
?>
  </div>
</div>

<?php 
\app\core\ActiveForm::end();
示例#2
0
 /**
  * Render the filter value
  */
 public function renderValue()
 {
     if (!$this->value) {
         return '';
     }
     if ($this->options instanceof \Illuminate\Support\Collection) {
         $this->options = $this->options->toArray();
         $this->value = array_only($this->options, $this->value);
     }
     $value = is_array($this->value) ? implode(', ', $this->value) : $this->value;
     return \Html::filterValue($this->label, $value);
 }