summaryrefslogtreecommitdiffstats
path: root/webui_templates/profile_edit.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'webui_templates/profile_edit.tmpl')
-rw-r--r--webui_templates/profile_edit.tmpl18
1 files changed, 17 insertions, 1 deletions
diff --git a/webui_templates/profile_edit.tmpl b/webui_templates/profile_edit.tmpl
index 2dbeb7e..1fc3df8 100644
--- a/webui_templates/profile_edit.tmpl
+++ b/webui_templates/profile_edit.tmpl
@@ -3,7 +3,6 @@
#block body
<form method="post" action="$base_url/profile_save">
<fieldset id="cform">
- <legend>Edit a Profile</legend>
<!--
cobbler profile add -name=string -distro=string [-kickstart=url]
@@ -11,6 +10,15 @@
[-virt-ram=megabytes] [-virt-type=string] [-virt-path=string]
-->
+ #if $profile
+ <legend>Editing Profile</legend>
+ <input type="hidden" name="new_or_edit" value="edit"/>
+ #else
+ <legend>Adding a Profile</legend>
+ <input type="hidden" name="new_or_edit" value="new"/>
+ #end if
+
+
<label for="name">Profile Name</label>
<input type="text" size="32" style="width: 150px;" name="name" id="name"
#if $profile
@@ -107,6 +115,14 @@
/>
<br/>
+ #if $profile
+ <label for="delete">Delete</label>
+ <input type="checkbox" name="delete1" value="delete1">Yes
+ <input type="checkbox" name="delete2" value="delete2">Really
+ <br/>
+ #end if
+
+
<input type="submit" name="submit" value="Save"/>
<input type="reset" name="reset" value="Reset"/>