partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

UserEditorComponent.js (886B)


      1 Ext.define('PartKeepr.UserEditorComponent', {
      2     extend: 'PartKeepr.EditorComponent',
      3     alias: 'widget.UserEditorComponent',
      4     navigationClass: 'PartKeepr.UserGrid',
      5     editorClass: 'PartKeepr.UserEditor',
      6     newItemText: i18n("New User"),
      7     deleteMessage: i18n("Do you really wish to delete the user '%s'?"),
      8     deleteTitle: i18n("Delete User"),
      9 
     10     model: 'PartKeepr.AuthBundle.Entity.User',
     11 
     12     titleProperty: 'username',
     13 
     14     initComponent: function ()
     15     {
     16         this.createStore({
     17             sorters: [
     18                 {
     19                     property: 'username',
     20                     direction: 'ASC'
     21                 }
     22             ],
     23             autoLoad: false
     24         });
     25 
     26         this.callParent();
     27     },
     28     statics: {
     29         iconCls: 'fugue-icon user',
     30         title: i18n('Users'),
     31         closable: true,
     32         menuPath: [{text: i18n("Edit")}]
     33     }
     34 });