diff options
| author | jpl | 2016-09-01 11:01:40 +0200 |
|---|---|---|
| committer | jpl | 2016-09-01 11:01:40 +0200 |
| commit | f6e4879cb01beec90d9fc38d0bfbed149f95ef56 (patch) | |
| tree | 4ae2c837521311165d96b1b1c52f69d07b696714 | |
| parent | ca32433af8c42394ba45c91d4bf39948f77c33dc (diff) | |
| download | chouette-core-f6e4879cb01beec90d9fc38d0bfbed149f95ef56.tar.bz2 | |
update lines views (DOM adjust.)
| -rw-r--r-- | app/views/lines/_line.html.slim | 13 | ||||
| -rw-r--r-- | app/views/offer_workbenches/_referential.html.slim | 9 | ||||
| -rw-r--r-- | app/views/referential_lines/_lines.html.slim | 2 |
3 files changed, 13 insertions, 11 deletions
diff --git a/app/views/lines/_line.html.slim b/app/views/lines/_line.html.slim index 26c630338..eb7aecc1d 100644 --- a/app/views/lines/_line.html.slim +++ b/app/views/lines/_line.html.slim @@ -13,13 +13,14 @@ h5.ce-LineBlock-header-title = truncate(line.name, length: 24) li - - if edit - = link_to edit_line_referential_line_path(line.line_referential, line), class: 'btn btn-default btn-sm' do - span.fa.fa-pencil + .btn-group + - if edit + = link_to edit_line_referential_line_path(line.line_referential, line), class: 'btn btn-default btn-sm' do + span.fa.fa-pencil - - if delete - = link_to line_referential_line_path(line.line_referential, line), method: :delete, data: { confirm: t('lines.actions.destroy_confirm') }, class: 'btn btn-danger btn-sm' do - span.fa.fa-trash-o + - if delete + = link_to line_referential_line_path(line.line_referential, line), method: :delete, data: { confirm: t('lines.actions.destroy_confirm') }, class: 'btn btn-danger btn-sm' do + span.fa.fa-trash-o .panel-body p diff --git a/app/views/offer_workbenches/_referential.html.slim b/app/views/offer_workbenches/_referential.html.slim index f00caa728..cc1964f30 100644 --- a/app/views/offer_workbenches/_referential.html.slim +++ b/app/views/offer_workbenches/_referential.html.slim @@ -2,11 +2,12 @@ .panel-heading .panel-title.clearfix span.pull-right - = link_to edit_referential_path(referential), class: 'btn btn-default btn-sm' do - span.fa.fa-pencil + .btn-group + = link_to edit_referential_path(referential), class: 'btn btn-default btn-sm' do + span.fa.fa-pencil - = link_to referential_path(referential), method: :delete, :data => {:confirm => t('referentials.actions.destroy_confirm')}, class: 'btn btn-danger btn-sm' do - span.fa.fa-trash-o + = link_to referential_path(referential), method: :delete, :data => {:confirm => t('referentials.actions.destroy_confirm')}, class: 'btn btn-danger btn-sm' do + span.fa.fa-trash-o h5 = link_to [@referential, referential], class: 'preview', title: "#{Referential.model_name.human.capitalize} #{referential.name}" do diff --git a/app/views/referential_lines/_lines.html.slim b/app/views/referential_lines/_lines.html.slim index 7e19fac44..fc89a8939 100644 --- a/app/views/referential_lines/_lines.html.slim +++ b/app/views/referential_lines/_lines.html.slim @@ -3,7 +3,7 @@ = page_entries_info @lines .lines.paginated_content - = paginated_content @lines + = paginated_content(@lines) .pagination = will_paginate @lines, container: false, renderer: RemoteBootstrapPaginationLinkRenderer
\ No newline at end of file |
