40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
<% content_for :page_specific_css do %>
|
|
<%= stylesheet_link_tag "lib/main-forms" %>
|
|
<%= stylesheet_link_tag "lib/fileupload" %>
|
|
<%= stylesheet_link_tag "lib/main-list" %>
|
|
<%= stylesheet_link_tag "lib/main-form-col2" %>
|
|
<% end %>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th><%= t('personal_journal.paper_title') %></th>
|
|
<th><%= t('personal_journal.journal_title') %></th>
|
|
<th><%= t('module_name.personal_journal') %></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% if params['mode']=='simple' %>
|
|
<% else %>
|
|
<% @journals.each do |key,journals| %>
|
|
<tr>
|
|
<% len = journals.length %>
|
|
<td rowspan="<%= len %>">
|
|
<%= key[0].values.map{|v| v=="" ? t('personal_journal.no_input') : v}.join('/') %>
|
|
</td>
|
|
<td rowspan="<%= len %>">
|
|
<%= key[1].values.map{|v| v=="" ? t('personal_journal.no_input') : v}.join('/') %>
|
|
</td>
|
|
<% journals.each_with_index do |journal,i| %>
|
|
<td>
|
|
<%= journal %>
|
|
</td>
|
|
<% if len!=(i+1) %>
|
|
</tr>
|
|
<tr>
|
|
<% end %>
|
|
<% end %>
|
|
</tr>
|
|
<% end %>
|
|
<% end %>
|
|
</tbody>
|
|
</table> |