-
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.
Browse files
Browse the repository at this point in the history
inkl. Erhaltung des aktuellen Seitenkontext nach `create`, `update` und `destroy` Aktionen. Co-authored-by: Niels Bennke <[email protected]>
- Loading branch information
Showing
9 changed files
with
94 additions
and
59 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
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,27 @@ | ||
<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, permitted_order_and_pagination_params), | ||
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
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,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,6 @@ | ||
<%= link_to tag.i('', class: 'fa fa-pencil'), | ||
edit_responsibility_path(responsibility, permitted_order_and_pagination_params), | ||
remote: true, class: 'btn btn-sm btn-outline-primary' %> | ||
<%= link_to tag.i('', class: 'fa fa-trash'), responsibility_path(responsibility, permitted_order_and_pagination_params), | ||
method: :delete, class: 'btn btn-sm btn-outline-danger', | ||
data: { confirm: t('responsibilities.index.confirm_delete') } %> |
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