Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
5
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0ad376ca
authored
Aug 22, 2022
by
Karsa Zoltán István
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
permissions
parent
bdb49d44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
26 deletions
+34
-26
circle/dashboard/templates/dashboard/vm-detail/cloudinit.html
+34
-26
No files found.
circle/dashboard/templates/dashboard/vm-detail/cloudinit.html
View file @
0ad376ca
...
@@ -2,31 +2,38 @@
...
@@ -2,31 +2,38 @@
{% load sizefieldtags %}
{% load sizefieldtags %}
{% load crispy_forms_tags %}
{% load crispy_forms_tags %}
{% load static %}
{% load static %}
{% if is_operator %}
{% if instance.cloud_init %}
{% if instance.cloud_init %}
{% include "dashboard/_ci-data-help.html" %}
{% include "dashboard/_ci-data-help.html" %}
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"col-sm-12"
>
<h3>
<h3>
{% trans "Cloud-init" %}
{% trans "Cloud-init" %}
</h3>
</h3>
<script
src=
"{% static 'dashboard/js/ace/ace.js' %}"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"{% static 'dashboard/js/ace/ace.js' %}"
type=
"text/javascript"
charset=
"utf-8"
></script>
<form
method=
"POST"
action=
"{{ op.cloudinit_change.get_url }}"
id=
"resource-cidata-form"
>
<form
method=
"POST"
action=
"{{ op.cloudinit_change.get_url }}"
id=
"resource-cidata-form"
>
{% csrf_token %}
{% csrf_token %}
{{ ci_data.ci_meta_data|as_crispy_field }}
{{ ci_data.ci_meta_data|as_crispy_field }}
<div
id=
"ace-meta-data"
style=
"border: 1px solid #ccc;"
></div>
<div
id=
"ace-meta-data"
style=
"border: 1px solid #ccc;"
></div>
<div
style=
"height: 160px;"
></div>
<div
style=
"height: 160px;"
></div>
{{ ci_data.ci_user_data|as_crispy_field }}
{{ ci_data.ci_user_data|as_crispy_field }}
<div
id=
"ace-user-data"
style=
"border: 1px solid #ccc;"
></div>
<div
id=
"ace-user-data"
style=
"border: 1px solid #ccc;"
></div>
<div
style=
"height: 360px;"
></div>
<div
style=
"height: 360px;"
></div>
<button
type=
"submit"
class=
"btn btn-success btn-sm change-resources-button"
<button
type=
"submit"
class=
"btn btn-success btn-sm change-resources-button"
id=
"vm-details-cidata-save"
data-vm=
"{{ instance.pk }}"
id=
"vm-details-cidata-save"
data-vm=
"{{ instance.pk }}"
{%
if
not
save_resources_enabled
%}
disabled
{%
endif
%}
>
{%
if
not
save_resources_enabled
%}
disabled
{%
endif
%}
>
<i
class=
"fa fa-floppy-o"
></i>
{% trans "Validate
&
Save" %}
<i
class=
"fa fa-floppy-o"
></i>
{% trans "Validate
&
Save" %}
</button>
</button>
{% if not save_resources_enabled %} Stop your VM to change cloud-init options.{% endif %}
</form>
</form>
</div>
</div>
</div>
</div>
{% else %}
<div
class=
"alert alert-warning"
>
{% trans "Cloud-init is inactive" %}
</div>
{% endif %}
{% else %}
{% else %}
<p>
Cloud-init is inactive
</p>
<div
class=
"alert alert-warning"
>
{% trans "You are not authorized to access the cloud-init options." %}
</div>
{% endif %}
{% endif %}
\ No newline at end of file
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