Add input field for personal annotations
This commit is contained in:
parent
cf0422731c
commit
c82ba79776
@ -1,3 +1,8 @@
|
|||||||
// Place all the styles related to the tiss_crawler controller here.
|
// Place all the styles related to the tiss_crawler controller here.
|
||||||
// They will automatically be included in application.css.
|
// They will automatically be included in application.css.
|
||||||
// You can use Sass (SCSS) here: https://sass-lang.com/
|
// You can use Sass (SCSS) here: https://sass-lang.com/
|
||||||
|
|
||||||
|
.annotationField {
|
||||||
|
width: 99.5%;
|
||||||
|
height: 8em;
|
||||||
|
}
|
||||||
11
app/views/crawlers/_personal_annotations.html.erb
Normal file
11
app/views/crawlers/_personal_annotations.html.erb
Normal 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 -%>
|
||||||
@ -13,4 +13,6 @@
|
|||||||
<h3>Inhalt</h3>
|
<h3>Inhalt</h3>
|
||||||
<%= raw @course['objective']['de'] %>
|
<%= raw @course['objective']['de'] %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<%= render :partial => "crawlers/personal_annotations" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@ -17,5 +17,7 @@
|
|||||||
<p>Address: <%= @person['main_addresses'][0]['street'] %>, <%= @person['main_addresses'][0]['zip_code'] %> <%= @person['main_addresses'][0]['city'] %></p>
|
<p>Address: <%= @person['main_addresses'][0]['street'] %>, <%= @person['main_addresses'][0]['zip_code'] %> <%= @person['main_addresses'][0]['city'] %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
<!-- <p>Employee: <%#= @person.employee %></p>-->
|
<!-- <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 %>
|
<% end %>
|
||||||
@ -11,4 +11,6 @@
|
|||||||
<p><%= raw @project['abstractEn'] %></p>
|
<p><%= raw @project['abstractEn'] %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<%= render :partial => "crawlers/personal_annotations" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@ -10,4 +10,6 @@
|
|||||||
<h4>Assistant</h4>
|
<h4>Assistant</h4>
|
||||||
<p><%= @thesis['assistant']['familyName'] %> <%= @thesis['assistant']['givenName'] %></p>
|
<p><%= @thesis['assistant']['familyName'] %> <%= @thesis['assistant']['givenName'] %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<%= render :partial => "crawlers/personal_annotations" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user