Skip to content

Commit f821f23

Browse files
committed
community/: Add a request form to assign issue
Closes coala#280
1 parent 0d1f735 commit f821f23

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

templates/community_forms.html

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,3 +466,57 @@ <h5 class="text-center custom-green-color-font bold-text">
466466
<input class="waves-effect waves-light btn-large large-font" type="submit" value="Submit">
467467
</div>
468468
</form>
469+
470+
<form name="{{ assign_issue_form_name }}" method="post"
471+
netlify-honeypot="bot-field" class="get-issue-assigned-form display-none"
472+
data-netlify="true" action="/">
473+
<h5 class="text-center custom-green-color-font bold-text">
474+
On which Issue you want to work?
475+
</h5>
476+
{% csrf_token %}
477+
{% for field in assign_issue_form %}
478+
<div class="row">
479+
<div class="input-field col s12">
480+
{% if field.name == 'user' or field.name == 'hoster' %}
481+
<p><label for="{{ field.name }}">{{ field.label }}</label></p>
482+
{% elif field.name != 'requested_user' %}
483+
<label for="{{ field.name }}">{{ field.label }}</label>
484+
{% endif %}
485+
{{ field }}
486+
{% if field.help_text %}
487+
<i class="fa fa-info-circle" aria-hidden="true">{{ field.help_text }}</i>
488+
{% endif %}
489+
</div>
490+
</div>
491+
{% endfor %}
492+
<div class="validation-checkboxes">
493+
<p>
494+
<label>
495+
<input type="checkbox" required>
496+
<span>I am a member of {{ org.name }} oragnization.</span>
497+
</label>
498+
</p>
499+
<p>
500+
<label>
501+
<input type="checkbox" required>
502+
<span>All of the above information provided by me has no false
503+
entries. If so, I am liable of getting blacklisted.</span>
504+
</label>
505+
</p>
506+
<p style="display: none">
507+
<label>
508+
<input type="checkbox" name="bot-field">
509+
<span>I am a bot</span>
510+
</label>
511+
</p>
512+
<p>
513+
<strong>
514+
Note: You will receive an email within 24 hrs, if any of the
515+
validation checks are not passed.
516+
</strong>
517+
</p>
518+
</div>
519+
<div class="apply-flex center-content submit-btn">
520+
<input class="waves-effect waves-light btn-large large-font" type="submit" value="Submit">
521+
</div>
522+
</form>

0 commit comments

Comments
 (0)