Skip to content

Commit

Permalink
community/: Add a form for adding a gsoc student
Browse files Browse the repository at this point in the history
Closes coala#273
  • Loading branch information
KVGarg committed Aug 5, 2019
1 parent 822e6c7 commit 67427b6
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 @@ -880,3 +880,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="{{ gsoc_student_form_name }}" method="post"
netlify-honeypot="bot-field" class="participated-in-gsoc-form display-none"
data-netlify="true" action="/">
<h5 class="text-center custom-green-color-font bold-text">
Google Summer of Code, Participation Student Details
</h5>
{% csrf_token %}
{% for field in gsoc_student_form %}
<div class="row">
<div class="input-field col s12">
{% if field.name == 'user' %}
<p><label for="{{ field.name }}">{{ field.label }}</label></p>
{% else %}
<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 67427b6

Please sign in to comment.