From 51ff77bfbe322d0624f975b13621eb087bc6fc1b Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Wed, 21 Mar 2018 17:15:27 +0000 Subject: [PATCH] Move comment for to use the delegated form template --- .../activity/templates/activity/include/comment_form.html | 6 +----- .../funds/templates/funds/includes/delegated_form_base.html | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/opentech/apply/activity/templates/activity/include/comment_form.html b/opentech/apply/activity/templates/activity/include/comment_form.html index 39cd0da89..7ee2a4911 100644 --- a/opentech/apply/activity/templates/activity/include/comment_form.html +++ b/opentech/apply/activity/templates/activity/include/comment_form.html @@ -1,8 +1,4 @@ <h4>Add communication</h4> <div class="wrapper wrapper--comments"> - <form class="form form--comments" method="post" id="comment-form"> - {% csrf_token %} - {{ comment_form }} - <button id="comment-form-submit" name="form-submitted" form="comment-form" class="button button--primary" type="submit" value="comment">Add message</button> - </form> + {% include 'funds/includes/delegated_form_base.html' with form=comment_form value='Comment' extra_classes='form__comments'%} </div> diff --git a/opentech/apply/funds/templates/funds/includes/delegated_form_base.html b/opentech/apply/funds/templates/funds/includes/delegated_form_base.html index ffb837009..794d7fc93 100644 --- a/opentech/apply/funds/templates/funds/includes/delegated_form_base.html +++ b/opentech/apply/funds/templates/funds/includes/delegated_form_base.html @@ -1,4 +1,4 @@ -<form class="form" method="post" id="{{ form.name }}"> +<form class="form {{extra_classes}}" method="post" id="{{ form.name }}"> {% csrf_token %} <div class="form__item"> {{ form }} -- GitLab