List<models.ElementBase> eb = models.ElementBase.find.all();
return ok(create.render(eb,nature,elementForm.fill(existingElement)));
}
public static Result edit(Integer id) {
Element existingElement = Element.find.byId(id);
List<models.Nature> nature = models.Nature.find.all();
List<models.ElementBase> eb = models.ElementBase.find.all();
return ok(edit.render(eb,nature,elementForm.fill(existingElement)));
}