Skip to content

Commit

Permalink
Update route_page_edit.html
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub authored Nov 9, 2023
1 parent c842bd0 commit 25ec313
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions template/backend/official/manager/frontend/route_page_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h3>{{$.Stored.title}}</h3>
<div class="help-block">{{`JSON格式,如果留空则不会解析页面内容中的模板标签`|$.T}}</div>
</div>
</div>
<div class="hide-pageType-redirect form-group">
<div class="pageType-hide-redirect form-group">
<label class="col-sm-2 control-label">{{"使用模板"|$.T}}</label>
<div class="col-sm-3">
{{$v := $.Form "templateEnabled"}}
Expand Down Expand Up @@ -94,7 +94,7 @@ <h3>{{$.Stored.title}}</h3>
<div class="col-sm-3">
{{$v := $.Form "disabled"}}
<div class="radio radio-primary radio-inline">
<input type="radio" value="N" id="disabled-N" name="disabled"{{if or (eq $v `N`) (eq $v ``)}} checked{{end}}><label for="disabled-N">{{"启用"|$.T}}</label>
<input type="radio" value="N" id="disabled-N" name="disabled"{{if eq $v `N` ``}} checked{{end}}><label for="disabled-N">{{"启用"|$.T}}</label>
</div>
<div class="radio radio-danger radio-inline">
<input type="radio" value="Y" id="disabled-Y" name="disabled"{{if eq $v `Y`}} checked{{end}}><label for="disabled-Y">{{"禁用"|$.T}}</label>
Expand All @@ -120,11 +120,11 @@ <h3>{{$.Stored.title}}</h3>
$(function(){
$('#routePageEditForm input[name=pageType]').on('click',function(){
var v=$(this).val(),$form=$('#routePageEditForm');
$form.find('.hide-pageType-'+v).hide();
$form.find('.show-pageType-'+v).show();
$form.find('[class^="hide-pageType"]:not(.hide-pageType-'+v+')').show();
$form.find('.pageType-hide-'+v).hide();
$form.find('.pageType-show-'+v).show();
$form.find('[class^="pageType-hide"]:not(.pageType-hide-'+v+')').show();
});
$('#routePageEditForm input[name=pageType]:checked').trigger('click');
});
</script>
{{/Block}}
{{/Block}}

0 comments on commit 25ec313

Please sign in to comment.