Closed davidyell closed 9 years ago
Need to allow re-adding of batsmen to the line up. Currently working in the refactor/innings-edit
branch
When updating the record, just create templates for the runs, balls etc, and then another template for wickets.
Then you can add and remove both runs and wickets without affecting the batsman being displayed on the roster.
When removing an item from the score card, if it has an id, then ajax off to delete the item and if it deletes successfully then remove the relevant template, runs or wickets.
Completed!
Implemented mustache templates to build smaller parts of the form so that they can be rendered with both php and javascript.
If a team declares then it's possible that a batsman will face no balls and will not bat at all. So provision will need to be made to be able to remove batsmen from the innings.