XXX, in the evening to engage in three hours or so, just feel clear.
Multiple IDs should be aware of uniqueness.
In Django, the uniqueness of each cycle is also tricky.
Number of the parent loop
{{Forloop.parentloop.counter}}
Number of self-loops
{{Forloop.counter}}
<DivID= "my-id{{forloop.parentloop.counter}}-{{Forloop.counter}}"class= "Uk-modal" > <Divclass= "Uk-modal-dialog uk-modal-dialog-large" ><aclass= "Uk-modal-close uk-close"></a><H1>Upgrade dialog box</H1> <Buttonclass= "Btn_modupdate Uk-button uk-button-success" >Begin</Button><Divclass= "Uk-progress"> <Divclass= "Uk-progress-bar uk-active"style= "width:40%;">40%</Div> </Div><DivID= "Dia_output">Output</Div> </Div></Div> <ahref= "#my-id{{forloop.parentloop.counter}}-{{Forloop.counter}}"Data-uk-modal>Button</a
In addition, when the modal is closed, the data of the parent window is refreshed:
$ ('. Uk-modal '). On ({ function() { console.log ("modal is visible.") ); }, function() { console.log ("Element is not visible.") ); Window.location.reload () } );
Use Uikit modal dialog box to notice the place