Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
842b98c9
authored
Jul 22, 2014
by
Guba Sándor
Committed by
Őry Máté
Jul 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
circle: add template to VmRawDataUpdate
parent
634feebd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
circle/dashboard/templates/dashboard/vm-detail/raw_data.html
+24
-0
circle/dashboard/views.py
+1
-0
No files found.
circle/dashboard/templates/dashboard/vm-detail/raw_data.html
0 → 100644
View file @
842b98c9
{% extends "dashboard/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block title-page %}{% trans "Edit raw data" %}{% endblock %}
{% block content %}
<div
class=
"row"
>
<div
class=
"col-md-7"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h3
class=
"no-margin"
><i
class=
"fa fa-time"
></i>
{% trans "Edit raw data" %}
</h3>
</div>
<div
class=
"panel-body"
>
{% with form=form %}
{% include "display-form-errors.html" %}
{% endwith %}
{% crispy form %}
</div>
</div>
</div>
</div>
{% endblock %}
circle/dashboard/views.py
View file @
842b98c9
...
@@ -468,6 +468,7 @@ class VmTraitsUpdate(SuperuserRequiredMixin, UpdateView):
...
@@ -468,6 +468,7 @@ class VmTraitsUpdate(SuperuserRequiredMixin, UpdateView):
class
VmRawDataUpdate
(
SuperuserRequiredMixin
,
UpdateView
):
class
VmRawDataUpdate
(
SuperuserRequiredMixin
,
UpdateView
):
form_class
=
RawDataForm
form_class
=
RawDataForm
model
=
Instance
model
=
Instance
template_name
=
'dashboard/vm-detail/raw_data.html'
def
get_success_url
(
self
):
def
get_success_url
(
self
):
return
self
.
get_object
()
.
get_absolute_url
()
+
"#resources"
return
self
.
get_object
()
.
get_absolute_url
()
+
"#resources"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment