Returns a CssSel that binds the contents of an element with class ".<name>"
to the field named
Returns a CssSel that binds a link to ".edit" to load and edit this entity
returns a string that represents the id, or <new> if the entity is a new entity.
Loads this entity into the snippet so it can be edited
This function is used as a snippet in the edit view to provide alternate text depending on whether an existing entity is being edited or a new one is being created.
If Some(string), will redirect to string on a successful save.
Delete the entity
Returns a CssSel that binds a link to ".remove" that contains a link to delete this entity
This method checks whether the entity validates; if so it saves it, and if successful redirects to the location specified by redirectOnSave, if any.