{extends file='../layouts/index.html'} {block name=body} {_('基本配置')} {_('备注')} {form_open('','class="form-parsley form-horizontal" target="iframeNew" id="serverForm"')} {_('可用区名称')} {form_input('post[name]', element('name',$row,''), 'class="form-control input-small" data-required="true"')} {_('绑定地域')} {$html_tree_select} {_('简介')} {form_textarea(['name'=>'post[desc]','rows'=>2], element('desc',$row,''), 'class="form-control text-small"')} {if !element('api_id',$row)} {_('绑定资源池')} {form_dropdown($api_option,'','api_id'|element:$row:0,'class="form-control input-small" data-required="true"')} {_('节点ID')} {form_input('post[api_cluster_id]', element('api_cluster_id',$row,''), 'class="form-control input-small" data-required="true"')} {_('必须绑定魔方云资源池和节点')} {if ! 'id'|element:$row} {_('设置库存')} VM {form_input('post[stock]', element('stock',$row,'0'), 'class="form-control input-small"')} {/if} {_('存储类型')} {_('本地存储')} {_('云存储')} {_('远程配置')} {_('端口范围,不填将使用默认值')} Linux {_('起始')} {_('结束')} Windows {_('起始')} {_('结束')} VNC远程连接 {form_toggle(['name'=>'config[is_vnc]','type'=>'status','reverse'=>1],[1=>_('禁用'),0=>_('启用')],element('is_vnc',$row.config,0))} {/if} {htmlentities('content'|element:$row:'')} {form_hidden('submit',1)} {form_hidden('id',element('id',$row))} {form_hidden('post[vir_type]',element('vir_type',$row))} {_('重置')} {_('确认提交')} {form_close()} {/block}