Mercurial > agora-palash
diff templates/snippet/rate_form.djhtml @ 208:a22259c9862e
Removed redundant code for ratings field and add a separate template file for ratings field. Now ratings will be handled by Jquery.
author | Ahsan Ali Shahid <ahsan.ali.shahid@gmail.com> |
---|---|
date | Wed, 21 Aug 2013 03:52:06 +0500 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/snippet/rate_form.djhtml Wed Aug 21 03:52:06 2013 +0500 @@ -0,0 +1,12 @@ +<div id = "radio_votes"> +<form action = "rating/process/" method = "POST" id="rate_form"> +{% csrf_token%} +<h3 id ="rate_label">Rate this Snippet:</h3> +<ul> +{% for x in "12345" %} +<li><label for="id_Rate_{{ forloop.counter }}"><input name="Rate" type="radio" class="rate_radio" value="{{ forloop.counter }}" id="id_Rate_0"> {{ forloop.counter }}</label></li> +{% endfor %} +</ul> +<input type="hidden" name="next" value="{{ request.get_full_path }}" /> +</form> +</div> \ No newline at end of file