Skip to content

Commit 53bceb6

Browse files
authored
feat: delete storybook chapter (#2335)
2 parents 9d009b7 + 895d4b5 commit 53bceb6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pom-dependency-tree.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ai.elimu:webapp:war:2.6.128-SNAPSHOT
1+
ai.elimu:webapp:war:2.6.129-SNAPSHOT
22
+- ai.elimu:model:jar:model-2.0.120:compile
33
| \- com.google.code.gson:gson:jar:2.13.1:compile
44
| \- com.google.errorprone:error_prone_annotations:jar:2.38.0:compile

src/main/webapp/WEB-INF/jsp/content/storybook/chapter/edit.jsp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
<button id="submitButton" class="btn-large waves-effect waves-light" type="submit" <c:if test="${empty contributor}">disabled</c:if>>
3232
Edit <i class="material-icons right">send</i>
3333
</button>
34+
<c:if test="${not empty contributor}">
35+
<a href="<spring:url value='/content/storybook/edit/${storyBookChapter.storyBook.id}/chapter/delete/${storyBookChapter.id}' />" class="waves-effect waves-red red-text btn-flat right">Delete</a>
36+
</c:if>
3437
</form:form>
3538
</div>
3639
</content:section>

0 commit comments

Comments
 (0)