Skip to content

Commit 0eee312

Browse files
committed
update for bs5
1 parent d8843e7 commit 0eee312

File tree

5 files changed

+31
-127
lines changed

5 files changed

+31
-127
lines changed

Diff for: .jshintrc

-89
This file was deleted.

Diff for: plugin.json

-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
"hook": "filter:widgets.getAreas", "method": "setWidgetAreas"
1616
}
1717
],
18-
"acpLess": [
19-
"static/admin.less"
20-
],
2118
"modules": {
2219
"../admin/plugins/custom-pages.js": "static/lib/admin.js"
2320
},

Diff for: static/admin.less

-6
This file was deleted.

Diff for: static/lib/admin.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ define('admin/plugins/custom-pages', [], function () {
77

88
function addCloseHandler() {
99
$('#custom-pages .fa-times').on('click', function () {
10-
$(this).parents('.well').remove();
10+
$(this).parents('.card').remove();
1111
});
1212
}
1313

@@ -56,7 +56,7 @@ define('admin/plugins/custom-pages', [], function () {
5656

5757
$('#save').on('click', function () {
5858
var arr = [];
59-
$('#custom-pages .well form').each(function () {
59+
$('#custom-pages form').each(function () {
6060
var data = $(this).serializeArray();
6161
if (data[1].value && !data[1].value.match(' ') && data[1].value !== '') {
6262
arr.push({

Diff for: templates/admin/plugins/custom-pages.tpl

+29-27
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="row">
2-
<div class="col-sm-2 col-xs-12 settings-header">Active Routes</div>
3-
<div class="col-sm-10 col-xs-12">
2+
<div class="col-sm-2 col-12 settings-header">Active Routes</div>
3+
<div class="col-sm-10 col-12">
44
<p class="lead">
55
Define and customise your new routes here.
66
</p>
@@ -13,48 +13,50 @@
1313
<p>
1414
If you wish to set a custom page as your homepage, go to <a href="{config.relative_path}/admin/general/homepage">General &rarr; Homepage</a> and select "Custom".
1515
</p>
16-
16+
1717
<div id="custom-pages">
1818
<!-- BEGIN pages -->
19-
<div class="well">
19+
<div class="card card-body text-bg-light">
2020
<form>
21-
<span class="pull-right"><i class="fa fa-times pointer"></i></span>
22-
23-
<label>Page Title
24-
<input type="text" class="form-control" name="name" value="{pages.name}" placeholder="Page Title" />
25-
</label>
21+
<span class="float-end"><i class="fa fa-times pointer"></i></span>
22+
<div class="mb-3">
23+
<label>Page Title
24+
<input type="text" class="form-control" name="name" value="{pages.name}" placeholder="Page Title" />
25+
</label>
2626

27-
<label>Path to Page
28-
<input type="text" class="form-control" name="route" value="{pages.route}" placeholder="/my-page" />
29-
</label>
27+
<label>Path to Page
28+
<input type="text" class="form-control" name="route" value="{pages.route}" placeholder="/my-page" />
29+
</label>
30+
</div>
3031

31-
<br /><br />
32-
<label>Restrict access to groups (leave blank for public):
32+
<div>
33+
<label class="form-label">Restrict access to groups (leave blank for public):</label>
34+
</div>
3335
<input type="text" class="form-control groups-list" name="groups" value="{pages.groups}" placeholder="" />
34-
</label>
3536
</form>
3637
</div>
3738
<!-- END pages -->
3839
</div>
3940
</div>
4041
</div>
4142

42-
<div class="template well hidden">
43+
<div class="template card card-body text-bg-light hidden">
4344
<form>
44-
<span class="pull-right"><i class="fa fa-times pointer"></i></span>
45-
46-
<label>Page Title
47-
<input type="text" class="form-control" name="name" value="" placeholder="Page Title" />
48-
</label>
45+
<span class="float-end"><i class="fa fa-times pointer"></i></span>
46+
<div class="mb-3">
47+
<label>Page Title
48+
<input type="text" class="form-control" name="name" value="" placeholder="Page Title" />
49+
</label>
4950

50-
<label>Path to Page
51-
<input type="text" class="form-control" name="route" value="" placeholder="/my-page" />
52-
</label>
51+
<label>Path to Page
52+
<input type="text" class="form-control" name="route" value="" placeholder="/my-page" />
53+
</label>
54+
</div>
5355

54-
<br /><br />
55-
<label>Restrict access to groups (leave blank for public):
56+
<div>
57+
<label class="form-label">Restrict access to groups (leave blank for public):</label>
58+
</div>
5659
<input type="text" class="form-control groups-list" name="groups" value="" placeholder="" />
57-
</label>
5860
</form>
5961
</div>
6062

0 commit comments

Comments
 (0)