Skip to content

Commit bf237b8

Browse files
committed
community/: Add a form for adding a gsoc student
Closes coala#273
1 parent 5975d4b commit bf237b8

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

Diff for: templates/community_forms.html

+54
Original file line numberDiff line numberDiff line change
@@ -570,3 +570,57 @@ <h5 class="text-center custom-green-color-font bold-text">
570570
<input class="waves-effect waves-light btn-large large-font" type="submit" value="Submit">
571571
</div>
572572
</form>
573+
574+
<form name="{{ gsoc_student_form_name }}" method="post"
575+
netlify-honeypot="bot-field" class="participated-in-gsoc-form display-none"
576+
data-netlify="true" action="/">
577+
<h5 class="text-center custom-green-color-font bold-text">
578+
Google Summer of Code, Participation Student Details
579+
</h5>
580+
{% csrf_token %}
581+
{% for field in gsoc_student_form %}
582+
<div class="row">
583+
<div class="input-field col s12">
584+
{% if field.name == 'user' %}
585+
<p><label for="{{ field.name }}">{{ field.label }}</label></p>
586+
{% else %}
587+
<label for="{{ field.name }}">{{ field.label }}</label>
588+
{% endif %}
589+
{{ field }}
590+
{% if field.help_text %}
591+
<i class="fa fa-info-circle" aria-hidden="true">{{ field.help_text }}</i>
592+
{% endif %}
593+
</div>
594+
</div>
595+
{% endfor %}
596+
<div class="validation-checkboxes">
597+
<p>
598+
<label>
599+
<input type="checkbox" required>
600+
<span>I am a member of {{ org.name }} oragnization.</span>
601+
</label>
602+
</p>
603+
<p>
604+
<label>
605+
<input type="checkbox" required>
606+
<span>All of the above information provided by me has no false
607+
entries. If so, I am liable of getting blacklisted.</span>
608+
</label>
609+
</p>
610+
<p style="display: none">
611+
<label>
612+
<input type="checkbox" name="bot-field">
613+
<span>I am a bot</span>
614+
</label>
615+
</p>
616+
<p>
617+
<strong>
618+
Note: You will receive an email within 24 hrs, if any of the
619+
validation checks are not passed.
620+
</strong>
621+
</p>
622+
</div>
623+
<div class="apply-flex center-content submit-btn">
624+
<input class="waves-effect waves-light btn-large large-font" type="submit" value="Submit">
625+
</div>
626+
</form>

0 commit comments

Comments
 (0)