Skip to content

Commit 67427b6

Browse files
committed
community/: Add a form for adding a gsoc student
Closes coala#273
1 parent 822e6c7 commit 67427b6

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
@@ -880,3 +880,57 @@ <h5 class="text-center custom-green-color-font bold-text">
880880
<input class="waves-effect waves-light btn-large large-font" type="submit" value="Submit">
881881
</div>
882882
</form>
883+
884+
<form name="{{ gsoc_student_form_name }}" method="post"
885+
netlify-honeypot="bot-field" class="participated-in-gsoc-form display-none"
886+
data-netlify="true" action="/">
887+
<h5 class="text-center custom-green-color-font bold-text">
888+
Google Summer of Code, Participation Student Details
889+
</h5>
890+
{% csrf_token %}
891+
{% for field in gsoc_student_form %}
892+
<div class="row">
893+
<div class="input-field col s12">
894+
{% if field.name == 'user' %}
895+
<p><label for="{{ field.name }}">{{ field.label }}</label></p>
896+
{% else %}
897+
<label for="{{ field.name }}">{{ field.label }}</label>
898+
{% endif %}
899+
{{ field }}
900+
{% if field.help_text %}
901+
<i class="fa fa-info-circle" aria-hidden="true">{{ field.help_text }}</i>
902+
{% endif %}
903+
</div>
904+
</div>
905+
{% endfor %}
906+
<div class="validation-checkboxes">
907+
<p>
908+
<label>
909+
<input type="checkbox" required>
910+
<span>I am a member of {{ org.name }} oragnization.</span>
911+
</label>
912+
</p>
913+
<p>
914+
<label>
915+
<input type="checkbox" required>
916+
<span>All of the above information provided by me has no false
917+
entries. If so, I am liable of getting blacklisted.</span>
918+
</label>
919+
</p>
920+
<p style="display: none">
921+
<label>
922+
<input type="checkbox" name="bot-field">
923+
<span>I am a bot</span>
924+
</label>
925+
</p>
926+
<p>
927+
<strong>
928+
Note: You will receive an email within 24 hrs, if any of the
929+
validation checks are not passed.
930+
</strong>
931+
</p>
932+
</div>
933+
<div class="apply-flex center-content submit-btn">
934+
<input class="waves-effect waves-light btn-large large-font" type="submit" value="Submit">
935+
</div>
936+
</form>

0 commit comments

Comments
 (0)