This commit is contained in:
Markos Gogoulos
2026-04-20 09:30:27 +03:00
parent 7c7441045d
commit 1261719996
5 changed files with 159 additions and 119 deletions
+1
View File
@@ -78,6 +78,7 @@
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
</style>
<div class="form-group{% if field.errors %} has-error{% endif %}">
+69 -44
View File
@@ -1,44 +1,69 @@
{% extends "base.html" %}
{% load crispy_forms_tags %}
{% load static %}
{% block headtitle %}Publish media - {{PORTAL_NAME}}{% endblock headtitle %}
{% 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" %}
<div style="max-width: 900px; margin: 0 auto; padding: 20px; border-radius: 8px; box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);">
{% csrf_token %}
{% crispy form %}
</div>
</div>
{% endblock innercontent %}
{% extends "base.html" %}
{% load crispy_forms_tags %}
{% load static %}
{% block headtitle %}Publish media - {{PORTAL_NAME}}{% endblock headtitle %}
{% 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>
.state-options {
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
align-items: center;
}
.state-option {
display: flex;
align-items: center;
gap: 0.4rem;
cursor: pointer;
font-weight: normal;
margin-bottom: 0;
}
.state-option input { cursor: pointer; }
.shared-option {
border-left: 1px solid #dee2e6;
padding-left: 1.5rem;
margin-left: 0.25rem;
}
.confirm-state-section {
margin-top: 0.75rem;
padding: 0.75rem 1rem;
background: #fff3cd;
border: 1px solid #ffc107;
border-radius: 4px;
}
.confirm-state-section label {
display: flex;
align-items: flex-start;
gap: 0.5rem;
cursor: pointer;
font-weight: normal;
margin-bottom: 0;
}
.confirm-state-section input[type="checkbox"] {
margin-top: 3px;
flex-shrink: 0;
}
</style>
{% endblock extra_head %}
{% block innercontent %}
<div class="user-action-form-wrap">
{% include "cms/media_nav.html" with active_tab="publish" %}
<div style="max-width: 900px; margin: 0 auto; padding: 20px; border-radius: 8px; box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);">
{% crispy form %}
</div>
</div>
{% endblock innercontent %}