This commit is contained in:
Markos Gogoulos
2026-03-14 16:29:54 +02:00
parent 715e6dec72
commit 10cc4eb069
3 changed files with 30 additions and 0 deletions

View File

@@ -123,6 +123,7 @@ class MediaPublishForm(forms.ModelForm):
widgets = {
"category": CategoryModalWidget(),
"state": forms.RadioSelect(),
}
def __init__(self, user, *args, **kwargs):

View File

@@ -6,6 +6,33 @@
{% block headermeta %}{% endblock headermeta %}
{% block extra_head %}
<script>
(function() {
var url = new URL(window.location.href);
if (sessionStorage.getItem('lms_embed_mode') === 'true' && url.searchParams.get('mode') !== 'lms_embed_mode') {
url.searchParams.set('mode', 'lms_embed_mode');
window.location.replace(url.toString());
}
})();
</script>
<style>
#div_id_state ul {
display: flex;
flex-wrap: wrap;
gap: 12px;
list-style: none;
padding: 0;
margin: 0;
}
#div_id_state ul li {
display: flex;
align-items: center;
gap: 6px;
}
</style>
{% endblock extra_head %}
{% block innercontent %}
<div class="user-action-form-wrap">
{% include "cms/media_nav.html" with active_tab="publish" %}

View File

@@ -21,6 +21,8 @@
{% block topimports %}{%endblock topimports %}
{% block extra_head %}{% endblock extra_head %}
{% include "config/index.html" %}
{% if not USE_ROUNDED_CORNERS %}