# HG changeset patch # User Madhusudan.C.S # Date 1249854842 -19800 # Node ID 94fe7fe7394d7ccdf8882dcd8c9ae7ae6d48cfac # Parent 425626c7f63e9a3e814f3c25218e7f5026c5bed4 Complete star plugin implmentation on backend with database writes. diff -r 425626c7f63e -r 94fe7fe7394d app/projrev/views/helpers/forms.py --- a/app/projrev/views/helpers/forms.py Mon Aug 10 02:40:50 2009 +0530 +++ b/app/projrev/views/helpers/forms.py Mon Aug 10 03:24:02 2009 +0530 @@ -30,6 +30,7 @@ fields = ('line_item', 'institution', 'state', 'district', 'mobile_num', 'fax_num') + class ReviewForm(forms.ModelForm): """Creates a form for review of proposal. """ diff -r 425626c7f63e -r 94fe7fe7394d app/projrev/views/proposal.py --- a/app/projrev/views/proposal.py Mon Aug 10 02:40:50 2009 +0530 +++ b/app/projrev/views/proposal.py Mon Aug 10 03:24:02 2009 +0530 @@ -250,6 +250,8 @@ # If the form is valid create a new project or update the project # if it already exists from the form. review = rev_form.save() + return HttpResponseRedirect( + reverse('app.projrev.views.proposal.rank', args=(micr_code,))) return reviewGet(request, micr_code, rev_form) @@ -395,4 +397,14 @@ return HttpResponse(json.dumps(dt_send)) - return HttpResponse(None) \ No newline at end of file + return HttpResponse(None) + +@access.register('reviewer') +@access.checkAccess +def listMyReviews(request): + """View function to list all reviews given by a user. + """ + context = {} + + template = '' + return render_to_response() \ No newline at end of file diff -r 425626c7f63e -r 94fe7fe7394d app/templates/projrev/proposal/review.html --- a/app/templates/projrev/proposal/review.html Mon Aug 10 02:40:50 2009 +0530 +++ b/app/templates/projrev/proposal/review.html Mon Aug 10 03:24:02 2009 +0530 @@ -1,6 +1,16 @@ {% extends "projrev/base.html" %} {% load review_helpers %} +{% block scripts %} +{{ block.super }} + +{% endblock scripts %} + {% block content %}
@@ -113,91 +123,91 @@

{{ form.attribute1.errors }} {{ form.attribute1.label_tag }} - - - - - + + + + + {% if form.attribute1.field.required %}  (required){% endif %}

{{ form.attribute2.errors }} {{ form.attribute2.label_tag }} - - - - - + + + + + {% if form.attribute2.field.required %}  (required){% endif %}

{{ form.attribute3.errors }} {{ form.attribute3.label_tag }} - - - - - + + + + + {% if form.attribute3.field.required %}  (required){% endif %}

{{ form.attribute4.errors }} {{ form.attribute4.label_tag }} - - - - - + + + + + {% if form.attribute4.field.required %}  (required){% endif %}

{{ form.attribute5.errors }} {{ form.attribute5.label_tag }} - - - - - + + + + + {% if form.attribute5.field.required %}  (required){% endif %}

{{ form.attribute6.errors }} {{ form.attribute6.label_tag }} - - - - - + + + + + {% if form.attribute6.field.required %}  (required){% endif %}

{{ form.attribute7.errors }} {{ form.attribute7.label_tag }} - - - - - + + + + + {% if form.attribute7.field.required %}  (required){% endif %}

{{ form.attribute8.errors }} {{ form.attribute8.label_tag }} - - - - - + + + + + {% if form.attribute8.field.required %}  (required){% endif %}

{{ form.attribute9.errors }} {{ form.attribute9.label_tag }} - - - - - + + + + + {% if form.attribute9.field.required %}  (required){% endif %}