{$layout "layout_popup"}

<h3>修改管理域名</h3>

<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
	<input type="hidden" name="domainId" :value="domain.id"/>
	<csrf-token></csrf-token>
	<table class="ui table definition selectable">
		<tr>
			<td class="title">域名 *</td>
			<td>
				<input type="text" name="name" maxlength="64" ref="focus" v-model="domain.name"/>
				<p class="comment">在DNS服务商中可以管理的域名。</p>
			</td>
		</tr>
		<tr>
			<td>域名类型</td>
			<td>
				<select class="ui dropdown auto-width" name="type" v-model="domain.type">
					<option value="cluster">节点域名</option>
					<option value="service">服务域名</option>
				</select>
			</td>
		</tr>
		<tr>
			<td colspan="2"><more-options-indicator></more-options-indicator></td>
		</tr>
		<tbody v-show="moreOptionsVisible">
			<tr>
				<td>是否启用</td>
				<td>
					<div class="ui checkbox">
						<input type="checkbox" name="isOn" value="1" v-model="domain.isOn"/>
						<label></label>
					</div>
				</td>
			</tr>
		</tbody>
	</table>

	<submit-btn></submit-btn>
</form>