aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/templates/oauth2/data-list.html
blob: ebe00843a2658be8f6aabe6e94ae8939fcd3cda9 (about) (plain)
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
{%extends "base.html"%}
{%from "oauth2/profile_nav.html" import profile_nav%}
{%from "oauth2/display_error.html" import display_error%}
{%block title%}View User{%endblock%}
{%block content%}
<div class="container" style="min-width: 1250px;">
  {{profile_nav("data")}}

  {{flash_me()}}

  <div class="container-fluid">
    <div class="row">
      <form method="POST" action="#/data/list/items">
	<legend>Link Data to Group</legend>
	<div class="form-group">
	  <label class="form-label" for="sel-group-id">Group</label>
	  <select id="sel-group-id" name="group_id" required="required"
		  {%if groups | count == 0 or groups_error is defined %}
		  disabled="disabled"
		  {%endif%}>
	    <option value="">Select Group</option>
	    {%for group in groups %}
	    <option value="{{group.group_id}}">{{group.group_name}}</option>
	    {%endfor%}
	  </select>
	  {%if groups_error is defined%}
	  {{display_error("Groups Error", groups_error)}}
	  {%endif%}
	</div>

	<input type="submit" value="Next" class="btn btn-primary" />
      </form>
    </div>
  </div>

</div>
{%endblock%}