summaryrefslogtreecommitdiffstats
path: root/funcweb/funcweb/templates
diff options
context:
space:
mode:
Diffstat (limited to 'funcweb/funcweb/templates')
-rw-r--r--funcweb/funcweb/templates/add_group.html20
-rw-r--r--funcweb/funcweb/templates/glob_form.html13
-rw-r--r--funcweb/funcweb/templates/group_minion.html13
-rw-r--r--funcweb/funcweb/templates/group_small.html27
-rw-r--r--funcweb/funcweb/templates/groups_main.html18
-rw-r--r--funcweb/funcweb/templates/index.html17
-rw-r--r--funcweb/funcweb/templates/list_group.html16
-rw-r--r--funcweb/funcweb/templates/master.html12
-rw-r--r--funcweb/funcweb/templates/minion_small.html28
9 files changed, 149 insertions, 15 deletions
diff --git a/funcweb/funcweb/templates/add_group.html b/funcweb/funcweb/templates/add_group.html
new file mode 100644
index 0000000..3386cbc
--- /dev/null
+++ b/funcweb/funcweb/templates/add_group.html
@@ -0,0 +1,20 @@
+<div class="minioncontent" id="addgroupcontent"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:py="http://genshi.edgewall.org/"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ >
+ <div class="addgroupbigbox" id="addgroupbigbox">
+ <div align="center" class="graytexts">Add Group</div>
+ <div class="graytexts" id="addgroup">
+ <div class="groupnametext" id="groupnametext">Name:</div>
+ <form id="form_addgroup" name="form_addgroup" method="post" onsubmit="return !glob_submit(this, 'groupscontent');" action="/funcweb/add_new_group">
+ <label>
+ <input name="group_name" type="text" class="addgroupbox" id="addgroupfield"/>
+ </label>
+ <label>
+ <input name="submit" type="submit" class="addnewgroupbtn" id="submit" value="ADD" />
+ </label>
+ </form>
+ </div>
+ </div>
+</div>
diff --git a/funcweb/funcweb/templates/glob_form.html b/funcweb/funcweb/templates/glob_form.html
new file mode 100644
index 0000000..8499d56
--- /dev/null
+++ b/funcweb/funcweb/templates/glob_form.html
@@ -0,0 +1,13 @@
+<div class="minionglob" id="minionglob"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:py="http://genshi.edgewall.org/">
+
+ <form action="/funcweb/minions" method="post" onsubmit="return !glob_submit(this,'not_sure');" class="tableform" name="minion_form">
+ <div class="graytexts2" id="minionglobtext">
+ <div align="center">Minion Glob</div>
+ </div>
+ <input name="submit" type="submit" class="minionbutton" id="button" value="submit" border="0"/>
+ <input name="glob" type="text" class="minionbox" id="textfield" />
+ </form>
+</div>
+
diff --git a/funcweb/funcweb/templates/group_minion.html b/funcweb/funcweb/templates/group_minion.html
new file mode 100644
index 0000000..5d9ea7a
--- /dev/null
+++ b/funcweb/funcweb/templates/group_minion.html
@@ -0,0 +1,13 @@
+<div class="graytexts" id="miniongroupsbigbox"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:py="http://genshi.edgewall.org/"
+ xmlns:xi="http://www.w3.org/2001/XInclude">
+
+ <div id="group_small">
+ <xi:include href="group_small.html"/>
+ </div>
+ <div id="minion_small">
+ <xi:include href="minion_small.html"/>
+ </div>
+
+</div>
diff --git a/funcweb/funcweb/templates/group_small.html b/funcweb/funcweb/templates/group_small.html
new file mode 100644
index 0000000..eff3965
--- /dev/null
+++ b/funcweb/funcweb/templates/group_small.html
@@ -0,0 +1,27 @@
+<div class="group" id="group"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:py="http://genshi.edgewall.org/">
+ <div align="center">Group</div>
+ <form action="/funcweb/add_minions_togroup" method="post" onsubmit="return !glob_submit(this,'group_small');" name="group_remove">
+ <div class="groupbox" id="groupbox">
+ <span py:for="host in hosts">
+ <div class="minionstextblue" id="grouptextbox"><span class="minionsandgroupsbluetext">${host}</span>
+ <label>
+ <input type="checkbox" name="rmgroup" id="groupcheckbox" value="${host}"/>
+ </label>
+ </div>
+ </span>
+ </div>
+ <div class="selectallgroupboxes" id="selectallgroupboxes">
+ <input type="hidden" name="action_name" value="remove"/>
+ <input type="hidden" name="group_name" value="${group_name}"/>
+ <span class="graytexts2">Select all:</span>
+ <label>
+ <input type="checkbox" name="groupcheckbox2" id="groupcheckbox2"/>
+ </label>
+ <label>
+ <input name="removegroups" type="submit" class="addnewgroupbtn" id="removegroups" value="Remove" />
+ </label>
+ </div>
+ </form>
+</div>
diff --git a/funcweb/funcweb/templates/groups_main.html b/funcweb/funcweb/templates/groups_main.html
new file mode 100644
index 0000000..5965c47
--- /dev/null
+++ b/funcweb/funcweb/templates/groups_main.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:py="http://genshi.edgewall.org/"
+ xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="master.html"/>
+ <head/>
+ <body>
+ <xi:include href="add_group.html" />
+ <div class="minioncontent" id="groupscontent">
+ <xi:include href="list_group.html" />
+ </div>
+
+ <div class="minioncontent" id="miniongroupcontents">
+ <!-- group_minion ends here -->
+ </div>
+
+ </body>
+</html>
diff --git a/funcweb/funcweb/templates/index.html b/funcweb/funcweb/templates/index.html
index 87c446e..3f3944d 100644
--- a/funcweb/funcweb/templates/index.html
+++ b/funcweb/funcweb/templates/index.html
@@ -6,20 +6,9 @@
<head/>
<body onLoad = "window.setTimeout('check_async_change()',10000);">
- <div class="minionglob" id="minionglob">
- <form action="/funcweb/minions" method="post" onsubmit="return !remoteFormRequest(this, 'minioncontent', {&quot;loading&quot;: null, &quot;confirm&quot;: null, &quot;after&quot;: null, &quot;on_complete&quot;: null, &quot;loaded&quot;: null, &quot;on_failure&quot;: null, &quot;on_success&quot;: null, &quot;before&quot;:&quot;myj('#resultcontent').hide();myj('#widgetcontent').hide();myj('#methotdscontent').hide();myj('#modulescontent').hide();&quot;});" class="tableform" name="minion_form">
-
- <div class="graytexts2" id="minionglobtext">
- <div align="center">Minion Glob</div>
- </div>
- <input name="submit" type="submit" class="minionbutton" id="button" value="submit" border="0"/>
- <input name="glob" type="text" class="minionbox" id="textfield" />
- </form>
- </div>
-
-
- <div class="emptyimagebox" id="emptyimagebox"></div>
- <div class="minioncontent" id="minioncontent">
+ <xi:include href="glob_form.html" />
+ <div class="emptyimagebox" id="emptyimagebox"></div>
+ <div class="minioncontent" id="minioncontent">
<div class="minionsbigbox" id="minionsbigbox" py:if="minions">
<div align="center" class="graytexts">Mininons</div>
<div id="minionstexts" py:for="minion in minions">
diff --git a/funcweb/funcweb/templates/list_group.html b/funcweb/funcweb/templates/list_group.html
new file mode 100644
index 0000000..6c6ce8c
--- /dev/null
+++ b/funcweb/funcweb/templates/list_group.html
@@ -0,0 +1,16 @@
+<div class="groupsbigbox" id="groupsbigbox"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:py="http://genshi.edgewall.org/">
+
+ <div align="center" class="graytexts">Groups</div>
+ <span py:for="group_name in groups">
+ <div class="minionstextblue" id="groupstexts"><a href="#" onclick="myj('#miniongroupcontents').hide().load('/funcweb/list_host_by_group/${group_name}').show('slow');" >${group_name}</a></div>
+ <form action="/funcweb/remove_group" method="post" onsubmit="return !glob_submit(this,'groupscontent');" name="remove_form">
+
+ <input type="hidden" name="group_name" value="${group_name}"/>
+ <span>
+ <input name="removebtn2" type="submit" class="removebtn" id="removebtn" value=""/>
+ </span>
+ </form>
+ </span>
+</div>
diff --git a/funcweb/funcweb/templates/master.html b/funcweb/funcweb/templates/master.html
index 0b5bcae..dc0e962 100644
--- a/funcweb/funcweb/templates/master.html
+++ b/funcweb/funcweb/templates/master.html
@@ -17,6 +17,9 @@
<style type="text/css" media="screen">
@import url("/funcweb/static/css/style.css");
</style>
+ <style type="text/css" media="screen">
+ @import url("/funcweb/static/css/groupscss.css");
+ </style>
<link media="screen" href="/funcweb/static/css/expanding_form.css" type="text/css" rel="stylesheet"/>
<script src="${tg.url('/funcweb/static/javascript/expanding_form.js')}" type="text/javascript"/>
@@ -35,7 +38,14 @@
<div class="underheader" id="underheader"></div>
<div id="menudiv">
<div class="navgation" id="navigaton">
- <span class="lines">|</span><a href="/funcweb/" class="navlinks">Home</a><span class="lines">|</span><a href="/funcweb/display_async_results" class="navlinks">Async Results</a><span class="lines">|</span>
+ <span class="lines">|</span>
+ <a href="/funcweb/" class="navlinks">Home</a>
+ <span class="lines">|</span>
+ <a href="/funcweb/display_async_results" class="navlinks">Async Results</a>
+ <span class="lines">|</span>
+ <a href="/funcweb/groups_main" class="navlinks">Group Management</a>
+ <span class="lines">|</span>
+
</div>
</div>
diff --git a/funcweb/funcweb/templates/minion_small.html b/funcweb/funcweb/templates/minion_small.html
new file mode 100644
index 0000000..b180576
--- /dev/null
+++ b/funcweb/funcweb/templates/minion_small.html
@@ -0,0 +1,28 @@
+<div class="minions2" id="minions2"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:py="http://genshi.edgewall.org/">
+
+ <div align="center">Minions</div>
+ <form action="/funcweb/add_minions_togroup" method="post" onsubmit="return !glob_submit(this,'group_small');" name="minion_merge">
+ <div class="minions2box" id="minions2box">
+ <span py:for="minion in all_minions">
+ <div class="minionstextbox" id="minionstextbox"><span class="minionsandgroupsbluetext">${minion}</span>
+ <label>
+ <input type="checkbox" class = "checkminion" name="checkminion" id="checkminion" value="${minion}"/>
+ </label>
+ </div>
+ </span>
+ </div>
+ <div class="graytexts2" id="selectallbox"> Select all:
+ <label>
+ <input type="checkbox" name="groupcheckbox2" id="groupcheckbox2" />
+ </label>
+
+ <input type="hidden" name="group_name" value="${group_name}"/>
+ <input type="hidden" name="action_name" value="add"/>
+ <label>
+ <input name="addbtn" type="submit" class="addnewgroupbtn" id="addbtn" value="Add" />
+ </label>
+ </div>
+ </form>
+</div>