Orbit/app/views/desktop/co_authors/index.html.erb

35 lines
1.7 KiB
Plaintext
Raw Normal View History

2012-12-05 09:45:50 +00:00
<div class="toolbar hh2">
<div class="fn_g hp">
2012-12-27 10:25:54 +00:00
<%= link_to "New Co-Author", new_desktop_co_author_path, :class=>"bt-co-author fn_btn hp hh2 thmc2 thmtxt", "ajax-remote"=>"get" %>
<%= link_to "New Type", desktop_co_author_relations_path, :class=>"bt-new-type fn_btn hp hh2 thmc2 thmtxt", "ajax-remote"=>"get" %>
2012-12-05 09:45:50 +00:00
</div>
</div>
2012-12-05 09:48:17 +00:00
<div id="co_author" class="tinycanvas vp">
<div class="scrollbar sb_h vp"><div class="track"><div class="thumb thmc2"><div class="end"></div></div></div></div>
<div class="viewport">
<div class="overview">
<% @co_authors.each_with_index do |co_author,i| %>
2012-12-05 19:42:20 +00:00
<% if ( i % 4 ) == 0 %>
2012-12-05 09:48:17 +00:00
<div class="g_col">
<ul>
<% end %>
<li class="list_t_item">
2012-12-05 09:51:36 +00:00
<ul class="info">
2012-12-05 19:42:20 +00:00
<li><div class="name"><%= co_author.co_author %></div></li>
<li><div class="email"><i class="icon-envelope"></i> <%= co_author.email %></div></li>
<li><div class="relations"><i class="icon-user"></i> <%= @co_author_relations.find(co_author.co_author_relations_id).relation unless co_author.co_author_relations_id.nil?%></div></li>
2012-12-05 09:51:36 +00:00
</ul>
2012-12-05 18:38:57 +00:00
<div class="list_item_function">
2012-12-27 10:25:54 +00:00
<%= link_to 'Edit', edit_desktop_co_author_path(co_author), :class => "bt-edit admbg2 admtxt", "ajax-remote"=>"get" %>
<%= link_to 'Destroy', desktop_co_author_path(co_author), "ajax-remote"=>"delete", "confirm-message"=>'Are you sure?', "callback-method"=>"paperDelete", :class=>"bt-delete admbg2 admtxt" %>
2012-12-05 18:38:57 +00:00
</div>
2012-12-05 09:48:17 +00:00
</li>
2012-12-05 19:42:20 +00:00
<% if ( i % 4 ) == 3 %>
2012-12-05 09:48:17 +00:00
</ul>
</div>
<% end %>
2012-12-05 09:45:50 +00:00
<% end %>
</div>
2012-12-05 09:48:17 +00:00
</div>
2012-12-06 14:05:22 +00:00
</div>