|
|
@ -119,19 +119,70 @@ |
|
|
|
xtype: "{{ RegForm|lower }}", |
|
|
|
pk: {% if MumbleAccount %}{{ MumbleAccount.id }}{% else %}-1{% endif %}, |
|
|
|
labelWidth: 150, |
|
|
|
baseParams: {serverid: {{MumbleServer.id}} } |
|
|
|
baseParams: {serverid: {{MumbleServer.id}} }, |
|
|
|
{% if not MumbleAccount %} |
|
|
|
listeners: { |
|
|
|
submitSuccess: function( form, action ){ |
|
|
|
window.location.reload(); |
|
|
|
} |
|
|
|
} |
|
|
|
{% else %} |
|
|
|
listeners: { |
|
|
|
submitSuccess: function( form, action ){ |
|
|
|
form.savetip = new Ext.ToolTip({ |
|
|
|
id: 'content-anchor-tip', |
|
|
|
target: '{{ RegForm }}_submit', |
|
|
|
anchor: 'right', |
|
|
|
html: gettext("Saved successfully."), |
|
|
|
width: 150, |
|
|
|
autoHide: true, |
|
|
|
listeners: { |
|
|
|
hide: function( ttip ){ |
|
|
|
form.savetip.destroy(); |
|
|
|
form.savetip = null; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
form.savetip.show(); |
|
|
|
} |
|
|
|
} |
|
|
|
{% endif %} |
|
|
|
}, |
|
|
|
{% if IsAdmin %} |
|
|
|
{ |
|
|
|
title: gettext("Administration"), |
|
|
|
pk: {{ MumbleServer.id }}, |
|
|
|
labelWidth: 150, |
|
|
|
xtype: 'mumbleform' |
|
|
|
xtype: 'mumbleform', |
|
|
|
listeners: { |
|
|
|
submitSuccess: function( form, action ){ |
|
|
|
form.savetip = new Ext.ToolTip({ |
|
|
|
id: 'content-anchor-tip', |
|
|
|
target: 'MumbleForm_submit', |
|
|
|
anchor: 'right', |
|
|
|
html: gettext("Saved successfully."), |
|
|
|
width: 150, |
|
|
|
autoHide: true, |
|
|
|
listeners: { |
|
|
|
hide: function( ttip ){ |
|
|
|
form.savetip.destroy(); |
|
|
|
form.savetip = null; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
form.savetip.show(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{% endif %} |
|
|
|
{% if MumbleAccount %} |
|
|
|
{ |
|
|
|
title: gettext("User texture"), |
|
|
|
{% if MumbleServer|mmversion_eq:"1.2.2" %} |
|
|
|
html: gettext( |
|
|
|
'Sorry, due to a bug in Murmur 1.2.2, displaying and setting the Texture is disabled.' |
|
|
|
) |
|
|
|
{% else %} |
|
|
|
layout: "border", |
|
|
|
items: [{ |
|
|
|
region: "north", |
|
|
@ -181,6 +232,7 @@ |
|
|
|
} |
|
|
|
}] |
|
|
|
}] |
|
|
|
{% endif %} |
|
|
|
}, |
|
|
|
{% endif %} |
|
|
|
{% if IsAdmin %} |
|
|
|