Implmented diary submit label changing depending on if new or editing
This commit is contained in:
parent
8e404f3a46
commit
074031d64a
2 changed files with 6 additions and 2 deletions
|
@ -42,7 +42,10 @@
|
|||
</div>
|
||||
</fieldset>
|
||||
|
||||
<%= submit_tag t('diary_entry.edit.save_button') %>
|
||||
<%# TODO: button should say 'publish' or 'save changes' depending on new/edit state %>
|
||||
<% if action_name == 'new' %>
|
||||
<%= submit_tag t('diary_entry.new.publish_button') %>
|
||||
<% else %>
|
||||
<%= submit_tag t('diary_entry.edit.save_button') %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue