IMPR: Minor updates

This commit is contained in:
Tony Air 2020-08-02 22:40:05 +07:00
parent 883504ee6e
commit e50f0fe80a
3 changed files with 21 additions and 19 deletions

View File

@ -10,6 +10,7 @@ namespace Site\Elements;
use A2nt\SilverStripeMapboxField\MapboxField; use A2nt\SilverStripeMapboxField\MapboxField;
use BetterBrief\GoogleMapField; use BetterBrief\GoogleMapField;
use Colymba\BulkManager\BulkManager;
use DNADesign\Elemental\Models\ElementContent; use DNADesign\Elemental\Models\ElementContent;
use SilverStripe\Core\Config\Config; use SilverStripe\Core\Config\Config;
use SilverStripe\Forms\FieldList; use SilverStripe\Forms\FieldList;
@ -70,6 +71,7 @@ class MapElement extends ElementContent
return $v ? 'YES' : 'NO'; return $v ? 'YES' : 'NO';
} }
]); ]);
$cfg->addComponent(new BulkManager());
return $fields; return $fields;
} }

View File

@ -1,15 +1,17 @@
<div id="SiteWideMessage"> <div id="SiteWideOffline" class="offline-message">
<div class="offline-message"> <div class="alert alert-fixed-top alert-danger alert-offline">
<div class="alert alert-fixed-top alert-danger alert-offline"> <div class="$DefaultContainer">
<div class="$DefaultContainer"> <div class="typography">
<b class="btn btn-danger btn-close" data-dismiss="alert" aria-label="Close"> The Internet connection is missing right now, but you're able to browse previously opened pages offline.
<i class="fas fa-times"></i> </div>
</b> <b class="btn btn-danger btn-close" data-dismiss="alert" aria-label="Close">
The Internet connection is missing right now, but you're able to browse previously opened pages offline. <i class="fas fa-times"></i>
</div> </b>
</div> </div>
</div> </div>
</div>
<div id="SiteWideMessage">
<% if $SiteWideMessage %> <% if $SiteWideMessage %>
<div class="single-message"> <div class="single-message">
<div class="alert alert-fixed-top alert-{$Type}"> <div class="alert alert-fixed-top alert-{$Type}">
@ -23,9 +25,7 @@
</div> </div>
<% end_if %> <% end_if %>
<% if $URLSegment = 'home' && $Action = 'index' %> <% with $SiteConfig %>
<% with $SiteConfig %> <% include Site\Objects\NotificationsList NotificationsToday=$NotificationsToday.filter('Area', 'Site') %>
<% include Site\Objects\NotificationsList %> <% end_with %>
<% end_with %>
<% end_if %>
</div> </div>

View File

@ -32,7 +32,7 @@
], ],
"dependencies": { "dependencies": {
"@a2nt/meta-lightbox": "^2.2.1", "@a2nt/meta-lightbox": "^2.2.1",
"@a2nt/ss-bootstrap-ui-webpack-boilerplate": "^2.3.6", "@a2nt/ss-bootstrap-ui-webpack-boilerplate": "^2.3.7",
"bootbox": "^4.4.0", "bootbox": "^4.4.0",
"bootstrap": "^4.5.0", "bootstrap": "^4.5.0",
"bootstrap-confirmation2": "^4.1.0", "bootstrap-confirmation2": "^4.1.0",
@ -64,13 +64,13 @@
}, },
"devDependencies": { "devDependencies": {
"@a2nt/image-sprite-webpack-plugin": "^0.2.5", "@a2nt/image-sprite-webpack-plugin": "^0.2.5",
"@babel/core": "^7.10.5", "@babel/core": "^7.11.0",
"@babel/plugin-proposal-object-rest-spread": "^7.10.4", "@babel/plugin-proposal-object-rest-spread": "^7.11.0",
"@babel/plugin-transform-react-jsx": "^7.10.4", "@babel/plugin-transform-react-jsx": "^7.10.4",
"@babel/preset-env": "^7.10.4", "@babel/preset-env": "^7.11.0",
"@google/markerclusterer": "^1.0.3", "@google/markerclusterer": "^1.0.3",
"animate.css": "^3.7.2", "animate.css": "^3.7.2",
"autoprefixer": "^9.8.5", "autoprefixer": "^9.8.6",
"babel-eslint": "^8.2.6", "babel-eslint": "^8.2.6",
"babel-loader": "^8.1.0", "babel-loader": "^8.1.0",
"copy-webpack-plugin": "^4.6.0", "copy-webpack-plugin": "^4.6.0",