diff --git a/nodepupper/daemon.py b/nodepupper/daemon.py index 81f40fe..4403a82 100644 --- a/nodepupper/daemon.py +++ b/nodepupper/daemon.py @@ -165,6 +165,8 @@ class NodesWeb(object): c.root.nodes[node].classes[clsname] = NClassAttachment(c.root.classes[clsname], config) elif op == "Add Parent" and parent: c.root.nodes[node].parents.append(c.root.nodes[parent]) + elif op == "detach" and clsname: + del c.root.nodes[node].classes[clsname] else: raise Exception("F") raise cherrypy.HTTPRedirect("/node/{}".format(node), 302) diff --git a/styles/less/main.less b/styles/less/main.less index f3c21ce..0982796 100644 --- a/styles/less/main.less +++ b/styles/less/main.less @@ -246,23 +246,6 @@ a { } } -.tags-picker { - padding: 0; - li { - display: inline-block; - padding-right: 25px; - } - input.submit-link { - padding: 0; - border: 0; - background: none; - color: @linkcolor; - &:hover { - text-decoration: underline; - } - } -} - ul.pager { padding: 0; li { @@ -281,3 +264,17 @@ ul.pager { font-weight: bold; } } + +input.pure-button-inline { + padding: 0; + border: 0; + background: none; + color: @linkcolor; + &:hover { + text-decoration: underline; + } +} + +form.pure-form-inline { + display: inline-block; +} diff --git a/templates/node.html b/templates/node.html index 60d0881..5bfb6f8 100644 --- a/templates/node.html +++ b/templates/node.html @@ -33,8 +33,12 @@
{{ class.conf }}