Olivier Massot 5 tahun lalu
induk
melakukan
1258f9e67f
23 mengubah file dengan 126 tambahan dan 17 penghapusan
  1. 1 1
      ot_templating/Classes/Domain/Model/Donor.php
  2. 10 3
      ot_templating/Classes/Domain/Repository/BaseApiRepository.php
  3. 11 2
      ot_templating/Resources/Public/assets/Classic/script/main.js
  4. 8 2
      ot_templating/Resources/Public/assets/Classic/style/_states.scss
  5. 6 0
      ot_templating/Resources/Public/assets/Classic/style/module/_content.scss
  6. 10 1
      ot_templating/Resources/Public/assets/Classic/style/style.css
  7. 0 0
      ot_templating/Resources/Public/assets/Classic/style/style.css.map
  8. 10 1
      ot_templating/Resources/Public/assets/Classic/style/theme-blue.css
  9. 0 0
      ot_templating/Resources/Public/assets/Classic/style/theme-blue.css.map
  10. 10 1
      ot_templating/Resources/Public/assets/Classic/style/theme-green.css
  11. 0 0
      ot_templating/Resources/Public/assets/Classic/style/theme-green.css.map
  12. 10 1
      ot_templating/Resources/Public/assets/Classic/style/theme-grey.css
  13. 0 0
      ot_templating/Resources/Public/assets/Classic/style/theme-grey.css.map
  14. 10 1
      ot_templating/Resources/Public/assets/Classic/style/theme-light-blue.css
  15. 0 0
      ot_templating/Resources/Public/assets/Classic/style/theme-light-blue.css.map
  16. 10 1
      ot_templating/Resources/Public/assets/Classic/style/theme-light-red.css
  17. 0 0
      ot_templating/Resources/Public/assets/Classic/style/theme-light-red.css.map
  18. 10 1
      ot_templating/Resources/Public/assets/Classic/style/theme-orange.css
  19. 0 0
      ot_templating/Resources/Public/assets/Classic/style/theme-orange.css.map
  20. 10 1
      ot_templating/Resources/Public/assets/Classic/style/theme-purple.css
  21. 0 0
      ot_templating/Resources/Public/assets/Classic/style/theme-purple.css.map
  22. 10 1
      ot_templating/Resources/Public/assets/Classic/style/theme-red.css
  23. 0 0
      ot_templating/Resources/Public/assets/Classic/style/theme-red.css.map

+ 1 - 1
ot_templating/Classes/Domain/Model/Donor.php

@@ -4,7 +4,7 @@ namespace Opentalent\OtTemplating\Domain\Model;
 use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
 use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
 
 
 /**
 /**
- * Organization
+ *   Organization's donor
  */
  */
 class Donor extends AbstractEntity
 class Donor extends AbstractEntity
 {
 {

+ 10 - 3
ot_templating/Classes/Domain/Repository/BaseApiRepository.php

@@ -7,7 +7,11 @@ use GuzzleHttp\Exception\GuzzleException;
 use Psr\Http\Message\ResponseInterface;
 use Psr\Http\Message\ResponseInterface;
 use TYPO3\CMS\Extbase\Persistence\Repository;
 use TYPO3\CMS\Extbase\Persistence\Repository;
 
 
-class BaseApiRepository extends Repository
+/**
+ *  Base class for repositories based on the opentalent API
+ *
+ */
+abstract class BaseApiRepository extends Repository
 {
 {
     const BASE_URI = 'https://api.opentalent.fr/api/';
     const BASE_URI = 'https://api.opentalent.fr/api/';
     const HYDRA_TYPE = '';
     const HYDRA_TYPE = '';
@@ -22,8 +26,11 @@ class BaseApiRepository extends Repository
     }
     }
 
 
     /**
     /**
-     * @param $uri
-     * @param $params
+     * Send a request to the API and returns
+     * the result as a Response object
+     *
+     * @param string $uri
+     * @param array $params
      * @return ResponseInterface
      * @return ResponseInterface
      * @throws GuzzleException
      * @throws GuzzleException
      */
      */

+ 11 - 2
ot_templating/Resources/Public/assets/Classic/script/main.js

@@ -27,9 +27,13 @@ $(document).ready(function(){
         elt.children('ul.dropdown-menu').stop(true);
         elt.children('ul.dropdown-menu').stop(true);
     }
     }
 
 
-    $('.dropdown').on('mouseenter', function(e) {
+    $('.dropdown').on('mouseenter tap', function(e) {
 
 
-        e.preventDefault();
+        // Special: the dropdown is already displayed, this can
+        //           happen on mobile or tablet
+        if ($(this).hasClass('dropdown-displayed')) {
+            return
+        }
 
 
         // stop any delayed hiding on this since the cursor went back on it
         // stop any delayed hiding on this since the cursor went back on it
         stopDelayedHidingFor($(this));
         stopDelayedHidingFor($(this));
@@ -92,8 +96,13 @@ $(document).ready(function(){
         var dropdown = $(this).closest('.dropdown');
         var dropdown = $(this).closest('.dropdown');
         var dropdown_menu = dropdown.find('.dropdown-menu').first();
         var dropdown_menu = dropdown.find('.dropdown-menu').first();
         dropdown_menu.toggleClass('show-flex');
         dropdown_menu.toggleClass('show-flex');
+
+        $(this).toggleClass('fa-plus');
+        $(this).toggleClass('fa-minus');
     });
     });
 
 
+
+
     // **** Login Pop-Up and Auth
     // **** Login Pop-Up and Auth
     $('#login-btn').on('click', function(e) {
     $('#login-btn').on('click', function(e) {
         e.preventDefault();
         e.preventDefault();

+ 8 - 2
ot_templating/Resources/Public/assets/Classic/style/_states.scss

@@ -14,6 +14,7 @@ $menu-font-color: $menu-font-color;
   display: flex !important;
   display: flex !important;
 }
 }
 
 
+// Small screens
 @media screen and (max-width: 900px) {
 @media screen and (max-width: 900px) {
 
 
 //  Topbar
 //  Topbar
@@ -82,8 +83,8 @@ $menu-font-color: $menu-font-color;
 
 
 }
 }
 
 
-
-@media (not(hover)), screen and (max-width: 900px) {
+// Small screen or devices which do not support hovering
+@media not all and (hover: none), screen and (max-width: 900px) {
   //  Menu
   //  Menu
   #menu {
   #menu {
     display: none;
     display: none;
@@ -137,4 +138,9 @@ $menu-font-color: $menu-font-color;
     white-space: normal;
     white-space: normal;
     text-align: left;
     text-align: left;
   }
   }
+
+  #menu .dropdown.dropdown-displayed a {
+    color: $menu-font-color;
+  }
+
 }
 }

+ 6 - 0
ot_templating/Resources/Public/assets/Classic/style/module/_content.scss

@@ -152,6 +152,12 @@ $cols-header-font-weight: $cols-header-font-weight;
     border-color: #BBB;
     border-color: #BBB;
   }
   }
 
 
+//   prevents iframe to oversize the content width
+  iframe {
+    width: 100%;
+    height: auto;
+    max-width: 560px;
+  }
 }
 }
 
 
 .centralcol {
 .centralcol {

+ 10 - 1
ot_templating/Resources/Public/assets/Classic/style/style.css

@@ -393,6 +393,11 @@ ul.dropdown-left {
   margin: 15px 5px;
   margin: 15px 5px;
   border-color: #BBB;
   border-color: #BBB;
 }
 }
+.content iframe {
+  width: 100%;
+  height: auto;
+  max-width: 560px;
+}
 
 
 .centralcol {
 .centralcol {
   flex: 1;
   flex: 1;
@@ -1347,7 +1352,7 @@ form button[type=submit]:hover {
     margin: auto;
     margin: auto;
   }
   }
 }
 }
-@media (false), screen and (max-width: 900px) {
+@media not all and (hover: none), screen and (max-width: 900px) {
   #menu {
   #menu {
     display: none;
     display: none;
     flex-direction: column;
     flex-direction: column;
@@ -1399,6 +1404,10 @@ form button[type=submit]:hover {
     white-space: normal;
     white-space: normal;
     text-align: left;
     text-align: left;
   }
   }
+
+  #menu .dropdown.dropdown-displayed a {
+    color: #ffffff;
+  }
 }
 }
 
 
 /*# sourceMappingURL=style.css.map */
 /*# sourceMappingURL=style.css.map */

File diff ditekan karena terlalu besar
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/style.css.map


+ 10 - 1
ot_templating/Resources/Public/assets/Classic/style/theme-blue.css

@@ -393,6 +393,11 @@ ul.dropdown-left {
   margin: 15px 5px;
   margin: 15px 5px;
   border-color: #BBB;
   border-color: #BBB;
 }
 }
+.content iframe {
+  width: 100%;
+  height: auto;
+  max-width: 560px;
+}
 
 
 .centralcol {
 .centralcol {
   flex: 1;
   flex: 1;
@@ -1347,7 +1352,7 @@ form button[type=submit]:hover {
     margin: auto;
     margin: auto;
   }
   }
 }
 }
-@media (false), screen and (max-width: 900px) {
+@media not all and (hover: none), screen and (max-width: 900px) {
   #menu {
   #menu {
     display: none;
     display: none;
     flex-direction: column;
     flex-direction: column;
@@ -1399,6 +1404,10 @@ form button[type=submit]:hover {
     white-space: normal;
     white-space: normal;
     text-align: left;
     text-align: left;
   }
   }
+
+  #menu .dropdown.dropdown-displayed a {
+    color: #ffffff;
+  }
 }
 }
 
 
 /*# sourceMappingURL=theme-blue.css.map */
 /*# sourceMappingURL=theme-blue.css.map */

File diff ditekan karena terlalu besar
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/theme-blue.css.map


+ 10 - 1
ot_templating/Resources/Public/assets/Classic/style/theme-green.css

@@ -393,6 +393,11 @@ ul.dropdown-left {
   margin: 15px 5px;
   margin: 15px 5px;
   border-color: #BBB;
   border-color: #BBB;
 }
 }
+.content iframe {
+  width: 100%;
+  height: auto;
+  max-width: 560px;
+}
 
 
 .centralcol {
 .centralcol {
   flex: 1;
   flex: 1;
@@ -1347,7 +1352,7 @@ form button[type=submit]:hover {
     margin: auto;
     margin: auto;
   }
   }
 }
 }
-@media (false), screen and (max-width: 900px) {
+@media not all and (hover: none), screen and (max-width: 900px) {
   #menu {
   #menu {
     display: none;
     display: none;
     flex-direction: column;
     flex-direction: column;
@@ -1399,6 +1404,10 @@ form button[type=submit]:hover {
     white-space: normal;
     white-space: normal;
     text-align: left;
     text-align: left;
   }
   }
+
+  #menu .dropdown.dropdown-displayed a {
+    color: #ffffff;
+  }
 }
 }
 
 
 /*# sourceMappingURL=theme-green.css.map */
 /*# sourceMappingURL=theme-green.css.map */

File diff ditekan karena terlalu besar
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/theme-green.css.map


+ 10 - 1
ot_templating/Resources/Public/assets/Classic/style/theme-grey.css

@@ -393,6 +393,11 @@ ul.dropdown-left {
   margin: 15px 5px;
   margin: 15px 5px;
   border-color: #BBB;
   border-color: #BBB;
 }
 }
+.content iframe {
+  width: 100%;
+  height: auto;
+  max-width: 560px;
+}
 
 
 .centralcol {
 .centralcol {
   flex: 1;
   flex: 1;
@@ -1347,7 +1352,7 @@ form button[type=submit]:hover {
     margin: auto;
     margin: auto;
   }
   }
 }
 }
-@media (false), screen and (max-width: 900px) {
+@media not all and (hover: none), screen and (max-width: 900px) {
   #menu {
   #menu {
     display: none;
     display: none;
     flex-direction: column;
     flex-direction: column;
@@ -1399,6 +1404,10 @@ form button[type=submit]:hover {
     white-space: normal;
     white-space: normal;
     text-align: left;
     text-align: left;
   }
   }
+
+  #menu .dropdown.dropdown-displayed a {
+    color: #ffffff;
+  }
 }
 }
 
 
 /*# sourceMappingURL=theme-grey.css.map */
 /*# sourceMappingURL=theme-grey.css.map */

File diff ditekan karena terlalu besar
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/theme-grey.css.map


+ 10 - 1
ot_templating/Resources/Public/assets/Classic/style/theme-light-blue.css

@@ -393,6 +393,11 @@ ul.dropdown-left {
   margin: 15px 5px;
   margin: 15px 5px;
   border-color: #BBB;
   border-color: #BBB;
 }
 }
+.content iframe {
+  width: 100%;
+  height: auto;
+  max-width: 560px;
+}
 
 
 .centralcol {
 .centralcol {
   flex: 1;
   flex: 1;
@@ -1347,7 +1352,7 @@ form button[type=submit]:hover {
     margin: auto;
     margin: auto;
   }
   }
 }
 }
-@media (false), screen and (max-width: 900px) {
+@media not all and (hover: none), screen and (max-width: 900px) {
   #menu {
   #menu {
     display: none;
     display: none;
     flex-direction: column;
     flex-direction: column;
@@ -1399,6 +1404,10 @@ form button[type=submit]:hover {
     white-space: normal;
     white-space: normal;
     text-align: left;
     text-align: left;
   }
   }
+
+  #menu .dropdown.dropdown-displayed a {
+    color: #ffffff;
+  }
 }
 }
 
 
 /*# sourceMappingURL=theme-light-blue.css.map */
 /*# sourceMappingURL=theme-light-blue.css.map */

File diff ditekan karena terlalu besar
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/theme-light-blue.css.map


+ 10 - 1
ot_templating/Resources/Public/assets/Classic/style/theme-light-red.css

@@ -393,6 +393,11 @@ ul.dropdown-left {
   margin: 15px 5px;
   margin: 15px 5px;
   border-color: #BBB;
   border-color: #BBB;
 }
 }
+.content iframe {
+  width: 100%;
+  height: auto;
+  max-width: 560px;
+}
 
 
 .centralcol {
 .centralcol {
   flex: 1;
   flex: 1;
@@ -1347,7 +1352,7 @@ form button[type=submit]:hover {
     margin: auto;
     margin: auto;
   }
   }
 }
 }
-@media (false), screen and (max-width: 900px) {
+@media not all and (hover: none), screen and (max-width: 900px) {
   #menu {
   #menu {
     display: none;
     display: none;
     flex-direction: column;
     flex-direction: column;
@@ -1399,6 +1404,10 @@ form button[type=submit]:hover {
     white-space: normal;
     white-space: normal;
     text-align: left;
     text-align: left;
   }
   }
+
+  #menu .dropdown.dropdown-displayed a {
+    color: #ffffff;
+  }
 }
 }
 
 
 /*# sourceMappingURL=theme-light-red.css.map */
 /*# sourceMappingURL=theme-light-red.css.map */

File diff ditekan karena terlalu besar
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/theme-light-red.css.map


+ 10 - 1
ot_templating/Resources/Public/assets/Classic/style/theme-orange.css

@@ -393,6 +393,11 @@ ul.dropdown-left {
   margin: 15px 5px;
   margin: 15px 5px;
   border-color: #BBB;
   border-color: #BBB;
 }
 }
+.content iframe {
+  width: 100%;
+  height: auto;
+  max-width: 560px;
+}
 
 
 .centralcol {
 .centralcol {
   flex: 1;
   flex: 1;
@@ -1347,7 +1352,7 @@ form button[type=submit]:hover {
     margin: auto;
     margin: auto;
   }
   }
 }
 }
-@media (false), screen and (max-width: 900px) {
+@media not all and (hover: none), screen and (max-width: 900px) {
   #menu {
   #menu {
     display: none;
     display: none;
     flex-direction: column;
     flex-direction: column;
@@ -1399,6 +1404,10 @@ form button[type=submit]:hover {
     white-space: normal;
     white-space: normal;
     text-align: left;
     text-align: left;
   }
   }
+
+  #menu .dropdown.dropdown-displayed a {
+    color: #ffffff;
+  }
 }
 }
 
 
 /*# sourceMappingURL=theme-orange.css.map */
 /*# sourceMappingURL=theme-orange.css.map */

File diff ditekan karena terlalu besar
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/theme-orange.css.map


+ 10 - 1
ot_templating/Resources/Public/assets/Classic/style/theme-purple.css

@@ -393,6 +393,11 @@ ul.dropdown-left {
   margin: 15px 5px;
   margin: 15px 5px;
   border-color: #BBB;
   border-color: #BBB;
 }
 }
+.content iframe {
+  width: 100%;
+  height: auto;
+  max-width: 560px;
+}
 
 
 .centralcol {
 .centralcol {
   flex: 1;
   flex: 1;
@@ -1347,7 +1352,7 @@ form button[type=submit]:hover {
     margin: auto;
     margin: auto;
   }
   }
 }
 }
-@media (false), screen and (max-width: 900px) {
+@media not all and (hover: none), screen and (max-width: 900px) {
   #menu {
   #menu {
     display: none;
     display: none;
     flex-direction: column;
     flex-direction: column;
@@ -1399,6 +1404,10 @@ form button[type=submit]:hover {
     white-space: normal;
     white-space: normal;
     text-align: left;
     text-align: left;
   }
   }
+
+  #menu .dropdown.dropdown-displayed a {
+    color: #ffffff;
+  }
 }
 }
 
 
 /*# sourceMappingURL=theme-purple.css.map */
 /*# sourceMappingURL=theme-purple.css.map */

File diff ditekan karena terlalu besar
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/theme-purple.css.map


+ 10 - 1
ot_templating/Resources/Public/assets/Classic/style/theme-red.css

@@ -393,6 +393,11 @@ ul.dropdown-left {
   margin: 15px 5px;
   margin: 15px 5px;
   border-color: #BBB;
   border-color: #BBB;
 }
 }
+.content iframe {
+  width: 100%;
+  height: auto;
+  max-width: 560px;
+}
 
 
 .centralcol {
 .centralcol {
   flex: 1;
   flex: 1;
@@ -1347,7 +1352,7 @@ form button[type=submit]:hover {
     margin: auto;
     margin: auto;
   }
   }
 }
 }
-@media (false), screen and (max-width: 900px) {
+@media not all and (hover: none), screen and (max-width: 900px) {
   #menu {
   #menu {
     display: none;
     display: none;
     flex-direction: column;
     flex-direction: column;
@@ -1399,6 +1404,10 @@ form button[type=submit]:hover {
     white-space: normal;
     white-space: normal;
     text-align: left;
     text-align: left;
   }
   }
+
+  #menu .dropdown.dropdown-displayed a {
+    color: #ffffff;
+  }
 }
 }
 
 
 /*# sourceMappingURL=theme-red.css.map */
 /*# sourceMappingURL=theme-red.css.map */

File diff ditekan karena terlalu besar
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/theme-red.css.map


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini