三江源可视化管理界面添加新字段
This commit is contained in:
parent
e00911af13
commit
ff56d0760b
|
@ -28,6 +28,37 @@
|
|||
<input type="text" id="inputUUID" placeholder="UUID" value="<?= $this->data['uuid'] ?>" class="input-block-level" name="uuid">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">状态</label>
|
||||
<div class="controls">
|
||||
<label class="radio inline">
|
||||
<?php $checked = function(){
|
||||
if(isset($this->data['status']))
|
||||
{
|
||||
if($this->data['status'] == 1)
|
||||
{
|
||||
return 'checked="checked"';
|
||||
}
|
||||
}else{
|
||||
return 'checked="checked"';
|
||||
}
|
||||
}; ?>
|
||||
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" <?= $checked() ?>>
|
||||
启用
|
||||
</label>
|
||||
<label class="radio inline">
|
||||
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2"
|
||||
<?= isset($this->data['status']) && $this->data['status'] == 0 ? 'checked="checked"':"" ?>>
|
||||
禁用
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputData">数据读取SQL或表名</label>
|
||||
<div class="controls">
|
||||
<textarea name="data" rows="4" class="input-block-level" id="inputData"><?= !isset($this->data['data']) ? "":$this->data['data']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(empty($this->info['vars'])) { ?>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputVariable">可视化要素</label>
|
||||
|
|
Loading…
Reference in New Issue