Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG 1196293 : Remove rating stars from edit review reply -- includes …
…refactoring (ReviewReplyForm is now used for editing review replies instead of ReviewForm)
- Loading branch information
1 parent
04956ed
commit 05e9ca4
Showing
6 changed files
with
130 additions
and
72 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{% from "includes/forms.html" import pretty_field, required_note %} | ||
<div class="hidden"> | ||
<form method="post" id="review-edit-form" action="#" | ||
<form method="post" id="{{ form.form_id() }}-form" action="#" | ||
class="review article review-form prettyform"> | ||
{{ csrf() }} | ||
<fieldset> | ||
<ul> | ||
{{ pretty_field(form.title, _('Title')) }} | ||
{{ pretty_field(form.rating, _('Rating')) }} | ||
{{ pretty_field(form.body, _('Review')) }} | ||
{% for field in form %} | ||
{{ pretty_field(field, _(field.label)) }} | ||
{% endfor %} | ||
</ul> | ||
</fieldset> | ||
<footer> | ||
{{ required_note() }} | ||
<input type="submit" value="{{ _('Submit review') }}"> | ||
{{ _('or') }} <a href="#" id="review-edit-cancel">{{ _('Cancel') }}</a> | ||
<input id="{{ form.form_id() }}-submit" type="submit" value="{{ _('Submit review') }}"> | ||
{{ _('or') }} <a href="#" id="{{ form.form_id() }}-cancel">{{ _('Cancel') }}</a> | ||
</footer> | ||
</form> | ||
</div> |
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
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
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