Added projects
This commit is contained in:
parent
0964187f22
commit
8b4ffb83ec
37 changed files with 470 additions and 1935 deletions
20
app/views/projects/_project.html.slim
Normal file
20
app/views/projects/_project.html.slim
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
.project id=dom_id(project)
|
||||
p
|
||||
strong Name:
|
||||
= project.name
|
||||
p
|
||||
strong Details:
|
||||
= project.details
|
||||
p
|
||||
strong Berichte:
|
||||
ul.ps-0
|
||||
- project.reports.each do
|
||||
li.d-flex.ps-0
|
||||
=< "ID #{_1.id}: #{l(_1.created_at,format: :short)} #{_1.name}"
|
||||
= link_to(_1, class: "btn btn-sm btn-link-secondary") do
|
||||
i.bi.bi-folder-symlink
|
||||
= button_to(project_reports_path(project), class: "btn btn-sm btn-link-secondary", params: { copy_from_id: _1.id }) do
|
||||
i.bi.bi-copy
|
||||
p
|
||||
= link_to(new_project_report_path(project), class: "btn btn-secondary") do
|
||||
i.bi.bi-plus-lg
|
||||
Loading…
Add table
Add a link
Reference in a new issue