diff options
Diffstat (limited to 'app/views/backends/terraform_libvirt/new.html.erb')
-rw-r--r-- | app/views/backends/terraform_libvirt/new.html.erb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/app/views/backends/terraform_libvirt/new.html.erb b/app/views/backends/terraform_libvirt/new.html.erb new file mode 100644 index 0000000..ead1f74 --- /dev/null +++ b/app/views/backends/terraform_libvirt/new.html.erb @@ -0,0 +1,43 @@ +<a href="<%= setup_path %>" class="btn btn-lg btn-primary pull-right"> + Back to setup +</a> + +<h1>Create a new libvirt backend</h1> + +<div class="row"> + <div class="col-md-8"> + <%= form_with(model: @backend, + url: { action: "create" }, + html: { class: "form-horizontal" }) do |f| + %> + + <div class="form-group form-group-lg"> + <%= f.label :label, class: 'col-sm-2 control-label' %> + <div class="col-sm-10"> + <%= f.text_field( + :label, + class: 'form-control', + placeholder: 'Label for this backend' + ) %> + </div> + </div> + + <div class="form-group form-group-lg"> + <%= f.label :uri, 'URI', class: 'col-sm-2 control-label' %> + <div class="col-sm-10"> + <%= f.text_field( + :uri, + class: 'form-control', + placeholder: 'Specify what driver to use, and how to connect to it' + ) %> + </div> + </div> + + <div class="form-group form-group-lg"> + <div class="col-sm-offset-2 col-sm-10"> + <%= f.submit "Create", class: 'btn btn-lg btn-success' %> + </div> + </div> + <% end %> + </div> +</div> |