<div class="panel panel-info panel-border top">
  <div class="panel-heading">
    <span class="panel-title">Edycja strony: <u><?= $this -> _site['name'];?></u></span>
  </div>
  <div class="panel-heading p5" style="height: auto;">
    <div class="row mb10 pl5">
      <div class="col col-xs-12">
        <?= \Html::button(
                    array(
                      'class' => 'btn btn-sm btn-success',
                      'text'  => 'Zatwierdź',
                      'js'    => 'checkForm( "formularz" );',
                      'icon'  => 'fa-check-circle mr5'
                    )
                );?>
        <?= \Html::button(
                    array(
                      'class' => 'btn btn-sm btn-danger',
                      'text'  => 'Anuluj',
                      'url'   => '/?p=ranker_sites',
                      'icon'  => 'fa-times mr5'
                    )
                );?>
      </div>
    </div>
  </div>
  <div class="panel-body">
    <form method='POST' action='./?p=ranker_sites' id="formularz" class="form-horizontal">
      <input type="hidden" name="rw" value="save" />
      <input type="hidden" name="id" value="<?= $this -> _site['id'];?>" />
      <div class="row">
        <div class="col col-md-6">
          <?= \Html::textarea(
                      array(
                        'name'  => 'comments',
                        'id'    => 'comment',
                        'value' => $this -> _site['comments'],
                        "label" => 'Komentarz'
                      )
                  );?>
        </div>
      </div>
    </form>
  </div>
</div>
<script type="text/javascript" src="/libraries/framework/vendor/plugins/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/libraries/framework/vendor/plugins/ckeditor/adapters/jquery.js"></script>
<script type="text/javascript">  
  $( document ).ready( function () 
  {
    $( 'textarea#comment' ).ckeditor( 
    {
      toolbar : 'Basic',
      language: 'pl',
      height:'100'
    });
  });
</script>