diff --git a/app/assets/stylesheets/tiss_crawler.scss b/app/assets/stylesheets/tiss_crawler.scss index 00b82ff..dfc467c 100644 --- a/app/assets/stylesheets/tiss_crawler.scss +++ b/app/assets/stylesheets/tiss_crawler.scss @@ -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; +} \ No newline at end of file diff --git a/app/views/crawlers/_personal_annotations.html.erb b/app/views/crawlers/_personal_annotations.html.erb new file mode 100644 index 0000000..d19c197 --- /dev/null +++ b/app/views/crawlers/_personal_annotations.html.erb @@ -0,0 +1,11 @@ +<%= form_tag "submit", :id => "my_form" do -%> +
+ Add an annotation: +
++ <%= text_area_tag 'body', nil, class: 'annotationField' %> +
++ <%= submit_tag "Save annotation" %> +
+<% end -%> \ No newline at end of file diff --git a/app/views/crawlers/courses_crawler/show_detail.html.erb b/app/views/crawlers/courses_crawler/show_detail.html.erb index 23c85ba..1b5efb8 100644 --- a/app/views/crawlers/courses_crawler/show_detail.html.erb +++ b/app/views/crawlers/courses_crawler/show_detail.html.erb @@ -13,4 +13,6 @@Address: <%= @person['main_addresses'][0]['street'] %>, <%= @person['main_addresses'][0]['zip_code'] %> <%= @person['main_addresses'][0]['city'] %>
<% end %> - <%= 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 %> \ No newline at end of file diff --git a/app/views/crawlers/projects_crawler/show_detail.html.erb b/app/views/crawlers/projects_crawler/show_detail.html.erb index 7321c2c..74d6674 100644 --- a/app/views/crawlers/projects_crawler/show_detail.html.erb +++ b/app/views/crawlers/projects_crawler/show_detail.html.erb @@ -11,4 +11,6 @@<%= raw @project['abstractEn'] %>
<% end %> <% end %> + + <%= render :partial => "crawlers/personal_annotations" %> <% end %> diff --git a/app/views/crawlers/theses_crawler/show_detail.html.erb b/app/views/crawlers/theses_crawler/show_detail.html.erb index 24f1a83..6880bf2 100644 --- a/app/views/crawlers/theses_crawler/show_detail.html.erb +++ b/app/views/crawlers/theses_crawler/show_detail.html.erb @@ -10,4 +10,6 @@<%= @thesis['assistant']['familyName'] %> <%= @thesis['assistant']['givenName'] %>
<% end %> + + <%= render :partial => "crawlers/personal_annotations" %> <% end %>