app/assets/javascripts/ants/admin_users.coffee in ants-0.3.0 vs app/assets/javascripts/ants/admin_users.coffee in ants-0.3.1

- old
+ new

@@ -3,31 +3,31 @@ config = title: title showWithParent: true arrayStore: new RailsArrayStore({ - resource: 'admin' - path: "#{ apiPath }/admin_users" - sortBy: 'name' + resource: 'admin_user' + path: "#{ apiPath }/admin_users" + sortBy: 'name' searchable: true }) formSchema: name: - type: 'string' - required: true - label: "Name" + type: 'string' + required: true + label: "Name" placeholder: 'Full name' onInitialize: (input) -> if input.object input.$el.removeClass 'input-required' input.config.disabled = true input._add_disabled() email: - type: 'string' - required: true + type: 'string' + required: true placeholder: 'Email' onInitialize: (input) -> if input.object input.$el.removeClass 'input-required' @@ -38,11 +38,11 @@ input.$avatarBtn =$ "<a href='https://en.gravatar.com/' target='_blank'>Update avatar</a>" input.$label.append input.$actions input.$actions.append input.$avatarBtn password: - type: 'password' - required: true + type: 'password' + required: true placeholder: 'Password' onInitialize: (input) -> if input.object input.$el.removeClass 'input-required' input.$label.html 'Change Password'