Browse Source

AppendixText forms (2)

Andrew Grant 2 tháng trước cách đây
mục cha
commit
f49ba2c92a

+ 2 - 1
src/main/java/scot/carricksoftware/grants/controllers/text/appendixtext/AppendixTextFormControllerImpl.java

@@ -92,7 +92,8 @@ public class AppendixTextFormControllerImpl implements AppendixTextFormControlle
     @GetMapping(TextMappingConstants.APPENDIX_TEXT_SHOW)
     public String showById(@PathVariable String id, Model model) {
         logger.debug("AppendixTextFormControllerImpl::saveOrUpdate");
-        appendixTextConverter.convert(appendixTextService.findById(Long.valueOf(id)));
+        AppendixTextCommand convertedCommand =  appendixTextConverter.convert(appendixTextService.findById(Long.valueOf(id)));
+        model.addAttribute(TextAttributeConstants.APPENDIX_TEXT_COMMAND, convertedCommand);
         return ViewConstants.APPENDIX_TEXT_FORM;
     }
 

+ 1 - 1
src/main/resources/templates/text/appendixText/list.html

@@ -18,7 +18,7 @@
 <div class="container text-center">
     <div class="container border border-info
                     rounded-3 text-center p-4">
-        <h3>Person Texts</h3>
+        <h3>Appendix Texts</h3>
         <table class="table table-striped table-bordered">
             <thead class="table-dark">
             <tr>