This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 230
/
create.html
62 lines (48 loc) · 2.29 KB
/
create.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
<h3>Create new project</h3>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default" ng-show="composeRegistry">
<div class="panel-heading">create project from template</div>
<div class="panel-body">
<form class="form-inline" ng-submit="search(query)">
<div class="form-group">
<input type="text" ng-model="query" class="form-control" id="query" placeholder="search for an application stack" required>
</div>
<button type="submit" class="btn btn-primary">search</button>
<ul class="list-unstyled search-items">
<li ng-repeat="item in items">
<button class="btn btn-link" ng-click="load(item.name, item.id)">{{item.name}} <span ng-hide="composeRegistry"> by {{item.owner}}</span></button>{{item.stars}} <i ng-hide="composeRegistry" class="glyphicon glyphicon-star"></i>
<a ng-hide="composeRegistry" ng-href="{{composeRegistry}}/details?id={{item.id}}" target="_blank" class="btn btn-xs btn-info">info</a>
</li>
</ul>
<strong ng-hide="items.length">no items found</strong>
</form>
search provided by <a ng-href="{{composeRegistry}}">{{composeRegistry}}</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">project metadata</div>
<div class="panel-body project-wizard">
<form class="form-horizontal" ng-submit="createProject(name, yml, env)">
<div class="form-group">
<label for="projectName">Name</label>
<input type="text" ng-model="name" class="form-control" id="projectName" placeholder="Project Name" required>
</div>
<div class="form-group">
<label for="yml">YML Content</label>
<textarea class="form-control" ng-model="yml" id="yml" rows="20" required></textarea>
</div>
<div class="form-group">
<label for="yml">Environment Variables</label>
<textarea class="form-control" ng-model="env" id="env" rows="20"></textarea>
</div>
<button type="submit" class="btn btn-primary">Create new project</button>
</form>
</div>
</div>
</div>
</div>