Hide Delete and Edit from frontend

This commit is contained in:
saurabhbhatia 2013-11-20 12:26:20 +08:00
parent e8483bf4c5
commit 802ebbcdbe
1 changed files with 2 additions and 0 deletions

View File

@ -12,7 +12,9 @@
<% end %>
</div>
</div>
<%if user_signed_in? && is_manager?%>
<div class="modal-footer">
<%= link_to t(:delete_), panel_calendar_new_back_end_event_path(@event),:class => "btn bt-del", :method => :delete, :remote => true %>
<%= link_to t(:edit), edit_panel_calendar_new_back_end_event_path(@event),:class => "btn btn-primary",:id=>"edit_event_btn" ,:remote => true %>
</div>
<% end %>