@ -158,7 +158,7 @@ def CssPlaceholder(current_distribusi):
distribusi = Distribusis.query.filter_by(
distribusiname=current_distribusi
).first()
if distribusi is not None:
if distribusi is not None and distribusi.publictheme is not None:
cssplaceholder = GetPublicCssFile(distribusi)
else:
with open("themes/editor/placeholder.css") as f:
@ -102,7 +102,10 @@ fieldset.tagfield > input {
width: 100%;
max-width: 100%;
}
#publicthemes > ul {
max-height: 20em;
overflow: scroll;
input {
border: none;
background: #E0B0FF;
@ -25,7 +25,7 @@
<hr>
<form method="POST" enctype="multipart/form-data" action="{{ url_for('theme') }}">
{{ publicthemeform.csrf_token }}
<fieldset class="required">
<fieldset id="publicthemes" class="required">
{{ publicthemeform.publicthemes.label }}
{{ publicthemeform.publicthemes }}
</fieldset>