Reputation: 819
I am using crud module in Play 1.2.4 for user role management.
In the model (which is mapped with the Entity), I am having a few fields such as Record Create Timestamp etc which I don't want to be displayed in the UI. By default, it is getting displayed. I cant remove these fields also from the Entity since I need to perform some operations on these.
Kindly let me know how to remove some of the fields from UI which are preent in the Entity model class.
Upvotes: 0
Views: 145
Reputation: 1267
If you annotate a field with @CRUD.Hidden
it won't display in the UI.
CRUD shows enum
types as dropdown.
Upvotes: 0
Reputation: 5233
You can customize the template used by CRUD, for your model.
First, override the template : play crud:ov Roles\blank.html
(assuming Roles is your CRUD Controller)
then modify it :
search #{crud.form fields:[field1', 'field2', 'field3' ]/}
and remove field2
, for example, if you don't want to display it.
Upvotes: 1