From e6b4c261d3f8517cdb65d8742f9ebff50e9f0b4a Mon Sep 17 00:00:00 2001 From: bohung Date: Fri, 16 Oct 2020 16:32:20 +0800 Subject: [PATCH] Fix bug. --- app/views/admin/venue_management_bills/_form.html.erb | 6 +++++- app/views/admin/venue_management_contracts/_form.html.erb | 6 +++++- app/views/admin/venue_management_invitings/_form.html.erb | 6 +++++- .../admin/venue_management_memorabilias/_form.html.erb | 6 +++++- config/locales/zh_tw.yml | 2 +- 5 files changed, 21 insertions(+), 5 deletions(-) diff --git a/app/views/admin/venue_management_bills/_form.html.erb b/app/views/admin/venue_management_bills/_form.html.erb index 443da6a..298ac0e 100644 --- a/app/views/admin/venue_management_bills/_form.html.erb +++ b/app/views/admin/venue_management_bills/_form.html.erb @@ -211,7 +211,11 @@
<%= get_referer_url[:venue_managemention] rescue "" %> <%= f.submit t('submit'), class: 'btn btn-primary' %> - + <% if !params[:id].nil? %> + + <% else %> + + <% end %> <%= link_to t('cancel'), venue_management_memorabilias_admin_venue_management_path(id: @venue_management.id), :class=>"btn" %>