2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FEATURE: Admin interface for adding custom fields for users

This commit is contained in:
Robin Ward 2014-09-25 11:32:08 -04:00
parent a3e2e1fa6e
commit 0fc0533134
23 changed files with 482 additions and 2 deletions

View file

@ -0,0 +1,14 @@
import UserField from 'admin/models/user-field';
export default Ember.Route.extend({
model: function() {
return UserField.findAll();
},
setupController: function(controller, model) {
controller.setProperties({
model: model,
fieldTypes: UserField.fieldTypes()
});
}
});