Esempio n. 1
0
?>
    </div>
    <div class="one">

        <?php 
echo $form->field($model, 'db')->dropDownList($module->dbList(), ['id' => 'currentdb']);
?>
    </div><br/>
<div class="one right ui aligned">
<?php 
echo Elements::button('<i class="plug icon"></i>' . \insolita\redisman\Redisman::t('redisman', 'Connect'), ['class' => 'green circular right  aligned', 'type' => 'submit', 'tag' => 'button']);
?>
    </div>

<?php 
ActiveForm::end();
$js = new \yii\web\JsExpression('var url="' . \yii\helpers\Url::to(['/redisman/default/dbload']) . '";
var cur=$("#connectionform-connection").val();
   $("#currentcon").dropdown
   ({
      onChange: function(value, text, $selectedItem)
      {
          console.log(value + "|"+ cur);
          if(value && value!=cur)
          {
             cur=value;
             $.post
             (
                url,{"connection":value},
                 function( data )
                                    {
Esempio n. 2
0
?>
        </button>
    </div>
    <?php 
\Zelenin\yii\SemanticUI\widgets\ActiveForm::end();
?>
     </div>

<div class="ui bottom attached  tab segment"  data-tab="tabappend">
        <?php 
$form = \Zelenin\yii\SemanticUI\widgets\ActiveForm::begin(['action' => ['/redisman/item/append', 'key' => urlencode($model->key)]]);
?>

    <div class="one">
        <?php 
$model->formatvalue = '';
echo $form->field($model, 'formatvalue')->widget(\lav45\aceEditor\AceEditorWidget::className(), ['mode' => 'text', 'fontSize' => 15, 'height' => 200, 'options' => ['id' => 'appendfield']]);
?>
    </div>    <br/>

    <div class="one">
        <button class="ui blue icon button submit"><i class="save icon"></i><?php 
echo Redisman::t('redisman', 'Append');
?>
        </button>
    </div>
    <?php 
\Zelenin\yii\SemanticUI\widgets\ActiveForm::end();
?>

</div>
use Zelenin\yii\SemanticUI\collections\Breadcrumb;
use Zelenin\yii\SemanticUI\Elements;
use Zelenin\yii\SemanticUI\widgets\ActiveForm;
$this->title = Module::t('Update') . ': ' . $model->message;
echo Breadcrumb::widget(['links' => [['label' => Module::t('Translations'), 'url' => ['index']], ['label' => $this->title]]]);
?>
<div class="message-update">
    <div class="message-form">
        <?php 
echo Elements::header(Module::t('Source message'), ['class' => 'top attached']);
?>
        <?php 
echo Elements::segment(Html::encode($model->message), ['class' => 'bottom attached']);
?>
        <?php 
$form = ActiveForm::begin();
?>
        <div class="field">
            <div class="ui grid">
                <?php 
foreach ($model->messages as $language => $message) {
    ?>
                    <div class="four wide column">
                        <?php 
    echo $form->field($model->messages[$language], '[' . $language . ']translation')->label($language);
    ?>
                    </div>
                <?php 
}
?>
            </div>