Added projects
This commit is contained in:
parent
0964187f22
commit
8b4ffb83ec
37 changed files with 470 additions and 1935 deletions
25
app/views/projects/index.html.erb
Normal file
25
app/views/projects/index.html.erb
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<h1><%= t("scaffold.pagetitle_index", model: Project.model_name.human(count: 2)) %></h1>
|
||||
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%= Project.human_attribute_name(:id) %></th>
|
||||
|
||||
<th><%= Project.human_attribute_name(:name) %></th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @projects.each do |project| %>
|
||||
<tr>
|
||||
<td><%= link_to(project.id, url_for(project)) %></td>
|
||||
|
||||
<td><%= link_to(project.name, url_for(project)) %></td>
|
||||
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="action-row">
|
||||
<%= link_to t("scaffold.link_new", model: Project.model_name.human), new_project_path %>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue