let situation can change
This commit is contained in:
parent
a992494eb3
commit
ea2f8ebf24
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue