summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 572b784..8f94cad 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -1312,7 +1312,9 @@ def action_client_add():
if r.status_code != requests.codes.ok:
return ogserver_error('scopes')
- available_modes = [(mode, mode) for mode in r.json()['modes']]
+ available_modes = [(mode, mode) for mode in r.json()['modes'] if mode == 'pxe']
+ available_modes.extend([(mode, mode) for mode in r.json()['modes'] if mode != 'pxe'])
+
form.boot.choices = list(available_modes)
form.mac.render_kw = {'placeholder': 'aabbccddeeaa'}
@@ -1344,7 +1346,7 @@ def action_client_add():
form.submit.render_kw = {"formaction": url_for('action_client_add')}
scopes, clients = get_scopes()
- return render_template('actions/client_details.html', form=form,
+ return render_template('actions/client_add.html', form=form,
parent="scopes.html", scopes=scopes)
PLACEHOLDER_TEXT = '''host example1 { hardware ethernet 94:c6:91:a6:25:1a; fixed-address 10.141.10.100; }