Skip to content

Commit

Permalink
Merge pull request #326 from camptocamp/labels
Browse files Browse the repository at this point in the history
Fix item labels
  • Loading branch information
sbrunner authored Jan 12, 2024
2 parents 31db688 + 6d2f7f7 commit 00ff6bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c2cgeoform/views/abstract_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def _grid_item_actions(self, item: T) -> JSONDict:
0,
ItemAction(
name="edit",
label=_("ObjectResponse"),
label=_("Edit"),
icon="glyphicon glyphicon-pencil",
url=self._request.route_url("c2cgeoform_item", id=getattr(item, self._id_field)),
),
Expand Down Expand Up @@ -494,7 +494,7 @@ def _item_actions(self, item: T, readonly: bool = False) -> list[ItemAction]:
actions.append(
ItemAction(
name="delete",
label=_("DeleteResponse"),
label=_("Delete"),
icon="glyphicon glyphicon-remove",
url=self._request.route_url("c2cgeoform_item", id=getattr(item, self._id_field)),
method="DELETE",
Expand Down

0 comments on commit 00ff6bb

Please sign in to comment.