Skip to content

Commit 0ee46ed

Browse files
authored
disable delete buttons (#2332)
2 parents c80544d + a077abe commit 0ee46ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116

117117
<c:forEach var="storyBookChapter" items="${storyBookChapters}" varStatus="status">
118118
<a name="ch-id-${storyBookChapter.id}"></a>
119-
<a class="storyBookChapterDeleteLink right red-text" style="margin-top: 1em;" href="<spring:url value='/content/storybook/edit/${storyBook.id}/chapter/delete/${storyBookChapter.id}' />"><i class="material-icons" title="Delete">delete</i></a>
119+
<a class="storyBookChapterEditLink right" style="margin-top: 1em;" href="<spring:url value='/content/storybook/edit/${storyBook.id}/chapter/edit/${storyBookChapter.id}' />"><i class="material-icons" title="Edit chapter">edit</i></a>
120120
<h5 style="margin-top: 1em;" class="grey-text">Chapter&nbsp;${storyBookChapter.sortOrder + 1}/${fn:length(storyBookChapters)}</h5>
121121
<div class="card-panel storyBookChapter">
122122
<c:if test="${not empty storyBookChapter.image}">
@@ -126,7 +126,7 @@
126126
</c:if>
127127

128128
<c:forEach var="storyBookParagraph" items="${paragraphsPerStoryBookChapterMap[storyBookChapter.id]}">
129-
<p class="storyBookParagraph"><a class="storyBookParagraphEditLink right" href="<spring:url value='/content/storybook/paragraph/edit/${storyBookParagraph.id}' />"><i class="material-icons" title="Edit">edit</i></a><c:out value="" />
129+
<p class="storyBookParagraph"><a class="storyBookParagraphEditLink right" href="<spring:url value='/content/storybook/paragraph/edit/${storyBookParagraph.id}' />"><i class="material-icons" title="Edit paragraph">edit</i></a><c:out value="" />
130130
<c:forEach var="wordInOriginalText" items="${fn:split(fn:trim(storyBookParagraph.originalText), ' ')}" varStatus="status">
131131
<c:set var="word" value="${storyBookParagraph.words[status.index]}" />
132132
<c:choose>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<button id="submitButton" class="btn-large waves-effect waves-light" type="submit" <c:if test="${empty contributor}">disabled</c:if>>
3131
Edit <i class="material-icons right">send</i>
3232
</button>
33-
<a href="<spring:url value='/content/storybook/paragraph/delete/${storyBookParagraph.id}' />" class="waves-effect waves-red red-text btn-flat right">Delete</a>
33+
<a href="<spring:url value='/content/storybook/paragraph/delete/${storyBookParagraph.id}' />" class="waves-effect waves-red red-text btn-flat <c:if test='${empty contributor}'>disabled</c:if> right">Delete</a>
3434
</form:form>
3535
</div>
3636
</content:section>

0 commit comments

Comments
 (0)