From be10c5605d5376a8c5c14a3be5b306bb951fd0f2 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 11 Sep 2007 18:41:35 -0400 Subject: Check in beginings of Cobbler WebUI packaging (thanks: Al Tobey). More work TBA. --- webui_templates/distro_list.tmpl | 35 +++++++++++++++++++++++++ webui_templates/error_page.tmpl | 6 +++++ webui_templates/index.tmpl | 8 ++++++ webui_templates/item.tmpl | 38 +++++++++++++++++++++++++++ webui_templates/ksfile_edit.tmpl | 17 ++++++++++++ webui_templates/ksfile_list.tmpl | 33 +++++++++++++++++++++++ webui_templates/ksfile_view.tmpl | 6 +++++ webui_templates/master.tmpl | 55 +++++++++++++++++++++++++++++++++++++++ webui_templates/profile_add.tmpl | 45 ++++++++++++++++++++++++++++++++ webui_templates/profile_list.tmpl | 33 +++++++++++++++++++++++ webui_templates/system_edit.tmpl | 48 ++++++++++++++++++++++++++++++++++ webui_templates/system_list.tmpl | 35 +++++++++++++++++++++++++ 12 files changed, 359 insertions(+) create mode 100644 webui_templates/distro_list.tmpl create mode 100644 webui_templates/error_page.tmpl create mode 100644 webui_templates/index.tmpl create mode 100644 webui_templates/item.tmpl create mode 100644 webui_templates/ksfile_edit.tmpl create mode 100644 webui_templates/ksfile_list.tmpl create mode 100644 webui_templates/ksfile_view.tmpl create mode 100644 webui_templates/master.tmpl create mode 100644 webui_templates/profile_add.tmpl create mode 100644 webui_templates/profile_list.tmpl create mode 100644 webui_templates/system_edit.tmpl create mode 100644 webui_templates/system_list.tmpl (limited to 'webui_templates') diff --git a/webui_templates/distro_list.tmpl b/webui_templates/distro_list.tmpl new file mode 100644 index 0000000..4654972 --- /dev/null +++ b/webui_templates/distro_list.tmpl @@ -0,0 +1,35 @@ +#extends cobbler.webui.master +#attr $title = "Cobbler: List of Distributions" + +#block body + + + + + + + + + + + #set $evenodd = 1 + #for $distro in $distros + #if $evenodd % 2 == 0 + #set $tr_class = "roweven" + #else + #set $tr_class = "rowodd" + #end if + #set $evenodd += 1 + + + + + + + #end for + +
Cobbler Distributions
NameBreedArch
+ $distro.name + $distro.breed$distro.arch
+#end block body + diff --git a/webui_templates/error_page.tmpl b/webui_templates/error_page.tmpl new file mode 100644 index 0000000..9bf7473 --- /dev/null +++ b/webui_templates/error_page.tmpl @@ -0,0 +1,6 @@ +#extends cobbler.webui.master +#attr $title = "Cobbler: Error" + +#block body +

$message

+#end block body diff --git a/webui_templates/index.tmpl b/webui_templates/index.tmpl new file mode 100644 index 0000000..b249f32 --- /dev/null +++ b/webui_templates/index.tmpl @@ -0,0 +1,8 @@ +#extends cobbler.webui.master + +#block body + +This is my empty index page. + +#end block body + diff --git a/webui_templates/item.tmpl b/webui_templates/item.tmpl new file mode 100644 index 0000000..e06083f --- /dev/null +++ b/webui_templates/item.tmpl @@ -0,0 +1,38 @@ +#extends cobbler.webui.master + +#block body + + + + + + + + #set $evenodd = 1 + #for $key,$value in $item_data.items(): + + #if $evenodd % 2 == 0 + #set $tr_class = "roweven" + #else + #set $tr_class = "rowodd" + #end if + #set $evenodd += 1 + + + + + + #end for + +
$caption
KeyValue
$key + #if isinstance($value,dict): +
    + #for $skey,$sval in $value.items(): +
  • $skey = $sval
  • + #end for +
+ #else + $value + #end if +
+#end block body diff --git a/webui_templates/ksfile_edit.tmpl b/webui_templates/ksfile_edit.tmpl new file mode 100644 index 0000000..a28fe74 --- /dev/null +++ b/webui_templates/ksfile_edit.tmpl @@ -0,0 +1,17 @@ +#extends cobbler.webui.master +#attr $title = "Cobbler: Edit Kickstart File $ksfile" + +#block body +
+ +
+ Edit Kickstart File + +
+
+ + + +
+
+#end block body diff --git a/webui_templates/ksfile_list.tmpl b/webui_templates/ksfile_list.tmpl new file mode 100644 index 0000000..af196ec --- /dev/null +++ b/webui_templates/ksfile_list.tmpl @@ -0,0 +1,33 @@ +#extends cobbler.webui.master + +#block body + + + + + + + + + + #set $evenodd = 1 + #for $ksfile in $ksfiles + #if $evenodd % 2 == 0 + #set $tr_class = "roweven" + #else + #set $tr_class = "rowodd" + #end if + #set $evenodd += 1 + + + + + + #end for + +
Cobbler Kickstart Files
Name
$ksfile +
+#end block body diff --git a/webui_templates/ksfile_view.tmpl b/webui_templates/ksfile_view.tmpl new file mode 100644 index 0000000..b6abf67 --- /dev/null +++ b/webui_templates/ksfile_view.tmpl @@ -0,0 +1,6 @@ +#extends cobbler.webui.master + +#block body +
$ksdata
+#end block body + diff --git a/webui_templates/master.tmpl b/webui_templates/master.tmpl new file mode 100644 index 0000000..5517d9c --- /dev/null +++ b/webui_templates/master.tmpl @@ -0,0 +1,55 @@ + + + +#attr $title = "Cobbler Web Interface" + $title + + + + + + + + +
+

+ + Cobbler Logo + +

+
+ +
+ + + +
+#block body + +

Template Failure

+ +#end block body +
+
+ + + diff --git a/webui_templates/profile_add.tmpl b/webui_templates/profile_add.tmpl new file mode 100644 index 0000000..424e7d9 --- /dev/null +++ b/webui_templates/profile_add.tmpl @@ -0,0 +1,45 @@ +#extends cobbler.webui.master + +#block body +
+
+ Add a Profile + + + + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+#end block body diff --git a/webui_templates/profile_list.tmpl b/webui_templates/profile_list.tmpl new file mode 100644 index 0000000..8699b40 --- /dev/null +++ b/webui_templates/profile_list.tmpl @@ -0,0 +1,33 @@ +#extends cobbler.webui.master + +#block body + + + + + + + + + + + #set $evenodd = 1 + #for $profile in $profiles + #if $evenodd % 2 == 0 + #set $tr_class = "roweven" + #else + #set $tr_class = "rowodd" + #end if + #set $evenodd += 1 + + + + + + + #end for + +
Cobbler Profiles
NameDistributionKS File
$profile.name + $profile.distro + $profile.kickstart
+#end block body diff --git a/webui_templates/system_edit.tmpl b/webui_templates/system_edit.tmpl new file mode 100644 index 0000000..8034bd2 --- /dev/null +++ b/webui_templates/system_edit.tmpl @@ -0,0 +1,48 @@ +#extends cobbler.webui.master + +#block body + +
+ Add a System + + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + Yes No +
+ + + +
+
+#end block body diff --git a/webui_templates/system_list.tmpl b/webui_templates/system_list.tmpl new file mode 100644 index 0000000..8e6d1d8 --- /dev/null +++ b/webui_templates/system_list.tmpl @@ -0,0 +1,35 @@ +#extends cobbler.webui.master + +#block body + + + + + + + + + + + #set $evenodd = 1 + #for $system in $systems + #if $evenodd % 2 == 0 + #set $tr_class = "roweven" + #else + #set $tr_class = "rowodd" + #end if + #set $evenodd += 1 + + + + + + + #end for + +
Cobbler Systems
NameDistribution
${system.name} + ${system.distro} + + edit +
+#end block body -- cgit