質問編集履歴
2
情報の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -636,36 +636,16 @@
|
|
636
636
|
|
637
637
|
</div>
|
638
638
|
|
639
|
-
|
640
|
-
|
641
|
-
|
639
|
+
|
642
|
-
|
643
|
-
|
640
|
+
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
641
|
+
<div class="d-grid gap-2 col-lg-2 py-5">
|
642
|
+
|
648
|
-
|
643
|
+
<input th:if ="${dailyReportId}" type ="hidden" th:value ="${dailyReportId}" name ="dailyReportId">
|
644
|
+
|
649
|
-
<
|
645
|
+
<button type="submit" class ="btn btn-primary">登録</button>
|
650
|
-
|
651
|
-
<div th:if="${#fields.hasErrors('detail')}"class="alert alert-danger" role="alert"><p>1~20文字以内で入力してください</p></div>
|
652
|
-
|
653
|
-
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3" name="detail" th:value ="*{detail}"></textarea>
|
654
646
|
|
655
647
|
</div>
|
656
648
|
|
657
|
-
<br>
|
658
|
-
|
659
|
-
</br>
|
660
|
-
|
661
|
-
<div class="d-grid gap-2 col-lg-2 py-5">
|
662
|
-
|
663
|
-
<input th:if ="${dailyReportId}" type ="hidden" th:value ="${dailyReportId}" name ="dailyReportId">
|
664
|
-
|
665
|
-
<button type="submit" class ="btn btn-primary">登録</button>
|
666
|
-
|
667
|
-
</div>
|
668
|
-
|
669
649
|
</div>
|
670
650
|
|
671
651
|
</form>
|
1
情報の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -608,10 +608,72 @@
|
|
608
608
|
|
609
609
|
}
|
610
610
|
|
611
|
-
|
612
|
-
|
613
611
|
```
|
614
612
|
|
613
|
+
```
|
614
|
+
|
615
|
+
|
616
|
+
|
617
|
+
<form method ="POST" th:action ="${dailyReportForm.newReport}? @{/main/report/insert}:@{/main/report/update}" th:object="${dailyReportForm}">
|
618
|
+
|
619
|
+
<div class="form-group col-sm-5">
|
620
|
+
|
621
|
+
<p th:if="${dayCheck}" th:text="${dayCheck}" class ="alert alert-danger" role ="alert"></p>
|
622
|
+
|
623
|
+
<label>作業日時</label>
|
624
|
+
|
625
|
+
<input type ="date" class="form-control" name ="created" th:value ="*{created}"required>
|
626
|
+
|
627
|
+
<label>開始時刻</label>
|
628
|
+
|
629
|
+
<input type ="datetime-local"class="form-control" name ="startTime" th:value ="*{startTime}"required>
|
630
|
+
|
631
|
+
|
632
|
+
|
633
|
+
<label>終了時刻</label>
|
634
|
+
|
635
|
+
<input type ="datetime-local"class="form-control" name ="endTime" th:value ="*{endTime}"required>
|
636
|
+
|
637
|
+
</div>
|
638
|
+
|
639
|
+
|
640
|
+
|
641
|
+
<br>
|
642
|
+
|
643
|
+
</br>
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
<div class="form-group col-lg-5"required>
|
648
|
+
|
649
|
+
<label for="exampleFormControlTextarea1">日報内容</label>
|
650
|
+
|
651
|
+
<div th:if="${#fields.hasErrors('detail')}"class="alert alert-danger" role="alert"><p>1~20文字以内で入力してください</p></div>
|
652
|
+
|
653
|
+
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3" name="detail" th:value ="*{detail}"></textarea>
|
654
|
+
|
655
|
+
</div>
|
656
|
+
|
657
|
+
<br>
|
658
|
+
|
659
|
+
</br>
|
660
|
+
|
661
|
+
<div class="d-grid gap-2 col-lg-2 py-5">
|
662
|
+
|
663
|
+
<input th:if ="${dailyReportId}" type ="hidden" th:value ="${dailyReportId}" name ="dailyReportId">
|
664
|
+
|
665
|
+
<button type="submit" class ="btn btn-primary">登録</button>
|
666
|
+
|
667
|
+
</div>
|
668
|
+
|
669
|
+
</div>
|
670
|
+
|
671
|
+
</form>
|
672
|
+
|
673
|
+
|
674
|
+
|
675
|
+
```
|
676
|
+
|
615
677
|
|
616
678
|
|
617
679
|
### 試したこと
|