Prefixes to statuses are added now automatically in client

This commit is contained in:
Martin Lensment 2014-09-26 10:47:09 +03:00
parent 96eead47b7
commit 5083062de4
4 changed files with 23 additions and 2 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_client, status_fields.object.value.sub('client', '')), {include_blank: true}, {class: 'form-control'}
.col-md-6
.form-group
= status_fields.label :description