Skip to content
Snippets Groups Projects

Feat: Showing full name for proposers of projects, instead of username, where...

Merged ld507 requested to merge showing-full-names-of-proposers into master
All threads resolved!
2 files
+ 0
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -22,6 +22,14 @@
<div class="w3-threequarter">
{{ form.on_behalf(placeholder="Student username", class="w3-input w3-border", id="student-proposer") }}
</div>
<div class="w3-quarter {% if not show_box %}w3-hide{% endif %}" style="visibility: hidden">
{{ form.on_behalf(placeholder="Student full name", class="w3-input w3-border", id="format-align") }}
</div>
<div class="w3-threequarter {% if not show_box %}w3-hide{% endif %}">
<div class="w3-input w3-border", id="student-fullname">
{{ person.full_name }}
</div>
</div>
</section>
<button type="submit" class="w3-btn w3-{{ theme_colour }}">Save</button>
</form>
@@ -48,4 +56,11 @@
toggleStudentProposer(isStudentProposalCheckbox.checked)
isStudentProposalCheckbox.addEventListener("change", (event) => toggleStudentProposer(event.target.checked))
</script>
<script>
// this script makes the student-fullname textbox hidden when the student-proposer textbox is clicked on (presumably with an intention to modify it)
const studentUsernameBox = document.getElementById("student-proposer")
const studentFullnameBox = document.getElementById("student-fullname")
studentUsernameBox.addEventListener("click", async () => {studentFullnameBox.style.visibility = 'hidden';})
</script>
{% endblock %}
\ No newline at end of file
Loading