{* 云服务器线路通用表单 *}
{form_toggle('post[kvm_type]',$kvmtype_option,element('kvm_type',$row,'kvm'))}
{if element('kvm_type',$row)|in_array:['kvm','lxc']} {form_input('', 'Proxmox '|cat:element(element('kvm_type',$row),$kvmtype_option,''), 'class="form-control input-small" disabled')} {else} {form_input('', element(element('kvm_type',$row),$kvmtype_option,''), 'class="form-control input-small" disabled')} {/if}
{form_input('specs_post[name]', element('specs_name',$row,''), 'class="form-control input-small allow_update" data-required="true"')}
{form_input('specs_post[desc]', element('specs_desc',$row,''), 'class="form-control input-small allow_update"')}
{form_dropdown('specs_post[assign_rule]', $assign_rule_option, element('specs_assign_rule',$row,'0'), 'class="form-control input-small"')}
{_('按内存、硬盘剩余多优先时,请配置所有节点的内存、硬盘总大小')}
{if !'local_ip'|in_array:$module_disable}
{form_dropdown('specs_post[ip_rule]', $ip_rule_option, element('specs_ip_rule',$row,'0'), 'class="form-control input-small"')}
{/if} {if !element('api_server_id',$row)}
{form_dropdown($cluster_option,'','','multiple class="multi-select"')}
{_('不选择表示绑定所有集群')}
{/if} {if has_addons('firewall')}
{form_toggle(['name'=>'specs_post[white_list_status]','type'=>'status'],['0'=>_('否'),'1'=>_('是')],element('specs_white_list_status',$row,'1'))}
{_('如该可用区需要防火墙白名单,则需要开启强制提交防火墙,如关闭,用户中心无法选择该可用区提交白名单')}
{/if}