gpt4 book ai didi

jquery - 获取Grails 3.1.2的默认导航菜单以覆盖所有类

转载 作者:行者123 更新时间:2023-12-02 15:53:21 25 4
gpt4 key购买 nike

The Nav Bar of Grails

保持原样,但是当您移至其他页面(如localhost / user)时,它消失了,仅显示在grails主页索引中。知道如何让它保持原样吗?

<!doctype html>
<html>
<head>
<meta name="layout" content="main"/>
<title>Inventory System</title>

<asset:link rel="icon" href="favicon.ico" type="image/x-ico" />
</head>
<body>
<content tag="nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Users <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><g:link class="user" controller="user" action="create">Create</g:link></li>
<li><g:link class="user" controller="user" action="index">Users List</g:link></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Expenses <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><g:link class="expenses" controller="expenses" action="create">Create Expenses</g:link></li>
<li><g:link class="expenses" controller="expenses" action="index">Expenses List</g:link></li>
<li><g:link class="type" controller="type" action="create">Create Types</g:link></li>
<li><g:link class="type" controller="type" action="index">Types List</g:link></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Clients <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><g:link class="client" controller="client" action="create">Create</g:link></li>
<li><g:link class="client" controller="client" action="index">Clients List</g:link></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Assets <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><g:link class="supply" controller="supply" action="create">Create Supplies</g:link></li>
<li><g:link class="supply" controller="supply" action="index">Supplies List</g:link></li>
<li><g:link class="supply" controller="supply" action="create">Create Item</g:link></li>
<li><g:link class="supply" controller="supply" action="create">Asset Item List</g:link></li>
</ul>
</li>

</content>

<div class="svg" role="presentation">
<div class="grails-logo-container">
<asset:image src="grails-cupsonly-logo-white.svg" class="grails-logo"/>
</div>
</div>

<div id="content" role="main">
<section class="row colset-2-its">
<h1>Inventory System</h1>

<ul>
Welcome to the Inventory System created for the final requirement of ITWB303 Advanced Web Programming class.
Presented to Engineer Jomin Yu, the professor of the class.
</ul>
<ul>
Created by the group of Krizia Genica Simon and Harold Jesse Co.
</ul>
</section>
</div>

</body>
</html>

最佳答案

您可以使用菜单将div(在本例中为整个<content tag="nav">)移动到分开的模板,并将此模板包括在布局中。

比您可以在需要此菜单的 View 中设置指定的布局。

关于jquery - 获取Grails 3.1.2的默认导航菜单以覆盖所有类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35867213/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com