Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

Commit

Permalink
[playframework#570] Docs: CRUD module commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hilton (Lunatech) committed Feb 7, 2011
1 parent 9de774d commit bef63fe
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions documentation/manual/crud.textile
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,24 @@ bc. public class CustomAdminCompany extends CRUD {

This is not the end; you can also customize **findPage** and other methods. Have a look at the source code.

h2. <a name="commands">Commands</a>

The CRUD module provides a *crud:override* command that you use on the command line to override the default templates. This works because the CRUD module loads templates from your application if they are present, instead of its own. You can also use **crud:ov** instead of **crud:override**.

h3. play crud:override --template [path]

Copies the template specified by the path, e.g. **Users/list**, to your application’s **app/views/CRUD/** directory. You can also use **-t** instead of **--template**.

h3. play crud:override --layout

Overrides the main page layout template, **layout.html**.

h3. play crud:override --css

Overrides the style sheet, **crud.css**, copying it to your the **public/stylesheets/** directory.



h2. <a name="limitation">Limitation</a>

Limitation The CRUD module only shows bi-directional relationships in one of the two entities: the one that does not have the **mappedBy** attribute.

0 comments on commit bef63fe

Please sign in to comment.