Prefixes to statuses are added no automatically in admin

This commit is contained in:
Martin Lensment 2014-09-26 10:52:54 +03:00
parent 5083062de4
commit 69a0d3938f
3 changed files with 18 additions and 1 deletions

View file

@ -15,7 +15,7 @@
.col-md-6
.form-group
= status_fields.label :value
= status_fields.select :value, options_for_select(DomainStatus::STATUSES, status_fields.object.value), {include_blank: true}, {class: 'form-control'}
= status_fields.select :value, options_for_select(DomainStatus.statuses_for_admin, status_fields.object.value.sub('server', '')), {include_blank: true}, {class: 'form-control'}
.col-md-6
.form-group
= status_fields.label :description