mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Add new forms and templates
This commit is contained in:
parent
00b4d751ad
commit
ed2b28c25e
12 changed files with 263 additions and 25 deletions
|
@ -47,6 +47,9 @@ def secrets(request, compute_id):
|
|||
data = form.cleaned_data
|
||||
conn.create_secret(data['ephemeral'], data['private'], data['usage_type'], data['data'])
|
||||
return HttpResponseRedirect(request.get_full_path())
|
||||
else:
|
||||
for msg_err in form.errors.values():
|
||||
error_messages.append(msg_err.as_text())
|
||||
if 'delete' in request.POST:
|
||||
uuid = request.POST.get('uuid', '')
|
||||
conn.delete_secret(uuid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue