use of de.rwth.idsg.steve.web.dto.OcppTagBatchInsertForm in project steve by RWTH-i5-IDSG.
the class OcppTagsController method addSinglePost.
@RequestMapping(params = "add", value = ADD_SINGLE_PATH, method = RequestMethod.POST)
public String addSinglePost(@Valid @ModelAttribute("ocppTagForm") OcppTagForm ocppTagForm, BindingResult result, Model model) {
if (result.hasErrors()) {
setTags(model);
model.addAttribute("batchInsertForm", new OcppTagBatchInsertForm());
return "data-man/ocppTagAdd";
}
ocppTagRepository.addOcppTag(ocppTagForm);
return toOverview();
}
use of de.rwth.idsg.steve.web.dto.OcppTagBatchInsertForm in project steve by RWTH-i5-IDSG.
the class OcppTagsController method addGet.
@RequestMapping(value = ADD_PATH, method = RequestMethod.GET)
public String addGet(Model model) {
setTags(model);
model.addAttribute("ocppTagForm", new OcppTagForm());
model.addAttribute("batchInsertForm", new OcppTagBatchInsertForm());
return "data-man/ocppTagAdd";
}
Aggregations