I have different buttons (one for creating a sprint, another for creating a comment, etc.). Forms for performing these tasks are added to the modal dialog that appears when you click on various buttons.
These are the threads:
press the Sprint button> add a Sprint form> show modal
then if you click on another button:
click the Comment button> empty modal content> add a Comment form> show modal
Currently, various content is stored in the line and added to the modal when the button is clicked.
But now I am using Backbone and Underscore templates, and I cannot figure out how to do the same. I donβt want to have all the templates inside the modal and show them depending on the button you clicked; I want to add an already cached template when clicked.
Is there a way to do this with Backbone and Underscore?
source share