Files
EdgeAdmin/web/views/@default/servers/server/settings/pages/updatePopup.html

44 lines
1.8 KiB
HTML
Raw Normal View History

2020-09-20 08:58:48 +08:00
{$layout "layout_popup"}
<h3>修改特殊页面</h3>
2020-11-10 12:47:24 +08:00
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
2020-09-20 08:58:48 +08:00
<input type="hidden" name="pageId" :value="pageConfig.id"/>
<table class="ui table selectable definition">
<tr>
<td class="title">响应状态码 *</td>
<td>
<input type="text" name="status" size="3" placeholder="状态码" maxlength="3" style="width:5.2em" ref="focus" v-model="pageConfig.status"/>
<p class="comment">比如404或者50x。</p>
</td>
</tr>
2021-10-10 10:35:14 +08:00
<tr>
<td>内容类型 *</td>
<td>
<select class="ui dropdown auto-width" name="bodyType" v-model="bodyType">
<option v-for="bodyType in bodyTypes" :value="bodyType.code">{{bodyType.name}}</option>
</select>
</td>
</tr>
<tr v-show="bodyType == 'url'">
2020-09-20 08:58:48 +08:00
<td>URL *</td>
<td>
<input type="text" name="url" maxlength="500" placeholder="页面文件路径或者完整的URL" v-model="pageConfig.url"/>
<p class="comment">页面文件是相对于节点安装目录的页面文件比如web/pages/40x.html或者一个完整的URL。</p>
</td>
</tr>
2021-10-10 10:35:14 +08:00
<tr v-show="bodyType == 'html'">
<td>HTML *</td>
<td>
<textarea name="body" ref="htmlBody" v-model="pageConfig.body"></textarea>
<p class="comment"><a href="" @click.prevent="addHTMLTemplate">[使用模板]</a>。填写页面的HTML内容支持请求变量。</p>
</td>
</tr>
2020-09-20 08:58:48 +08:00
<tr>
<td>新状态码</td>
<td>
<input type="text" name="newStatus" size="3" placeholder="状态码" maxlength="3" style="width:5.2em" v-model="newStatus"/>
<p class="comment">可以用来修改响应的状态码,不填表示不改变原有状态码。</p>
</td>
</tr>
</table>
<submit-btn></submit-btn>
</form>