<% # encoding: utf-8 %>

<% content_for :side_bar do %>
  <%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>

<div class="subnav">

<%= render :partial => 'admin/plugins/plugin_list' %>

</div>

<div id="isotope">
            <div class="item element">
                <div class="detail w-a h-a">
                    <p class="totle">
						<a class="btn btn-small btn-primary pull-right" href="<%= panel_personal_patent_back_end_writing_patent_writing_patent_category_quick_add_path('add') %>#myModal1" data-toggle="modal" data-remote="true"><i class="icon-plus"></i> <%= t('add')%></a>
                        <span><%= t("personal_patent.patent_category") %></span>                        
                    </p>
                    <div class="detal-list my_scroll">
                        <div class="scrollbar">
                            <div class="track">
                                <div class="thumb">
                                    <div class="end"></div>
                                </div>
                            </div>
                        </div>
                        <div class="viewport">
                            <div class="overview">
                                <table id="writing_patent_categorys" class="table table-striped">
                                    <tbody>
										<%= render :partial => 'list_patent_type', :collection => @patent_types %>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
			
            <div class="item element">
                <div class="detail w-a h-a">
                    <p class="totle">                        
                        <button class="btn btn-small btn-primary pull-right" type="button" data-toggle="modal" data-target="#myModal4"><i class="icon-plus"></i> 新增</button>
                        <span>領域</span>
                    </p>
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#">中文</a></li>
                        <li><a href="#">English</a></li>
                    </ul>
                    <div class="detal-list my_scroll">
                        <div class="scrollbar">
                            <div class="track">
                                <div class="thumb">
                                    <div class="end"></div>
                                </div>
                            </div>
                        </div>
                        <div class="viewport">
                            <div class="overview">
                                <table class="table table-striped">
                                    <tbody>
                                        <tr>
                                            <td>Corresponding Author</td>
                                            <td>編輯　刪除</td>
                                        </tr>
                                        <tr>
                                            <td>First Author, Co- Authors</td>
                                            <td>編輯　刪除</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-actions form-fixed pagination-right">
            <!-- <a class="btn btn-primary pull-right" href><i class="icon-plus icon-white"></i> 匯出</a>&nbsp;
            <a class="btn btn-primary pull-right" href><i class="icon-plus icon-white"></i> 匯入</a>&nbsp; -->
            <%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t('announcement.add_new'), new_panel_personal_patent_back_end_writing_patent_path, :class => 'btn btn-primary pull-right' %>
        </div>

		<div id="paper_type_qe">
			<div style="display:none;" class="modal" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
				<%= render :partial => "patent_type_qe" %>
			</div>
		</div>
		
        <div style="display:none;" class="modal" id="myModal4" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel">領域</h3>
            </div>
            <ul class="nav nav-tabs">
                <li class="active"><a href="#">中文</a></li>
                <li><a href="#">English</a></li>
            </ul>
            <div class="modal-body">
                <form class="form-horizontal">
                    <div class="control-group">
                        <label class="control-label" for="inputvalue">名稱</label>
                        <div class="controls">
                            <input type="text" id="inputvalue" placeholder="Value">
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
                <button class="btn btn-primary">Save changes</button>
            </div>
        </div>
		
		
		

<% content_for :page_specific_css do %>
	<%= stylesheet_link_tag "item" %>
<% end %>