Skip to main content
summaryrefslogtreecommitdiffstats
blob: 74ace2730cc41f767349cbad3352bf86b2557048 (plain) (blame)
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"></meta>
<meta http-equiv="X-UA-Compatible" content="IE=edge"></meta>
<meta name="viewport" content="width=device-width, initial-scale=1"></meta>

<link rel="stylesheet" type="text/css"
	href="/ajax/libs/bootstrap/3.3.2/css/bootstrap.min.css"></link>

<title>OSEE - ORCS Writer</title>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
      <script src="/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="/ajax/libs/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body ng-app="OrcsWriterApp" ng-controller="FormController">

	<nav class="navbar navbar-default" role="navigation">
		<div class="container-fluid">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse"
					data-target="#bs-example-navbar-collapse-1">
					<span class="sr-only">Toggle navigation</span> <span
						class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="../ui/main.html">OSEE - ORCS
					Writer</a>
			</div>
			<div class="collapse navbar-collapse" ng-controller="FormController">
				<ul class="nav navbar-nav navbar-right">
					<li ng-class="home"><a href="../ui/main.html">Home</a></li>
				</ul>
			</div>
		</div>
	</nav>

	<div class="container">
		<p>
			<b> ORCS Writer provides Create, Update and Delete capabilities
				through JSON or an Excel spreadsheet.<br />
				<ul>
					<li>Download an <a href="../sheet">Example Excel Workbook</a>
						OR <a href="../sheet.json">Example JSON</a> to get started.
					</li>
					<li>Make modifications to the input. CREATE, MODIFY and DELETE
						tabs/structures are the only items that will be read. Token and
						Type tabs/structures are for reference only and should be used in
						the CREATE, MODIFY and DELETE tabs/structures.</li>
					<li>Enter JSON below or Choose File to import from Excel Workbook XML file.</li>
					<li>Click Validate to confirm that input is valid.</li>
					<li>Click Execute to make changes and persist to OSEE.</li>
				</ul>
			</b>
		</p>
	</div>

	<div class="container">
		<label>Input: </label><br /><br />
		<div class="form-group">
			<label><input type="file" ng-model-instant id="fileToUpload"
				single onchange="angular.element(this).scope().setFiles(this)" /> </label>
			<br /> <br /> <label><b>OR paste JSON</b></label><br />
			<textarea class="form-control" rows="6" placeholder="json"
				ng-model="formData.json"
				title="Paste ORCS JSon in text area. Click button to execute."></textarea>
		</div>
	</div>

	<div class="container">
		<div class="form-group">
			<button type="button" class="btn btn-primary" ng-click="validate()">Validate</button>
			<button type="submit" class="btn btn-primary" ng-click="execute()">Execute</button>
		</div>

		<div class="container-fluid well" ng-show="message">
			<textarea rows="30" class="form-control">{{ message }}</textarea>
		</div>

		<script src="/ajax/libs/angularjs/1.2.28/angular.min.js"></script>
		<script src="orcsWriter.js"></script>
</body>
</html>

Back to the top