Skip to content

Commit

Permalink
[IMP] dms: Add number items (directories and files) to directory kanb…
Browse files Browse the repository at this point in the history
…an view

TT48648
  • Loading branch information
victoralmau authored and tva-subteno-it committed Apr 25, 2024
1 parent a688cda commit 3bbb33e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
5 changes: 5 additions & 0 deletions dms/static/src/scss/directory_kanban.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ $o-kanban-image-width: 80px;
max-height: $o-kanban-image-width + 1;
padding: 0 !important;

span.total_items {
margin-left: 3px;
margin-top: 3px;
}

.o_dms_directory_btn {
border-style: solid solid none none;
border-color: $gray-400;
Expand Down
14 changes: 12 additions & 2 deletions dms/views/dms_directory.xml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@
<field name="count_files" />
<field name="count_directories_title" />
<field name="count_files_title" />
<field name="count_total_directories" />
<field name="count_total_files" />
<templates>
<t t-name="kanban-menu">
<div class="container">
Expand Down Expand Up @@ -300,7 +302,11 @@
class="btn btn-sm btn-outline-primary o_dms_directory_btn"
t-att-title="record.count_directories_title.raw_value"
>
<i class="fa fa-lg fa-folder" />
<i class="fa fa-xs fa-folder" />
<span
class="total_items"
t-esc="record.count_total_directories.raw_value"
/>
</a>
</div>
<div class="h-50">
Expand All @@ -311,7 +317,11 @@
class="btn btn-sm btn-outline-primary o_dms_directory_btn"
t-att-title="record.count_files_title.raw_value"
>
<i class="fa fa-lg fa-file" />
<i class="fa fa-xs fa-file" />
<span
class="total_items"
t-esc="record.count_total_files.raw_value"
/>
</a>
</div>
</div>
Expand Down

0 comments on commit 3bbb33e

Please sign in to comment.