Skip to content

Commit

Permalink
community/: Add a request form to assign issue
Browse files Browse the repository at this point in the history
Closes coala#280
  • Loading branch information
KVGarg committed Aug 5, 2019
1 parent 149f075 commit e341063
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions templates/community_forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,57 @@ <h5 class="text-center custom-green-color-font bold-text">
<input class="waves-effect waves-light btn-large large-font" type="submit" value="Submit">
</div>
</form>

<form name="{{ assign_issue_form_name }}" method="post"
netlify-honeypot="bot-field" class="get-issue-assigned-form display-none"
data-netlify="true" action="/">
<h5 class="text-center custom-green-color-font bold-text">
On which Issue you want to work?
</h5>
{% csrf_token %}
{% for field in assign_issue_form %}
<div class="row">
<div class="input-field col s12">
{% if field.name == 'user' or field.name == 'hoster' %}
<p><label for="{{ field.name }}">{{ field.label }}</label></p>
{% elif field.name != 'requested_user' %}
<label for="{{ field.name }}">{{ field.label }}</label>
{% endif %}
{{ field }}
{% if field.help_text %}
<i class="fa fa-info-circle" aria-hidden="true">{{ field.help_text }}</i>
{% endif %}
</div>
</div>
{% endfor %}
<div class="validation-checkboxes">
<p>
<label>
<input type="checkbox" required>
<span>I am a member of {{ org.name }} oragnization.</span>
</label>
</p>
<p>
<label>
<input type="checkbox" required>
<span>All of the above information provided by me has no false
entries. If so, I am liable of getting blacklisted.</span>
</label>
</p>
<p style="display: none">
<label>
<input type="checkbox" name="bot-field">
<span>I am a bot</span>
</label>
</p>
<p>
<strong>
Note: You will receive an email within 24 hrs, if any of the
validation checks are not passed.
</strong>
</p>
</div>
<div class="apply-flex center-content submit-btn">
<input class="waves-effect waves-light btn-large large-font" type="submit" value="Submit">
</div>
</form>

0 comments on commit e341063

Please sign in to comment.