diff --git a/library/ZendAfi/View/Helper/ProfileComposition.php b/library/ZendAfi/View/Helper/ProfileComposition.php index 59385f0508d8e7bc550eea19c7c7a032594b8852..59e671d790ee79df9f721c353f6bfcf750a1dc61 100644 --- a/library/ZendAfi/View/Helper/ProfileComposition.php +++ b/library/ZendAfi/View/Helper/ProfileComposition.php @@ -136,7 +136,8 @@ class ZendAfi_View_Helper_ProfileComposition extends ZendAfi_View_Helper_BaseHel $this->_getHTMLForDivision($column), ['id' => sprintf('box%d', $column), 'class' => 'sortable_list']), - ['data-division' => $column]); + ['data-division' => $column, + 'data-divisions' => Class_Profil::getCurrentProfil()->getNbDivisions()]); } diff --git a/public/admin/css/config_accueil.css b/public/admin/css/config_accueil.css index 3aac87f70b67920f32fda9d1dd0edd12154e3a34..54ca960b3fa3bcac7a94d07a8e34352b4abe16be 100644 --- a/public/admin/css/config_accueil.css +++ b/public/admin/css/config_accueil.css @@ -64,22 +64,29 @@ width: 25%; } -.profile_composition .drag_drop_container > [data-division] { +.profile_composition .drag_drop_container > [data-division="1"][data-divisions="3"], +.profile_composition .drag_drop_container > [data-division="3"][data-divisions="3"] { width: 25%; } +.profile_composition .drag_drop_container > [data-division="1"][data-divisions="2"], .profile_composition .drag_drop_container > [data-division="5"] { width: 33%; } +.profile_composition .drag_drop_container > [data-division="2"][data-divisions="2"], .profile_composition .drag_drop_container > [data-division="4"] { width: 66%; } -.profile_composition .drag_drop_container > [data-division="2"] { +.profile_composition .drag_drop_container > [data-division="2"][data-divisions="3"] { width: 50%; } +.profile_composition .drag_drop_container > [data-division="1"][data-divisions="1"] { + width: 100%; +} + .profile_composition .drag_drop_container > div a { padding-left: 1em; }