Skip to content

Commit 4d14860

Browse files
committed
community/: Add a request form to assign issue
Closes coala#280
1 parent bf237b8 commit 4d14860

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
@@ -624,3 +624,57 @@ <h5 class="text-center custom-green-color-font bold-text">
624624
<input class="waves-effect waves-light btn-large large-font" type="submit" value="Submit">
625625
</div>
626626
</form>
627+
628+
<form name="{{ assign_issue_form_name }}" method="post"
629+
netlify-honeypot="bot-field" class="get-issue-assigned-form display-none"
630+
data-netlify="true" action="/">
631+
<h5 class="text-center custom-green-color-font bold-text">
632+
On which Issue you want to work?
633+
</h5>
634+
{% csrf_token %}
635+
{% for field in assign_issue_form %}
636+
<div class="row">
637+
<div class="input-field col s12">
638+
{% if field.name == 'user' or field.name == 'hoster' %}
639+
<p><label for="{{ field.name }}">{{ field.label }}</label></p>
640+
{% elif field.name != 'requested_user' %}
641+
<label for="{{ field.name }}">{{ field.label }}</label>
642+
{% endif %}
643+
{{ field }}
644+
{% if field.help_text %}
645+
<i class="fa fa-info-circle" aria-hidden="true">{{ field.help_text }}</i>
646+
{% endif %}
647+
</div>
648+
</div>
649+
{% endfor %}
650+
<div class="validation-checkboxes">
651+
<p>
652+
<label>
653+
<input type="checkbox" required>
654+
<span>I am a member of {{ org.name }} oragnization.</span>
655+
</label>
656+
</p>
657+
<p>
658+
<label>
659+
<input type="checkbox" required>
660+
<span>All of the above information provided by me has no false
661+
entries. If so, I am liable of getting blacklisted.</span>
662+
</label>
663+
</p>
664+
<p style="display: none">
665+
<label>
666+
<input type="checkbox" name="bot-field">
667+
<span>I am a bot</span>
668+
</label>
669+
</p>
670+
<p>
671+
<strong>
672+
Note: You will receive an email within 24 hrs, if any of the
673+
validation checks are not passed.
674+
</strong>
675+
</p>
676+
</div>
677+
<div class="apply-flex center-content submit-btn">
678+
<input class="waves-effect waves-light btn-large large-font" type="submit" value="Submit">
679+
</div>
680+
</form>

0 commit comments

Comments
 (0)