Pledges: Move contributor management UI to separate file

Having both the input for adding a comma separated list of contributors
to a new pledge and the UI for managing the contributors on an existing
pledge in the same file was confusing and it conflated two different
pieces of functionality. It also caused `undefined index` errors in some
views  because `'pledge-contributors'` only exists when submitting the
new pledge form.
This commit is contained in:
Corey McKrill 2019-10-24 19:13:11 -07:00
parent 6fe5a92c7b
commit e990a79555
No known key found for this signature in database
GPG key ID: C2C0746F7BF17E38
4 changed files with 59 additions and 55 deletions

View file

@ -10,7 +10,7 @@ use function WordPressDotOrg\FiveForTheFuture\get_views_path;
<form class="pledge-form" id="5ftf-form-pledge-manage" action="" method="post">
<?php
require get_views_path() . 'inputs-pledge-org-info.php';
require get_views_path() . 'inputs-pledge-contributors.php';
require get_views_path() . 'manage-contributors.php';
require get_views_path() . 'inputs-pledge-org-email.php';
?>