Commit f8f2d18a authored by Liing Pang Ryan's avatar Liing Pang Ryan
Browse files

Display no choices yet when there are no choices

parent 74d0e88c
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div class="choices" id="choices${paragraph.id}">
<c:if test="${empty choiceList}">
<div class="no_choices">There are no choices yet for this story</div>
</c:if>
<c:forEach items="${choiceList}" var="choice">
<c:if test="${choice['idParagrapheSuite']==0}" var="new" scope="request">
<span class="choice ${choice['published']?'':'edit'}" id ="choice${choice['id']}" style ="${choice['published']?'':'display:none;'}" onclick="${'newParagraphe'}(${choice['idParagraphe']},${choice['id']},${storyid})">
......@@ -17,7 +20,6 @@
</span>
</c:if>
</c:forEach>
</div>
<div class="add_choice">
<div class="add_choice_btn" onclick="addChoice(${paragraph.id},${storyid})" id="add_choice${paragraph.id}">
......
......@@ -412,7 +412,7 @@
display:flex;
justify-content: center;
align-items: center;
font-size: large;
font-size: 100%;
font-weight: bold;
font-family: 'Roboto Slab', cursive;
}
......@@ -546,4 +546,15 @@
height:40px;
margin-left:41%;
margin-right: auto;
}
/*No choices yet for the story*/
.no_choices{
font-family: 'Roboto Slab', cursive;
font-size: x-large;
font-weight:bold;
text-align:center;
width:50%;
margin: 50px auto;
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment