<% # encoding: utf-8 %>

<table>
<caption> <%= t("writing_patent") %> </caption>
<tbody>
<tr><th><%= t("writing_patent.year")%></th><td><%= @writing_patent.year %></td></tr>
<tr><th><%= t("writing_patent.language")%></th><td><%= @writing_patent.language %></td></tr>
<tr><th><%= t("writing_patent.patent_title")%></th><td><%= @writing_patent.patent_title %></td></tr>
<tr><th><%= t("writing_patent.category")%></th><td><%= @writing_patent.writing_patent_category.title if @writing_patent.writing_patent_category %></td></tr>
<tr><th><%= t("writing_patent.patent_no")%></th><td><%= @writing_patent.patent_no %></td></tr>
<tr><th><%= t("writing_patent.patent_country")%></th><td><%= @writing_patent.patent_country %></td></tr>
<tr><th><%= t("writing_patent.publish_date")%></th><td><%= @writing_patent.publish_date %></td></tr>
<tr><th><%= t("writing_patent.url")%></th><td><%= link_to t(:url), @writing_patent.url, {:target => '_blank', :title => @writing_patent.patent_title} if !@writing_patent.url.blank? %></td></tr>
<tr><th><%= t("writing_patent.note")%></th><td><%= @writing_patent.note %></td></tr>
<tr><th><%= t("writing_patent.authors")%></th><td><%= "#{User.from_id(@writing_patent.create_user_id).name rescue ''},#{@writing_patent.authors rescue ''}"%></td></tr>
<tr><th><%= t("writing_patent.files")%></th>
<td>
<% if @writing_patent.writing_patent_files.size > 0 %>
		<div>
			<i class="icons-paperclip"></i>
			<div class="showFile">
					<% @writing_patent.writing_patent_files.each do | wjfile | %>
					<%= link_to wjfile.title, wjfile.file.url, {:target => '_blank', :title => wjfile.title} if wjfile.file.file %>
					<% end %>
			</div>
		</div>
	<% end %>
</td>
</tr>
</tbody>
</table>
