| @@ -1,22 +1,43 @@ | ||
| 1 | 1 | <script type="text/html" id="tmpl-stockpack-downloader"> |
| 2 | 2 | <div class="downloader"> |
| 3 | - <button type="button" class="button media-button button-primary button-large download-stockpack-image"> | |
| 4 | - {{data.download}} | |
| 5 | - </button> | |
| 6 | - <# if ( data.model.extra ) { #> | |
| 7 | - <# if ( !data.model.extra.licensed ) { #> | |
| 8 | - <button type="button" class="button media-button button-secondary button-large license-stockpack-image"> | |
| 9 | - {{data.license}} | |
| 10 | - </button> | |
| 11 | - <# } else { #> | |
| 12 | - <span class="stockpack-already-licensed">{{data.alreadyLicensed}}</span> | |
| 13 | - <# } #> | |
| 14 | - <# } #> | |
| 15 | - <# if ( data.state ) { #> | |
| 16 | - <span class="state">{{data.state}}</span> | |
| 17 | - <# } #> | |
| 18 | - <# if ( data.progress ) { #> | |
| 19 | - <span class="progress">{{data.progress}}</span> | |
| 20 | - <# } #> | |
| 3 | + <# if ( data.filename_change ) { #> | |
| 4 | + <div class="filename-change"> | |
| 5 | + <input type="text" class="regular-text" value="{{data.desired_filename}}" placeholder="{{data.filename_placeholder}}"> | |
| 6 | + </div> | |
| 7 | + <# } #> | |
| 8 | + <# if ( data.noFreeDownload ) { #> | |
| 9 | + <button type="button" class="button media-button button-large download-stockpack-image" disabled> | |
| 10 | + {{data.download}} | |
| 11 | + </button> | |
| 12 | + <# } else { #> | |
| 13 | + <button type="button" class="button media-button button-primary button-large download-stockpack-image"> | |
| 14 | + {{data.download}} | |
| 15 | + </button> | |
| 16 | + <# } #> | |
| 17 | + <# if ( data.model.extra ) { #> | |
| 18 | + <# if ( !data.model.extra.licensed ) { #> | |
| 19 | + <button type="button" class="button media-button button-large license-stockpack-image {{ data.noFreeDownload ? 'button-primary' : 'button-secondary' }}"> | |
| 20 | + {{data.license}} | |
| 21 | + </button> | |
| 22 | + <# } else { #> | |
| 23 | + <span class="stockpack-already-licensed">{{data.alreadyLicensed}}</span> | |
| 24 | + <# } #> | |
| 25 | + <# } #> | |
| 26 | + <# if ( data.noFreeDownload ) { #> | |
| 27 | + <p class="stockpack-no-free">{{data.noFreeDownloadNote}}</p> | |
| 28 | + <# } #> | |
| 29 | + <# if ( data.state ) { #> | |
| 30 | + <span class="state">{{data.state}}</span> | |
| 31 | + <# } #> | |
| 32 | + <# if ( data.progress ) { #> | |
| 33 | + <span class="progress">{{data.progress}}</span> | |
| 34 | + <# } #> | |
| 35 | + <# if ( data.warning ) { #> | |
| 36 | + <div class="warning"> | |
| 37 | + <div class="notice notice-warning"> | |
| 38 | + {{data.warning}} | |
| 39 | + </div> | |
| 40 | + </div> | |
| 41 | + <# } #> | |
| 21 | 42 | </div> |
| 22 | -</script> | |
| 43 | +</script> | |