Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | {% load static %} |
| 2 | |
| 3 | <script src="{% static 'js/newcustomimage_modal.js' %}"></script> |
| 4 | <script> |
| 5 | $(document).ready(function (){ |
| 6 | try { |
| 7 | newCustomImageModalInit(); |
| 8 | } catch (e) { |
| 9 | document.write("Sorry, An error has occurred loading this page"); |
| 10 | console.warn(e); |
| 11 | } |
| 12 | }); |
| 13 | </script> |
| 14 | |
| 15 | <div class="modal hide fade in" id="new-custom-image-modal" aria-hidden="false"> |
| 16 | <div class="modal-header"> |
| 17 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
| 18 | <h3>New custom image</h3> |
| 19 | </div> |
| 20 | |
| 21 | <div class="modal-body"> |
| 22 | <!-- |
| 23 | this container is visible if there are multiple image recipes which could |
| 24 | be used as a basis for the new custom image; radio buttons are added to it |
| 25 | via newCustomImageModalSetRecipes() as required |
| 26 | --> |
| 27 | <div data-role="image-selector" style="display:none;"> |
| 28 | <h4>Which image do you want to customise?</h4> |
| 29 | <div data-role="image-selector-radios"></div> |
| 30 | <span class="help-block error" id="invalid-recipe-help" style="display:none"></span> |
| 31 | <div class="air"></div> |
| 32 | </div> |
| 33 | |
| 34 | <h4>Name your custom image</h4> |
| 35 | |
| 36 | <div class="row-fluid"> |
| 37 | <span class="help-block span8">Image names must be unique. They should not contain spaces or capital letters, and the only allowed special character is dash (-).<p></p> |
| 38 | </span></div> |
| 39 | <div class="control-group controls"> |
| 40 | <input type="text" class="huge" placeholder="Type the custom image name" required> |
| 41 | <span class="help-block error" id="invalid-name-help" style="display:none"></span> |
| 42 | </div> |
| 43 | </div> |
| 44 | |
| 45 | <div class="modal-footer"> |
| 46 | <button id="create-new-custom-image-btn" class="btn btn-primary btn-large" data-original-title="" title="" disabled>Create custom image</button> |
| 47 | </div> |
| 48 | </div> |