nss-evening-cohort-11 / nutshell-ewoks-droids

Star Destroyer
0 stars 2 forks source link

Sectors Create #24

Open ToddSpainhour opened 4 years ago

ToddSpainhour commented 4 years ago

USER STORY

As a user, I should be able to create a new sector.

AC

WHEN the page loads I should see all boards THEN click a button to create a new board AND a form should appear for me to add the info to create a new board

WIREFRAMES

sectors

DEV NOTES


1. Create a bootstrap button
1. Create an event listener for the button id of `create-sector-button`
1. When it's clicked, it will run a function called `createNewSector`
1. This function will reveal a hidden div and display a bootstrap form
1. the form will have fields for an image, name, occupied, and explored
1. when the submit button with an id of `create-new-sector` is clicked, the form will disappear
1. it will make the axios call  const addSector = (newSector) => axios.post(`${baseUrl}/sectors.json`, newSectors);

RELATED TICKETS

EX. #1