user-new-application.html 2.27 KB
Newer Older
1
2
{% extends 'logged_layout.html' %}

3
{% block title %} Administration - {{ user }} - New Application - HPC&A IoT {% endblock %}
4
5
6
7
8
9

{% block location %} 
<a class="h4 mb-0 text-white text-uppercase d-none d-lg-inline-block" href="/administration">Administration</a>
<p class="h4 mb-0 text-white text-uppercase d-none d-lg-inline-block"> &nbsp;-&nbsp; </p>
<a class="h4 mb-0 text-white text-uppercase d-none d-lg-inline-block" href="/administration/users">Users</a> 
<p class="h4 mb-0 text-white text-uppercase d-none d-lg-inline-block"> &nbsp;-&nbsp; </p>
10
<a class="h4 mb-0 text-white text-uppercase d-none d-lg-inline-block" href="/administration/{{ user }}">{{ user }}</a> 
11
<p class="h4 mb-0 text-white text-uppercase d-none d-lg-inline-block"> &nbsp;-&nbsp; </p>
12
<a class="h4 mb-0 text-white text-uppercase d-none d-lg-inline-block" href="/administration/{{ user }}/applications">Applications</a> 
13
14
15
16
17
18
19
20
21
22
23
24
25
{% endblock %}

{% block body %}
    <!-- Page content -->
    <div class="container-fluid mt--7">
      <!-- Table -->
      <div class="row">
        <div class="col">
          <div class="card shadow">
            <div class="card-header bg-transparent">
              <h3 class="mb-0">New Application</h3>
            </div>
            <div class="card-body">
26
		<form action="/administration/{{ user }}/new-application" method="post">
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
			<div class="form-group">
				<label>Name:</label><br>
				<input type="text" maxlength="30" class="form-control" id="appname" name="appname" required><br>
			</div>
			<div class="form-group">
				<label>Description:</label><br>
				<textarea id="appdesc" maxlength="200" class="form-control" name="appdesc" rows="5"></textarea>
			</div>
			<br>
			<div class="custom-control custom-control-alternative custom-checkbox">
			  <input class="custom-control-input" id="secure" type="checkbox" name="secure">
			  <label class="custom-control-label" for="secure">
			    <span class="text-muted">Secure</span>
			  </label>
			</div>
			<br>
			<p> Note, if you use secure option, make sure your device uses aes128 ctr with the corresponding key.</p>
			
			<br>
			<div class="form-group">
47
				<button type="submit" class="btn btn-primary">Create Application for {{ user }}</button>
48
49
50
51
52
53
54
55
			</div>
		</form>

            </div>
          </div>
        </div>
      </div>
{% endblock %}