Last active
November 13, 2016 21:13
-
-
Save ndemengel/54df1425968d9e8d05d052e71b31e4d9 to your computer and use it in GitHub Desktop.
Example of JSP used in JS test: https://gist.github.com/ndemengel/749b3e7b2171a364fcaf860173694521
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page contentType="text/html;charset=UTF-8" language="java" %> | |
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> | |
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> | |
<div class="no-mg editable-rating-stars"> | |
<div class="stars"> | |
<ul class="inline-list no-lstyle"> | |
<c:forEach begin="1" end="5" var="rate"> | |
<li class="star"> | |
<form:radiobutton path="${param.path}" value="${rate}" id="${param.path}${rate}" class="sr-only" /> | |
<label for="${param.path}${rate}"><i class="fa fa-star"></i> | |
<span class="star-label sr-only"><spring:message code="general.rating.${rate}of5"/></span> | |
</label> | |
</li> | |
</c:forEach> | |
</ul> | |
<p class="star-label"></p> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment