davidyell / Cricketeer

Application for tracking Cricket matches and leagues
MIT License
2 stars 1 forks source link

Non-batting batsmen #26

Closed davidyell closed 9 years ago

davidyell commented 9 years ago

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.

davidyell commented 9 years ago

Need to allow re-adding of batsmen to the line up. Currently working in the refactor/innings-edit branch

davidyell commented 9 years ago

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.

davidyell commented 9 years ago

Completed!

Implemented mustache templates to build smaller parts of the form so that they can be rendered with both php and javascript.