Packages
torch
0.1.0
6.0.0
5.6.0
5.5.0
5.4.0
5.3.2
5.3.1
5.2.0
5.1.2
5.1.1
5.1.0
5.0.0
5.0.0-rc.4
5.0.0-rc.3
5.0.0-rc.2
5.0.0-rc.1
5.0.0-rc.0
4.3.2
4.3.1
4.3.0
4.2.1
4.2.0
retired
4.1.0
4.0.0
4.0.0-rc.0
3.9.1
3.9.0
3.8.0
3.7.1
3.7.0-rc.0
3.6.4
3.6.3
3.6.2
3.6.1
3.6.0
3.5.0
3.4.1
3.4.0
3.3.1
3.3.0
3.2.1
3.2.0
3.1.0
3.0.0
2.1.0
2.0.0
2.0.0-rc.3
2.0.0-rc.2
2.0.0-rc.1
1.0.0-rc.6
1.0.0-rc.5
1.0.0-rc.4
1.0.0-rc.3
1.0.0-rc.2
1.0.0-rc.1
0.2.0-rc.5
0.2.0-rc.4
0.2.0-rc.3
0.2.0-rc.2
0.2.0-rc.1
0.1.0
Rapid admin generator for Phoenix
Current section
Files
Jump to
Current section
Files
priv/templates/eex/index.html.eex
<section class="content">
<section class="toolbar">
<%%= link "New", to: <%= namespace_underscore %>_<%= singular %>_path(@conn, :new) %>
</section>
<%%= if length(@<%= plural %>) > 0 do %>
<table class="data">
<thead>
<tr>
<%= for {k, _} <- attrs, not k in [:inserted_at, :updated_at] do %> <th><%%= table_link(@conn, "<%= Phoenix.Naming.humanize(Atom.to_string(k)) %>", <%= inspect(k) %>) %></th>
<% end %>
<th>Actions</th>
</tr>
</thead>
<tbody>
<%%= for <%= singular %> <- @<%= plural %> do %>
<tr>
<%= for {k, _} <- attrs, not k in [:inserted_at, :updated_at] do %> <td><%%= <%= singular %>.<%= k %> %></td>
<% end %>
<td class="actions">
<%%= link "Edit", to: <%= namespace_underscore %>_<%= singular %>_path(@conn, :edit, <%= singular %>) %>
<%%= link "Delete", to: <%= namespace_underscore %>_<%= singular %>_path(@conn, :delete, <%= singular %>), method: :delete, data: [confirm: "Are you sure?"] %>
</td>
</tr>
<%% end %>
</tbody>
</table>
<%%= render Torch.PaginationView, "_pagination.html", assigns %>
<%% else %>
<p class="no-data">No <%= plural %> match your search.</p>
<%% end %>
</section>
<%%= render "_filters.html", assigns %>