let situation can change

This commit is contained in:
chiu 2020-08-21 18:11:52 +08:00
parent a992494eb3
commit ea2f8ebf24
1 changed files with 6 additions and 5 deletions

View File

@ -83,11 +83,12 @@
</tr>
<tr>
<td colspan="5"><%= f.label t('situation') %>
<% tmp = {'is_waiting'=>t('ask.is_waiting'),
'is_processed'=>t('ask.is_processed'),
'is_referral'=>t('ask.is_referral'),
'is_published'=>t('ask.is_published')} %>
<%= tmp[@ask_question.situation] %>
<%= f.select :situation, [
[t('ask.is_waiting'), 'is_waiting'],
[t('ask.is_processed'), 'is_processed'],
[t('ask.is_referral'), 'is_referral'],
[t('ask.is_published'),'is_published']
] %>
</td>
</tr>