diff options
| author | cedricnjanga | 2018-05-22 10:59:09 -0700 |
|---|---|---|
| committer | Johan Van Ryseghem | 2018-05-23 16:07:06 +0200 |
| commit | 9e5609c5f8098efeed3800ba6b9a31f67ebd576a (patch) | |
| tree | f9e7e3a5e8e6780384e13edc1aefa58c9613db40 | |
| parent | 599645b4912e6ef8e37e60bb1276bfd732922955 (diff) | |
| download | chouette-core-9e5609c5f8098efeed3800ba6b9a31f67ebd576a.tar.bz2 | |
Refs #7053 Add pagination to RCZ#index and display short_id instead of local_id
| -rw-r--r-- | app/views/routing_constraint_zones/index.html.slim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/routing_constraint_zones/index.html.slim b/app/views/routing_constraint_zones/index.html.slim index 7e9fb12a3..a804de449 100644 --- a/app/views/routing_constraint_zones/index.html.slim +++ b/app/views/routing_constraint_zones/index.html.slim @@ -14,7 +14,7 @@ [ \ TableBuilderHelper::Column.new( \ name: t('objectid'), \ - attribute: Proc.new { |n| n.get_objectid.local_id }, \ + attribute: Proc.new { |n| n.get_objectid.short_id }, \ sortable: false \ ), \ TableBuilderHelper::Column.new( \ @@ -39,6 +39,8 @@ ], links: [:show], cls: 'table has-filter has-search' + + = new_pagination @routing_constraint_zones, 'pull-right' - unless @routing_constraint_zones.any? .row.mt-xs |
