Add styling for the new button
Change the cursor of the new button
Add an 'Add new site' button that will pop a form up to add a site
Add an empty form triggered by the open value in the button state
Move the Addsite button out, and change the name of the main add site box
Add a non-functionnal form
Make a functionnal form. It goes nowhere and input data is hardcoded though
Add bodyParser to parse new objects we send from backbone
Add a create route that creates a site from what Backbone will send
Make our backend Site model read the category from the category name on save
Make the model not try to work on sites when the query returns an error
Use findWhere instead of Where. It returns only one result, exactly what we want
Make the box not load any data in case of any site from the category called "others"
Give sites and controller as a prop to our AddSiteBox
Move types as a constant variable. We'll get it from the db after, but for now we do it this way.
Add the addSiteHandler to get the config in the right format to send it to the backend