-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#57: Überarbeitung Layout und Renderstruktur
- Loading branch information
Showing
8 changed files
with
64 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<tr> | ||
<td><%= category.kind_name %></td> | ||
<td><%= category %></td> | ||
<td colspan="2"> | ||
<table class="table inner-table"> | ||
<% active_responsibilities(category).find_each do |responsibility| -%> | ||
<tr> | ||
<td title="<%= responsibility.group.logging_subject_name %>"> | ||
<%= responsibility.group %> | ||
</td> | ||
<td class="text-end"> | ||
<%= render partial: 'responsibility_actions', object: responsibility, as: :responsibility %> | ||
</td> | ||
</tr> | ||
<% end -%> | ||
<% if Current.user.role_admin? || active_responsibilities(category).blank? -%> | ||
<tr> | ||
<td colspan="2" class="text-end"> | ||
<%= link_to tag.i('', class: 'fa fa-plus'), new_category_responsibility_path(category), | ||
remote: true, class: 'btn btn-sm btn-outline-primary' %> | ||
</td> | ||
</tr> | ||
<% end -%> | ||
</table> | ||
</td> | ||
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<tr> | ||
<td><%= responsibility.category.kind_name %></td> | ||
<td><%= responsibility.category %></td> | ||
<td title="<%= responsibility.group.logging_subject_name %>"><%= responsibility.group %></td> | ||
<td class="text-nowrap"> | ||
<%= render partial: 'responsibility_actions', object: responsibility, as: :responsibility %> | ||
</td> | ||
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<%= link_to tag.i('', class: 'fa fa-pencil'), edit_responsibility_path(responsibility), | ||
remote: true, class: 'btn btn-sm btn-outline-primary' %> | ||
<%= link_to tag.i('', class: 'fa fa-trash'), responsibility_path(responsibility), | ||
method: :delete, class: 'btn btn-sm btn-outline-danger', | ||
data: { confirm: t('responsibilities.index.confirm_delete') } %> |
32 changes: 0 additions & 32 deletions
32
app/views/responsibilities/_result_list_by_category.html.erb
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters