Updated the render function in the date element to be compatible with the parent function

Also made use of the function get_grade_items in the class customcert_element_grade to populate the list of items.