add print button to all detail views

This commit is contained in:
Pfingstfrosch
2020-06-05 00:41:18 +02:00
parent ca38d7260d
commit 9cc357fb17
5 changed files with 9 additions and 1 deletions
@@ -1,5 +1,7 @@
<% if @project != nil %>
<h2>Project: <%= @project['titleDe'] %></h2>
<%= button_to "PRINT", '#', onclick: "print()" %>
<h5><%= @project['contractBegin'] %> - <%= @project['contractEnd'] %></h5>
<%= button_to 'Add to favorites', action: :add_to_fav, id: @id, title: @project['titleDe'] %>
<% if @project['abstractDe'] != nil %>