Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joakimk committed Dec 6, 2024
1 parent 94897d0 commit d7eb0aa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/views/cloud_inits/_form.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
= f.text_field :name

= f.label :data, "Content"
div#editor style="width: 90%; height: 1200px;" = f.object.data
#editor style="width: 90%; height: 1200px;" = f.object.data

= f.text_area :data, id: "cloud_init_data", style: (Rails.env.test? ? "" : "display: none;")

script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.14/ace.js"
script
| var editor = ace.edit("editor");
Expand All @@ -21,7 +20,6 @@
| document.getElementById("cloud_init_data").value = editor.getValue();
| });


p = link_to "Cloud-init docs", "https://cloudinit.readthedocs.io/en/latest/", target: "_blank"
.form-actions
= submit_tag "Save", class: "btn btn-primary"
Expand Down

0 comments on commit d7eb0aa

Please sign in to comment.