{"action":"created","issue":{"url":"https://api.github.com/repos/xavierliancw/Based-Itinerary/issues/118","repository_url":"https://api.github.com/repos/xavierliancw/Based-Itinerary","labels_url":"https://api.github.com/repos/xavierliancw/Based-Itinerary/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/xavierliancw/Based-Itinerary/issues/118/comments","events_url":"https://api.github.com/repos/xavierliancw/Based-Itinerary/issues/118/events","html_url":"https://github.com/xavierliancw/Based-Itinerary/issues/118","id":152008911,"number":118,"title":"As a prospective baseball team owner, I would like to be able to add my baseball team, and their corresponding stadium, to the program so that baseball tourists can visit my stadium too.","user":{"login":"molinab297","id":10769110,"avatar_url":"https://avatars.githubusercontent.com/u/10769110?v=3","gravatar_id":"","url":"https://api.github.com/users/molinab297","html_url":"https://github.com/molinab297","followers_url":"https://api.github.com/users/molinab297/followers","following_url":"https://api.github.com/users/molinab297/following{/other_user}","gists_url":"https://api.github.com/users/molinab297/gists{/gist_id}","starred_url":"https://api.github.com/users/molinab297/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molinab297/subscriptions","organizations_url":"https://api.github.com/users/molinab297/orgs","repos_url":"https://api.github.com/users/molinab297/repos","events_url":"https://api.github.com/users/molinab297/events{/privacy}","received_events_url":"https://api.github.com/users/molinab297/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xavierliancw/Based-Itinerary/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/xavierliancw/Based-Itinerary/labels/mandatory%20requirement","name":"mandatory requirement","color":"fbca04"},{"url":"https://api.github.com/repos/xavierliancw/Based-Itinerary/labels/story","name":"story","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"molinab297","id":10769110,"avatar_url":"https://avatars.githubusercontent.com/u/10769110?v=3","gravatar_id":"","url":"https://api.github.com/users/molinab297","html_url":"https://github.com/molinab297","followers_url":"https://api.github.com/users/molinab297/followers","following_url":"https://api.github.com/users/molinab297/following{/other_user}","gists_url":"https://api.github.com/users/molinab297/gists{/gist_id}","starred_url":"https://api.github.com/users/molinab297/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molinab297/subscriptions","organizations_url":"https://api.github.com/users/molinab297/orgs","repos_url":"https://api.github.com/users/molinab297/repos","events_url":"https://api.github.com/users/molinab297/events{/privacy}","received_events_url":"https://api.github.com/users/molinab297/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/xavierliancw/Based-Itinerary/milestones/3","html_url":"https://github.com/xavierliancw/Based-Itinerary/milestones/Project%20Completion","labels_url":"https://api.github.com/repos/xavierliancw/Based-Itinerary/milestones/3/labels","id":1661305,"number":3,"title":"Project Completion","description":"- Finish","creator":{"login":"xavierliancw","id":10767668,"avatar_url":"https://avatars.githubusercontent.com/u/10767668?v=3","gravatar_id":"","url":"https://api.github.com/users/xavierliancw","html_url":"https://github.com/xavierliancw","followers_url":"https://api.github.com/users/xavierliancw/followers","following_url":"https://api.github.com/users/xavierliancw/following{/other_user}","gists_url":"https://api.github.com/users/xavierliancw/gists{/gist_id}","starred_url":"https://api.github.com/users/xavierliancw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavierliancw/subscriptions","organizations_url":"https://api.github.com/users/xavierliancw/orgs","repos_url":"https://api.github.com/users/xavierliancw/repos","events_url":"https://api.github.com/users/xavierliancw/events{/privacy}","received_events_url":"https://api.github.com/users/xavierliancw/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":14,"state":"open","created_at":"2016-03-23T05:34:22Z","updated_at":"2016-05-06T10:42:01Z","due_on":"2016-05-16T07:00:00Z","closed_at":null},"comments":2,"created_at":"2016-04-30T04:42:43Z","updated_at":"2016-05-10T08:18:04Z","closed_at":null,"body":"Overview:\n- The admin page has a button that says something like \"add stadium\"\n- Clicking the button summons a dialog\n- The dialog has empty fields to fill out, like team name, opening date, capacity, etc.\n- The dialog has a cancel button and a save button\n- After the dialog closes, the distance dialog opens automatically, and will not close until at least one connection is made to another stadium on the graph\n- Requirement 2.7, 3.1, 3.2\n\nTasks:\n- [x] Requires vector structure to hold stadium information\n- [ ] Create a class method to construct a new stadium object\n- [ ] Stadium name, team name, phone number, address, opening date, capacity, grass type, and stadium type should be parameters for that object construction\n- [ ] Make an error message if stadium name is left blank\n- [x] Create a Qt Dialog class for adding a new stadium\n- [ ] Add in appropriate line edits\n- [ ] Make a save and cancel button\n- [ ] Create signal slot interface between the dialog and the prime window\n- [ ] Create a button on the admin page to open up the new dialog\n- [ ] Make an error message for any invalid characters in any field\n- [ ] Refresh the stadium list on the admin page if a new stadium is added to show that a new stadium exists\n- [ ] Make the distance dialog appear when saving the new stadium\n- [ ] The following checkbox must be done with a QMessageBox\n- [ ] Do not allow the distance dialog to be closed until at least one connection is made between the new stadium and an existing stadium\n\nDefinition of Done:\n- [ ] There is a button on the admin page\n- [ ] Clicking it pulls up a dialog that will add a new stadium\n- [ ] The dialog has fields for all of the stadium information laid out above\n- [ ] Error window pops up if invalid characters are type\n- [ ] Error window pops up if stadium name isn't specified\n- [ ] Error window pops up if stadium is not connected to the graph\n- [ ] Clicking save will add the stadium to the data structure\n- [ ] Clicking cancel will just close the dialog\n- [ ] If a new stadium is added, it appears everywhere it's supposed to in the program"},"comment":{"url":"https://api.github.com/repos/xavierliancw/Based-Itinerary/issues/comments/218089309","html_url":"https://github.com/xavierliancw/Based-Itinerary/issues/118#issuecomment-218089309","issue_url":"https://api.github.com/repos/xavierliancw/Based-Itinerary/issues/118","id":218089309,"user":{"login":"xavierliancw","id":10767668,"avatar_url":"https://avatars.githubusercontent.com/u/10767668?v=3","gravatar_id":"","url":"https://api.github.com/users/xavierliancw","html_url":"https://github.com/xavierliancw","followers_url":"https://api.github.com/users/xavierliancw/followers","following_url":"https://api.github.com/users/xavierliancw/following{/other_user}","gists_url":"https://api.github.com/users/xavierliancw/gists{/gist_id}","starred_url":"https://api.github.com/users/xavierliancw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavierliancw/subscriptions","organizations_url":"https://api.github.com/users/xavierliancw/orgs","repos_url":"https://api.github.com/users/xavierliancw/repos","events_url":"https://api.github.com/users/xavierliancw/events{/privacy}","received_events_url":"https://api.github.com/users/xavierliancw/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T08:18:04Z","updated_at":"2016-05-10T08:18:04Z","body":"Look at this commit:\nhttps://github.com/xavierliancw/Based-Itinerary/commit/a2c4a5f52d748f430dffba238ac3f41f667725c7"}}