From db103328e79f418634c3d741cfe3e220b2ba11aa Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Fri, 23 Jul 2010 12:30:27 +0200 Subject: [PATCH] remove cruft not necessary anymore with the new pk option stuff --- pyweb/mumble/templates/mumble/mumble.html | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/pyweb/mumble/templates/mumble/mumble.html b/pyweb/mumble/templates/mumble/mumble.html index 4ae1802..44ce1af 100644 --- a/pyweb/mumble/templates/mumble/mumble.html +++ b/pyweb/mumble/templates/mumble/mumble.html @@ -23,19 +23,6 @@ Ext.onReady( function(){ Ext.QuickTips.init(); - var userform = new Ext.ux.MumbleUserForm({ - title: gettext("Registration"), - pk: {{ MumbleAccount.id }}, - submit: function(){ - this.getForm().submit({ params: {serverid: {{MumbleServer.id}}, pk: this.pk } }); - }, - }); - - var adminform = new Ext.ux.MumbleForm({ - title: gettext("Administration"), - pk: {{ MumbleServer.id }}, - }); - var mainpanel = new Ext.Panel({ renderTo: "ext_container", height: 600, @@ -50,10 +37,14 @@ xtype: "tabpanel", region: "center", activeTab: 0, - items: [/*{ + items: [{ title: gettext("Registration"), xtype: "{{ RegForm|lower }}", - }*/ userform, { + pk: {{ MumbleAccount.id }}, + submit: function(){ + this.getForm().submit({ params: {serverid: {{MumbleServer.id}}, pk: this.pk } }); + }, + }, { title: gettext("Administration"), pk: {{ MumbleServer.id }}, xtype: 'mumbleform', @@ -95,7 +86,6 @@ } ], }], }); - adminform.getForm().load({ params: {pk: {{ MumbleServer.id }} } }); } ); {% endblock %}