src/public/js/admin_page.js
/**
 * Populates the edit school fields.
 *
 * @param school_id The id of the selected school
 */
Populates the edit school fields.
@param school_id The id of the selected school
Populates the edit school fields . @param school_id The id of the selected school
function schoolSelect(school_id)
{
    let school = schools[school_id - 1];
    document.getElementById('edit_school_label').value = school.name;
    document.getElementById('edit_school_desc').value = school.description;
}
function schoolSelect ( school_id ) { let school = schools [ school_id - 1 ] ; document . getElementById ( 'edit_school_label' ) . value = school . name ; document . getElementById ( 'edit_school_desc' ) . value = school . description ; }
Populates the edit school fields.
Populates the edit school fields .