Browse Source

remove cruft not necessary anymore with the new pk option stuff

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
db103328e7
  1. 22
      pyweb/mumble/templates/mumble/mumble.html

22
pyweb/mumble/templates/mumble/mumble.html

@ -23,19 +23,6 @@
Ext.onReady( function(){ Ext.onReady( function(){
Ext.QuickTips.init(); 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({ var mainpanel = new Ext.Panel({
renderTo: "ext_container", renderTo: "ext_container",
height: 600, height: 600,
@ -50,10 +37,14 @@
xtype: "tabpanel", xtype: "tabpanel",
region: "center", region: "center",
activeTab: 0, activeTab: 0,
items: [/*{
items: [{
title: gettext("Registration"), title: gettext("Registration"),
xtype: "{{ RegForm|lower }}", xtype: "{{ RegForm|lower }}",
}*/ userform, {
pk: {{ MumbleAccount.id }},
submit: function(){
this.getForm().submit({ params: {serverid: {{MumbleServer.id}}, pk: this.pk } });
},
}, {
title: gettext("Administration"), title: gettext("Administration"),
pk: {{ MumbleServer.id }}, pk: {{ MumbleServer.id }},
xtype: 'mumbleform', xtype: 'mumbleform',
@ -95,7 +86,6 @@
} ], } ],
}], }],
}); });
adminform.getForm().load({ params: {pk: {{ MumbleServer.id }} } });
} ); } );
</script> </script>
{% endblock %} {% endblock %}
Loading…
Cancel
Save