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>
<tr> <tr>
<td colspan="5"><%= f.label t('situation') %> <td colspan="5"><%= f.label t('situation') %>
<% tmp = {'is_waiting'=>t('ask.is_waiting'), <%= f.select :situation, [
'is_processed'=>t('ask.is_processed'), [t('ask.is_waiting'), 'is_waiting'],
'is_referral'=>t('ask.is_referral'), [t('ask.is_processed'), 'is_processed'],
'is_published'=>t('ask.is_published')} %> [t('ask.is_referral'), 'is_referral'],
<%= tmp[@ask_question.situation] %> [t('ask.is_published'),'is_published']
] %>
</td> </td>
</tr> </tr>