From d759e8ca62c96275dac216a4e661f3a18f2f699f Mon Sep 17 00:00:00 2001
From: George Katsikas <giorgakis.katsikas@gmail.com>
Date: Mon, 5 Jun 2023 16:31:45 +0200
Subject: [PATCH] add bulk-action checkbox to prod page items

---
 ...uctionstream_details_summary_contents.html | 42 ++++++++++++-------
 .../scipost/assets/config/preconfig.scss      |  5 +++
 2 files changed, 31 insertions(+), 16 deletions(-)

diff --git a/scipost_django/production/templates/production/_productionstream_details_summary_contents.html b/scipost_django/production/templates/production/_productionstream_details_summary_contents.html
index fba9f372a..2d1c64f52 100644
--- a/scipost_django/production/templates/production/_productionstream_details_summary_contents.html
+++ b/scipost_django/production/templates/production/_productionstream_details_summary_contents.html
@@ -1,19 +1,29 @@
-<div class="row mb-0">
-    <div class="col mb-2">
-        <table class="mb-0">
-            <tbody>
-                <tr>
-                    <td>
-                        <strong class="text-primary">{{ productionstream.submission.title }}</strong>
-                    </td>
-                </tr>
-                <tr class="mt-1">
-                    <td>
-                        <strong><em>by {{ productionstream.submission.author_list }}</em></strong>
-                    </td>
-                </tr>
-            </tbody>
-        </table>
+<div class="row">
+    <div class="col">
+        <div class="row mb-0 align-items-center">
+            <div class="col-auto">
+                <input type="checkbox"
+                       class="form-check-input checkbox-lg"
+                       name="productionstream-{{ productionstream.id }}-checkbox"
+                       id="productionstream-{{ productionstream.id }}-checkbox">
+            </div>
+            <div class="col">
+                <table class="mb-0">
+                    <tbody>
+                        <tr>
+                            <td>
+                                <strong class="text-primary">{{ productionstream.submission.title }}</strong>
+                            </td>
+                        </tr>
+                        <tr class="mt-1">
+                            <td>
+                                <strong><em>by {{ productionstream.submission.author_list }}</em></strong>
+                            </td>
+                        </tr>
+                    </tbody>
+                </table>
+            </div>
+        </div>
  
         <div class="row mt-2 mb-0">
             <div class="col">
diff --git a/scipost_django/scipost/static/scipost/assets/config/preconfig.scss b/scipost_django/scipost/static/scipost/assets/config/preconfig.scss
index 4d17958b3..56124499c 100644
--- a/scipost_django/scipost/static/scipost/assets/config/preconfig.scss
+++ b/scipost_django/scipost/static/scipost/assets/config/preconfig.scss
@@ -215,4 +215,9 @@ $theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value");
 // Hide div
 .d-none-empty:empty {
   display: none;
+}
+
+.checkbox-lg {
+  width: 1.5em !important;
+  height: 1.5em !important;
 }
\ No newline at end of file
-- 
GitLab