diff options
| author | cedricnjanga | 2018-05-22 10:59:09 -0700 |
|---|---|---|
| committer | cedricnjanga | 2018-05-22 10:59:09 -0700 |
| commit | 0a7b41b358f86655d4c2758ab40db8177e063196 (patch) | |
| tree | dd6b41e78f1026fe8070a3ff76ba496f567cfa19 /app | |
| parent | dd33794e295d5978abb7ccbbf5ded6a40ab42a2f (diff) | |
| download | chouette-core-7053-rcz-pagination.tar.bz2 | |
Refs #7053 Add pagination to RCZ#index and display short_id instead of local_id7053-rcz-pagination
Diffstat (limited to 'app')
| -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 |
