added admin flag to user

This commit is contained in:
Sebastian Sdorra
2010-11-25 18:57:21 +01:00
parent 823c7e0bd4
commit afc56635ea
5 changed files with 48 additions and 5 deletions

View File

@@ -65,6 +65,7 @@ Sonia.rest.Grid = Ext.extend(Ext.grid.GridPanel, {
urlTemplate: '<a href="{0}" target="_blank">{0}</a>',
mailtoTemplate: '<a href="mailto: {0}">{0}</a>',
checkboxTemplate: '<input type="checkbox" disabled="true" {0}/>',
initComponent: function(){
@@ -118,6 +119,14 @@ Sonia.rest.Grid = Ext.extend(Ext.grid.GridPanel, {
renderMailto: function(mail){
return String.format( this.mailtoTemplate, mail );
},
renderCheckbox: function(value){
var param = "";
if ( value ){
param = "checked='checked' ";
}
return String.format( this.checkboxTemplate, param );
}
});