Browse Source

use the "pk" config option

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

28
pyweb/mumble/templates/mumble/mumble.html

@ -23,19 +23,17 @@
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"),
buttons: [{
text: "doit",
handler: function( btn ){
this.ownerCt.ownerCt.getForm().load({ params: {pk: {{ MumbleServer.id }} } });
}
}, {
text: "submit",
handler: function( btn ){
this.ownerCt.ownerCt.getForm().submit({ params: {pk: {{ MumbleServer.id }} } });
}
}]
pk: {{ MumbleServer.id }},
});
var mainpanel = new Ext.Panel({
@ -52,10 +50,14 @@
xtype: "tabpanel",
region: "center",
activeTab: 0,
items: [{
items: [/*{
title: gettext("Registration"),
xtype: "{{ RegForm|lower }}",
}, adminform, {
}*/ userform, {
title: gettext("Administration"),
pk: {{ MumbleServer.id }},
xtype: 'mumbleform',
}, {
title: gettext("User texture"),
layout: "border",
items: [{

Loading…
Cancel
Save