mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-03-15 01:12:20 -04:00
1
This commit is contained in:
@@ -123,6 +123,7 @@ class MediaPublishForm(forms.ModelForm):
|
|||||||
|
|
||||||
widgets = {
|
widgets = {
|
||||||
"category": CategoryModalWidget(),
|
"category": CategoryModalWidget(),
|
||||||
|
"state": forms.RadioSelect(),
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, user, *args, **kwargs):
|
def __init__(self, user, *args, **kwargs):
|
||||||
|
|||||||
@@ -6,6 +6,33 @@
|
|||||||
|
|
||||||
{% block headermeta %}{% endblock headermeta %}
|
{% 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 %}
|
{% block innercontent %}
|
||||||
<div class="user-action-form-wrap">
|
<div class="user-action-form-wrap">
|
||||||
{% include "cms/media_nav.html" with active_tab="publish" %}
|
{% include "cms/media_nav.html" with active_tab="publish" %}
|
||||||
|
|||||||
@@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
{% block topimports %}{%endblock topimports %}
|
{% block topimports %}{%endblock topimports %}
|
||||||
|
|
||||||
|
{% block extra_head %}{% endblock extra_head %}
|
||||||
|
|
||||||
{% include "config/index.html" %}
|
{% include "config/index.html" %}
|
||||||
|
|
||||||
{% if not USE_ROUNDED_CORNERS %}
|
{% if not USE_ROUNDED_CORNERS %}
|
||||||
|
|||||||
Reference in New Issue
Block a user