forked from Shikaga/JiraAgileCardMaker
-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
99 lines (92 loc) · 5.86 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html>
<head>
<title>Jira Ticket Generator</title>
<meta charset="utf-8">
<script type="text/javascript" src="src/SelectUtilities.js"></script>
<script type="text/javascript" src="src/CardView.js"></script>
<script type="text/javascript" src="src/App.js"></script>
<script type="text/javascript" src="src/JiraApiHandler.js"></script>
<script type="text/javascript" src="src/Card.js"></script>
<script type="text/javascript" src="src/IssueChecklistHandler.js"></script>
<script type="text/javascript" src="src/navigators/JiraNavigator.js"></script>
<script type="text/javascript" src="src/RapidBoardHandler.js"></script>
<script type="text/javascript" src="src/navigators/FixVersionNavigator.js"></script>
<script type="text/javascript" src="src/navigators/RapidBoardNavigator.js"></script>
<script type="text/javascript" src="src/navigators/CSVNavigator.js"></script>
<script type="text/javascript" src="src/navigators/XBoardNavigator.js"></script>
<script type="text/javascript" src="src/JiraApi.js"></script>
<script type="text/javascript" src="src/JiraCommunicationHandler.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="lib/knockout.js"></script>
<script type="text/javascript" src="lib/Cookies.js"></script>
<script type="text/javascript" src="lib/Keymaster.js"></script>
<script type="text/javascript" src="lib/MyLambda.js"></script>
<script type="text/javascript" src="lib/Underscore.js"></script>
<link rel="stylesheet" type="text/css" href="styles/style.css">
<link rel="stylesheet" type="text/css" href="styles/ticket-default.css">
</head>
<body>
<div id="tickets"></div>
<div>
<div style="min-height:100%" id="ticketManager">
<h1>Jira Ticket Generator</h1>
<div id="optionsPanel">
<!--<h2>Wizard</h2>
<input id="wizard" /><button onclick="wizard()">Wizard</button>-->
<div style="width: 50%">
<div id = "example-card">
</div>
</div>
<button id="toggleOptionsButton" onclick="toggleOptions()">Show Options</button>
<div id="stageFour" style="display:none">
<h2>Options</h2>
<ul>
<li>Color Enabled: <input checked type="checkbox" id="color" onclick="drawExampleCard()" /></li>
<li>QR Code Enabled: <input checked type="checkbox" id="qrcode" onclick="drawExampleCard()" /></li>
<li>Show Parent Description: <input checked type="checkbox" id="parentdescription" onclick="drawExampleCard()"/></li>
<li>Show Component Description: <input checked type="checkbox" id="componentdescription" onclick="drawExampleCard()" /></li>
<li>Show Tag Description: <input type="checkbox" id="tagdescription" onclick="drawExampleCard()"/></li>
<li>Show Business Value: <input type="checkbox" id="businessvalue" onclick="drawExampleCard()"/></li>
<li>Show Epics: <input type="checkbox" id="epicsEnabled" onclick="drawExampleCard()"/></li>
</ul>
</div>
</div>
<div id="stageOne">
<li>Using Jira On Demand?<input type="checkbox" id="jiraOnDemand"/></li>
<h2>Set your Jira Location</h2>
Username: <input id="username" value=""/><br />
Password: <input type="password" id="password" value=""/><br />
Jira Location : <input id="jiraLocation" style="width:300px"/><button onclick="updateJiraNavigator()">Go</button>
<br />
Examples : <button onclick="setJiraLocation('https://jira.caplin.com')">Caplin (private)</button>
<button onclick="setJiraLocation('https://jira.secondlife.com')">Second Life</button>
<button onclick="setJiraLocation('http://jira.codehaus.org')">CodeHaus</button>
</div>
<div id="stageTwo" style="display:none">
<h2>Select Jiras</h2>
<select id="selectionMethod" data-bind="visible: selectionMethod.visible, options: selectionMethod.options, optionsText: 'text', value: selectionMethod.value, event: {change: selectionMethod.change}"></select>
<select id="projectsDropDown" data-bind="visible: projectsDropDown.visible, options: projectsDropDown.options, optionsText: 'text', value: projectsDropDown.value, event: {change: projectsDropDown.change}"></select>
<select id="sprintsDropDown" data-bind="visible: sprintsDropDown.visible, options: sprintsDropDown.options, optionsText: 'text', value: sprintsDropDown.value, event: {change: sprintsDropDown.change}"></select>
<select id="rapidBoardsDropDown" data-bind="visible: rapidBoardsDropDown.visible, options: rapidBoardsDropDown.options, optionsText: 'text', value: rapidBoardsDropDown.value, event: {change: rapidBoardsDropDown.change}"></select>
<select id="rapidBoardSprintsDropDown" data-bind="visible: rapidBoardSprintsDropDown.visible, options: rapidBoardSprintsDropDown.options, optionsText: 'text', value: rapidBoardSprintsDropDown.value, event: {change: rapidBoardSprintsDropDown.change}"></select>
<input id="csvJiras" data-bind="visible: csvJirasField.visible, value: csvJirasField.value, valueUpdate: 'afterkeydown', event: {keyup: csvJirasField.change}" />
<select id="xBoardDropDown" data-bind="visible: xBoardDropDown.visible, options: xBoardDropDown.options, optionsText: 'text', value: xBoardDropDown.value, event: {change: xBoardDropDown.change}"></select>
<select id="xBoardSprints" data-bind="visible: xBoardSprintsDropDown.visible, options: xBoardSprintsDropDown.options, optionsText: 'text', value: xBoardSprintsDropDown.value, event: {change: xBoardSprintsDropDown.change}"></select>
<div id="jiraNavigator"></div>
</div>
<div id="stageThree" style="float:left; width: 50%; display:none">
<h1>Jira List</h1>
<div class="list" id="jiraList">
<ul id="jiraListUrl">
</ul>
</div>
<button onClick="generateTickets()">Generate!</button>
</div>
<div id="loading" style="display:none"><br />Loading...</div>
<div style="clear:both"></div>
</div>
</div>
</body>
<script type="text/javascript" src="src/Main.js"></script>
</html>