Create views
This commit is contained in:
parent
e24e471563
commit
8384da6aff
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="layout" content="main" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="create-student" class="content scaffold-create" role="main">
|
||||
<g:form resource="${this.student}" method="POST">
|
||||
<fieldset class="form">
|
||||
<f:all bean="student"/>
|
||||
</fieldset>
|
||||
<fieldset class="buttons">
|
||||
<g:submitButton name="create" class="save" value="Create" />
|
||||
</fieldset>
|
||||
</g:form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="layout" content="main" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="nav" role="navigation">
|
||||
<ul>
|
||||
<li><g:link class="create" action="create">Create</g:link></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="list-student" class="content scaffold-list" role="main">
|
||||
<f:table collection="${studentList}" properties="['firstName', 'lastName']" />
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="layout" content="main" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="nav" role="navigation">
|
||||
<ul>
|
||||
<li><g:link class="list" action="index">Students list</g:link></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="show-student" class="content scaffold-show" role="main">
|
||||
<f:display bean="student" />
|
||||
<g:form resource="${this.student}" method="DELETE">
|
||||
<fieldset class="buttons">
|
||||
<input class="delete" type="submit" value="delete" />
|
||||
</fieldset>
|
||||
</g:form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue