Display code for the form to edit/create an index transfered to a new file

I have transferred the html code for the creation of the form for edit/create an index to a new library file called display_indexes.lib.php