New UI for procédure list on admin view
This commit is contained in:
parent
04e01981e8
commit
9f4e4a6b65
7 changed files with 52 additions and 8 deletions
|
@ -46,6 +46,8 @@
|
|||
background-color: #E45B51;
|
||||
text-align: center;
|
||||
float: right;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
.count {
|
||||
font-size: 16px;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#users_index{
|
||||
#users_index, #admins_index{
|
||||
margin-left: 2rem;
|
||||
margin-right: 2rem;
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
= link_to('X', url_for(controller: 'admin/procedures', action: :destroy, id: procedure.id), 'data-method' => :delete, class: 'btn-sm btn-danger')
|
||||
|
||||
= smart_listing.paginate
|
||||
= smart_listing.pagination_per_page_links
|
||||
|
||||
- else
|
||||
%h4.center
|
||||
|
|
|
@ -1,8 +1,16 @@
|
|||
= link_to(t('dynamics.admin.dossiers.tableau_de_bord.nouvelle_procedure'), "/admin/procedures/new", class: 'btn btn-success', style: 'float:right; margin-top:2%;')
|
||||
%h1
|
||||
=t('dynamics.admin.dossiers.tableau_de_bord.title')
|
||||
%br
|
||||
#admins_index
|
||||
.default_data_block.default_visible
|
||||
%div.row.show-block#new_dossiers
|
||||
%div.header
|
||||
%div.col-lg-10.col-md-10.title
|
||||
%div.carret-right
|
||||
%div.carret-down
|
||||
Procédures
|
||||
%a{href:'/admin/procedures/new'}
|
||||
%div.col-lg-2.col-md-2.action
|
||||
Nouvelle
|
||||
|
||||
%div.body
|
||||
= smart_listing_render :procedures
|
||||
|
||||
= render partial: 'onglets'
|
||||
|
||||
= smart_listing_render :procedures
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
=render partial: 'layouts/left_panels/left_panel_admin_procedurescontroller_index'
|
|
@ -0,0 +1 @@
|
|||
=render partial: 'layouts/left_panels/left_panel_admin_procedurescontroller_index'
|
|
@ -0,0 +1,33 @@
|
|||
%div#first-block
|
||||
%div.en-cours
|
||||
%b
|
||||
= dossier_count = current_administrateur.procedures.count
|
||||
= ("Procedures".pluralize(dossier_count)).upcase
|
||||
|
||||
%div#action-block
|
||||
|
||||
%div#menu-block
|
||||
%div.split-hr-left
|
||||
#procedure_list
|
||||
%a{:href => "#{url_for :admin_procedures_draft}"}
|
||||
%div.procedure_list_element{class: @draft_class}
|
||||
= "Brouillons"
|
||||
.badge.progress-bar-default
|
||||
= current_administrateur.procedures.where(published: false, archived: false).count
|
||||
|
||||
%a{:href => "#{url_for :admin_procedures}"}
|
||||
%div.procedure_list_element{class: @active_class}
|
||||
= "Actives"
|
||||
.badge.progress-bar-success
|
||||
= current_administrateur.procedures.where(published: true, archived: false).count
|
||||
|
||||
%a{:href => "#{url_for :admin_procedures_archived}"}
|
||||
%div.procedure_list_element{class: @archived_class}
|
||||
="Archivées"
|
||||
.badge.progress-bar-purple
|
||||
= current_administrateur.procedures.where(archived: true).count
|
||||
|
||||
%div.split-hr-left
|
||||
|
||||
|
||||
%div#infos-block
|
Loading…
Reference in a new issue