Added a SELECT element to the second modal box.
Added event on "Load draft" button.
When clicked, a function will spawn a modal box for selecting in what language will be sent the template.
Quick fix for editing the date.
The date wasn't recognized and the saving failed due the bad format. Now the date variable will be split
and re-assembled before sending it to the DB.
Created a function that will check languages.
The function returns available languages for a specific market.