更改视图的默认Html
本文关键字:默认 Html 视图 | 更新日期: 2023-09-27 18:08:03
如何更改html,使所有新添加的视图,如编辑,详细信息,列表视图有html,而不是默认的html。
。而不是默认的html(下面一个)
<h3>ListPage</h3>
<p>
@Html.ActionLink("Create New", "Create")
</p>
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.PO_PoolName)
</th>
<th>
@Html.DisplayNameFor(model => model.PO_Code)
</th>
</tr>
</table>
我希望以下html默认
<h3 class="page-header">ListPage</h3>
<div class="section-container section-with-top-border">
<!-- begin panel -->
<div class="panel pagination-inverse m-b-0 clearfix">
<div class="row">
<div class="col-lg-12">
<span class="pull-right ">
<a href="/Pools/Create" class="btn btn-lime btn-sm">
<i class="fa fa-fw fa-plus"></i>
Create New
</a>
</span>
</div>
</div>
<table id="data-table" data-order='[[1,"asc"]]' class="table table-bordered table-hover">
<thead>
<tr class="inverse">
<th>@Html.DisplayNameFor(model =>model.PO_PoolName)</th>
<th>@Html.DisplayNameFor(model => model.PO_Code)</th>
</tr>
</table>
Thanks in Advance
我找到解决办法了
我修改并更改了以下目录
中t4模板的htmlC:'Program Files (x86)'Microsoft Visual Studio 14.0'Common7'IDE'Extensions'Microsoft'Web'Mvc'Scaffolding'Templates'MvcView