blob: 4487b3ea0815bbe68b88bdf62db095ad05c7d860 [file] [log] [blame]
Patrick Williamsf1e5d692016-03-30 15:21:19 -05001{% extends "base.html" %}
2{% load projecttags %}
3{% load humanize %}
4{% load static %}
5{% block pagecontent %}
6
7<script src="{% static 'js/newcustomimage.js' %}"></script>
8<script>
9 $(document).ready(function (){
10 var ctx = {
11 xhrCustomRecipeUrl : "{% url 'xhr_customrecipe' %}",
12 };
13
14 try {
15 newCustomImagePageInit(ctx);
16 } catch (e) {
17 document.write("Sorry, An error has occurred loading this page");
18 console.warn(e);
19 }
20 });
21</script>
22
23</script>
24<div class="modal hide fade in" id="new-custom-image-modal" aria-hidden="false">
25 <div class="modal-header">
26 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
27 <h3>Name your custom image</h3>
28 </div>
29 <div class="modal-body">
30 <div class="row-fluid">
31 <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>
32 </span></div>
33 <div class="control-group controls">
34 <input type="text" class="huge span5" placeholder="Type the name, something like 'core-image-myimage'">
35 <span class="help-block" style="display:none">Image names cannot contain spaces or capital letters. The only allowed special character is dash (-)</span>
36 <span class="help-block" style="display: none">An image with this name already exists. Image names must be unique: try a different one.</span>
37 </div>
38 </div>
39 <div class="modal-footer">
40 <a href="#" id="create-new-custom-image-btn" class="btn btn-primary btn-large" data-original-title="" title="">Create custom image</a>
41 </div>
42</div>
43
44{% include "projecttopbar.html" %}
45
46
47{% url table_name project.id as xhr_table_url %}
48{% include "toastertable.html" %}
49
50
51
52{% endblock %}
53
54