Skip to content

Commit c6f2313

Browse files
fix: theme links
1 parent 387b3bb commit c6f2313

2 files changed

Lines changed: 142 additions & 119 deletions

File tree

  • pythoncms
Lines changed: 136 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -1,129 +1,146 @@
1-
{%extends get_active_back_theme()+'/base.html'%}
2-
3-
4-
{%block content%}
5-
<br>
1+
{%extends get_active_back_theme()+'/base.html'%} {%block content%}
2+
<br />
63
<i>Note: change theme in .env file also </i>
7-
<br>
4+
<br />
85
<div class="container">
6+
<br />
7+
<div class="card" style="color: black">
8+
<div class="card-header">Front Theme</div>
9+
<div class="card-body">
10+
<table class="table">
11+
<thead>
12+
<tr>
13+
<th>Choose</th>
914

10-
<br>
11-
<div class="card" style="color: black">
12-
<div class="card-header">
13-
Front Theme
14-
</div>
15-
<div class="card-body">
16-
<table class="table">
17-
<thead>
18-
<tr>
19-
<th>Name</th>
20-
<th>Author</th>
21-
<th></th>
22-
</tr>
23-
</thead>
24-
<tbody>
25-
{%for key in all_front_info%}
26-
<tr>
27-
<td>{{key}}</td>
28-
<td>{{all_front_info[key]['author']}}</td>
29-
<td>
30-
{%if active_front_theme != key%}
31-
<a class="" href="{{url_for('theme.activate_front_theme', theme_name=key)}}">
32-
<div class="form-check">
33-
<input class="form-check-input" type="radio" value="" disabled="">
34-
</div>
35-
</a>
36-
{%else%}
37-
<div class="form-check">
38-
<input name="" class="form-check-input" type="radio" value="" id="defaultRadio2" checked="">
39-
</div>
40-
{%endif%}
41-
</td>
42-
</tr>
43-
{%endfor%}
44-
</tbody>
45-
</table>
46-
</div>
47-
</div>
48-
<br>
49-
<div class="card" style="color: black">
50-
<div class="card-header">
51-
Back Theme
52-
</div>
53-
<div class="card-body">
54-
<table class="table">
55-
<thead>
56-
<tr>
57-
<th>Name</th>
58-
<th>Author</th>
59-
<th></th>
60-
</tr>
61-
</thead>
62-
<tbody>
63-
{%for key in all_back_info%}
64-
<tr>
65-
<td>{{key}}</td>
66-
<td>{{all_back_info[key]['author']}}</td>
67-
<td>
68-
{%if active_back_theme != key%}
69-
<a class="" href="{{url_for('theme.activate_back_theme', theme_name=key)}}">
70-
<div class="form-check">
71-
<input class="form-check-input" type="radio" value="" disabled="">
72-
</div>
73-
</a>
74-
{%else%}
75-
<div class="form-check">
76-
<input name="" class="form-check-input" type="radio" value="" checked="">
77-
</div>
78-
{%endif%}
79-
</td>
80-
</tr>
81-
{%endfor%}
82-
</tbody>
83-
</table>
84-
</div>
15+
</tr>
16+
</thead>
17+
<tbody>
18+
{%for key in all_front_info%}
19+
<tr>
20+
<td>
21+
22+
{%if active_front_theme != key%}
23+
<a
24+
class=""
25+
href="{{url_for('theme.activate_front_theme', theme_name=key)}}"
26+
>
27+
28+
{{key}} by
29+
{{all_front_info[key]['author']}}
30+
31+
<input
32+
type="radio"
33+
value=""
34+
disabled=""
35+
/>
36+
37+
</a>
38+
{%else%}
39+
<a
40+
class=""
41+
href="{{url_for('theme.activate_front_theme', theme_name=key)}}"
42+
>
43+
44+
{{key}} by
45+
{{all_front_info[key]['author']}}
46+
47+
<input
48+
type="radio"
49+
value=""
50+
checked
51+
/>
52+
53+
</a>
54+
{%endif%}
55+
</td>
56+
</tr>
57+
{%endfor%}
58+
</tbody>
59+
</table>
8560
</div>
86-
<br>
87-
<div class="card" style="color: black">
88-
<div class="card-header">
89-
Iconset
90-
</div>
91-
<div class="card-body">
92-
<table class="table">
93-
<thead>
94-
<tr>
95-
<th>Name</th>
96-
<th></th>
97-
</tr>
98-
</thead>
99-
<tbody>
100-
{%for icon in ['fa', 'boxicons']%}
101-
<tr>
102-
<td>{{icon}}</td>
103-
<td>
104-
{%if active_iconset != icon%}
105-
<a class="" href="{{url_for('theme.activate_iconset', name=icon)}}">
106-
<div class="form-check">
107-
<input class="form-check-input" type="radio" value="" disabled="">
108-
</div>
109-
</a>
110-
{%else%}
111-
<div class="form-check">
112-
<input name="" class="form-check-input" type="radio" value="" checked="">
113-
</div>
114-
{%endif%}
115-
</td>
116-
</tr>
117-
{%endfor%}
118-
</tbody>
119-
</table>
120-
</div>
61+
</div>
62+
<br />
63+
<div class="card" style="color: black">
64+
<div class="card-header">Back Theme</div>
65+
<div class="card-body">
66+
<table class="table">
67+
<thead>
68+
<tr>
69+
<th>choose</th>
70+
</tr>
71+
</thead>
72+
<tbody>
73+
{%for key in all_back_info%}
74+
<tr>
75+
<td>
76+
{%if active_back_theme
77+
!= key%}
78+
<a
79+
class="theme-input"
80+
class=""
81+
href="{{url_for('theme.activate_back_theme', theme_name=key)}}"
82+
>
83+
{{key}} by {{all_back_info[key]['author']}}
84+
<input type="radio" value="" disabled="" />
85+
</a>
86+
{%else%}
87+
<a
88+
class="theme-input"
89+
class=""
90+
href="{{url_for('theme.activate_back_theme', theme_name=key)}}"
91+
>
92+
{{key}} by {{all_back_info[key]['author']}}
93+
<input name="" type="radio" value="" checked="" />
94+
</a>
95+
{%endif%}
96+
</td>
97+
</tr>
98+
{%endfor%}
99+
</tbody>
100+
</table>
121101
</div>
102+
</div>
103+
<br />
104+
<div class="card" style="color: black">
105+
<div class="card-header">Iconset</div>
106+
<div class="card-body">
107+
<table class="table">
108+
<thead>
109+
<tr>
110+
<th>Name</th>
111+
</tr>
112+
</thead>
113+
<tbody>
114+
{%for icon in ['fa', 'boxicons']%}
115+
<tr>
116+
<td>
117+
{%if active_iconset != icon%}
118+
<a
119+
class="theme-input"
120+
href="{{url_for('theme.activate_iconset', name=icon)}}"
121+
>
122+
{{icon}}
123+
<input type="radio" value="" disabled="" />
124+
</a>
125+
{%else%}
126+
<a
127+
class="theme-input"
128+
href="{{url_for('theme.activate_iconset', name=icon)}}"
129+
>
130+
{{icon}}
131+
<input type="radio" value="" checked="" />
132+
</a>
122133

123-
<div>
124-
125-
</div>
134+
{%endif%}
135+
</td>
136+
</tr>
137+
{%endfor%}
138+
</tbody>
139+
</table>
140+
</div>
141+
</div>
126142

143+
<div></div>
127144
</div>
128145

129146
{% endblock %}

pythoncms/static/themes/back/sbadmin/base.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919

2020
<!-- Custom styles for this template-->
2121
<link href="{{url_for('static', filename='themes/back/sbadmin/css/sb-admin-2.min.css')}}" rel="stylesheet">
22+
23+
<style>
24+
.theme-input:hover{
25+
cursor: pointer !important;
26+
}
27+
</style>
2228
{%block head%}
2329
{%endblock%}
2430
</head>

0 commit comments

Comments
 (0)