-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/enhancement/add-task-manually' i…
…nto test
- Loading branch information
Showing
2 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
38 changes: 36 additions & 2 deletions
38
hypha/apply/activity/templates/activity/include/comment_form.html
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,6 +1,40 @@ | ||
{% load i18n %} | ||
|
||
<div class="wrapper wrapper--comments"> | ||
{% trans "Submit" as submit %} | ||
{% include "funds/includes/delegated_form_base.html" with form=comment_form value=submit extra_classes="form__comments" %} | ||
{% trans "Submit" as value %} | ||
{% load i18n %} | ||
<form | ||
class="form form__comments" | ||
method="post" | ||
id="{% if form_id %}{{ form_id }}{% else %}{{ comment_form.name }}{% endif %}" | ||
enctype="multipart/form-data" | ||
{% if action %}action="{{ action }}"{% endif %} | ||
> | ||
{% csrf_token %} | ||
|
||
{{ comment_form.media }} | ||
{% for hidden in comment_form.hidden_fields %} | ||
{{ hidden }} | ||
{% endfor %} | ||
|
||
<div class="fields--visible"> | ||
{% for field in comment_form.visible_fields %} | ||
{% if field.field %} | ||
{% include "forms/includes/field.html" %} | ||
{% else %} | ||
{{ field }} | ||
{% endif %} | ||
{% endfor %} | ||
|
||
<button | ||
class="button button--primary" | ||
id="{{ comment_form.name }}-submit" | ||
name="{{ form_prefix }}{{ comment_form.name }}" | ||
type="submit" | ||
form="{% if form_id %}{{ form_id }}{% else %}{{ comment_form.name }}{% endif %}"> | ||
{{ value }} | ||
</button> | ||
</div> | ||
|
||
</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