allow ordering categories in the edit category ui

This commit is contained in:
Sam
2013-10-21 17:17:40 +11:00
parent f0862a5c2e
commit e7a037709f
5 changed files with 26 additions and 12 deletions
@@ -57,7 +57,8 @@ Discourse.Category = Discourse.Model.extend({
hotness: this.get('hotness'),
secure: this.get('secure'),
permissions: this.get('permissionsForUpdate'),
auto_close_days: this.get('auto_close_days')
auto_close_days: this.get('auto_close_days'),
position: this.get('position')
},
type: this.get('id') ? 'PUT' : 'POST'
});
@@ -86,6 +86,11 @@
{{autoCloseForm autoCloseDays=auto_close_days labelKey="category.auto_close_label"}}
</section>
<section class='field'>
<label>{{i18n category.position}}</label>
{{textField value=position}}
</section>
<section class='field'>
<label>{{i18n category.hotness}}</label>
{{view Discourse.HotnessView hotnessBinding="hotness"}}