Skip to content

Instantly share code, notes, and snippets.

@ndemengel
Last active November 13, 2016 21:13
Show Gist options
  • Save ndemengel/54df1425968d9e8d05d052e71b31e4d9 to your computer and use it in GitHub Desktop.
Save ndemengel/54df1425968d9e8d05d052e71b31e4d9 to your computer and use it in GitHub Desktop.
<%@ 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