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:
parent
a3e2e1fa6e
commit
0fc0533134
23 changed files with 482 additions and 2 deletions
14
app/assets/javascripts/admin/routes/admin-user-fields.js.es6
Normal file
14
app/assets/javascripts/admin/routes/admin-user-fields.js.es6
Normal 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()
|
||||
});
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue