Add input field for personal annotations

This commit is contained in:
Pfingstfrosch 2020-06-04 20:14:45 +02:00
parent cf0422731c
commit c82ba79776
6 changed files with 25 additions and 1 deletions

View File

@ -1,3 +1,8 @@
// Place all the styles related to the tiss_crawler controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: https://sass-lang.com/
.annotationField {
width: 99.5%;
height: 8em;
}

View File

@ -0,0 +1,11 @@
<%= form_tag "submit", :id => "my_form" do -%>
<p>
Add an annotation:
</p>
<p>
<%= text_area_tag 'body', nil, class: 'annotationField' %>
</p>
<p>
<%= submit_tag "Save annotation" %>
</p>
<% end -%>

View File

@ -13,4 +13,6 @@
<h3>Inhalt</h3>
<%= raw @course['objective']['de'] %>
<% end %>
<%= render :partial => "crawlers/personal_annotations" %>
<% end %>

View File

@ -17,5 +17,7 @@
<p>Address: <%= @person['main_addresses'][0]['street'] %>, <%= @person['main_addresses'][0]['zip_code'] %> <%= @person['main_addresses'][0]['city'] %></p>
<% end %>
<!-- <p>Employee: <%#= @person.employee %></p>-->
<%= button_to 'Add to favorites', action: :add_to_fav, tiss_id: @person['tiss_id'] %>
<%= button_to 'Add to favorites', action: :add_to_fav, tiss_id: @person['tiss_id'], class: 'button' %>
<%= render :partial => "crawlers/personal_annotations" %>
<% end %>

View File

@ -11,4 +11,6 @@
<p><%= raw @project['abstractEn'] %></p>
<% end %>
<% end %>
<%= render :partial => "crawlers/personal_annotations" %>
<% end %>

View File

@ -10,4 +10,6 @@
<h4>Assistant</h4>
<p><%= @thesis['assistant']['familyName'] %> <%= @thesis['assistant']['givenName'] %></p>
<% end %>
<%= render :partial => "crawlers/personal_annotations" %>
<% end %>