Kehitysehdotus-nappi footeriin

💡-nappi sivun alareunassa avaa kehitysehdotuslomakkeen suoraan
(navigoi todo/features-välilehdelle ja avaa uuden ehdotuksen).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-11 20:14:03 +02:00
parent 6628eaeb89
commit b4f687acb1
3 changed files with 32 additions and 0 deletions

View File

@@ -1667,6 +1667,7 @@
<footer> <footer>
<p id="footer-text">Noxus Intra &copy; 2026</p> <p id="footer-text">Noxus Intra &copy; 2026</p>
<button class="footer-idea-btn" onclick="openFeatureSuggestion()" title="Ehdota kehitysideaa">💡 Kehitysehdotus?</button>
</footer> </footer>
</div> </div>

View File

@@ -4556,6 +4556,16 @@ document.getElementById('netadmin-detail-form')?.addEventListener('submit', asyn
} catch (e) { alert('Tallennus epäonnistui: ' + e.message); } } catch (e) { alert('Tallennus epäonnistui: ' + e.message); }
}); });
// ==================== FOOTER: KEHITYSEHDOTUS ====================
function openFeatureSuggestion() {
switchToTab('todo', 'features');
// Pieni viive jotta tab ehtii latautua
setTimeout(() => {
openFeatureEdit(null);
}, 200);
}
// ==================== DOKUMENTIT ==================== // ==================== DOKUMENTIT ====================
let allDocuments = []; let allDocuments = [];

View File

@@ -493,6 +493,27 @@ footer {
font-size: 0.8rem; font-size: 0.8rem;
border-top: 1px solid #e5e7eb; border-top: 1px solid #e5e7eb;
margin-top: 1rem; margin-top: 1rem;
display: flex;
justify-content: center;
align-items: center;
gap: 1.5rem;
}
.footer-idea-btn {
background: none;
border: 1px dashed #ccc;
border-radius: 20px;
padding: 0.35rem 1rem;
font-size: 0.8rem;
color: #999;
cursor: pointer;
transition: all 0.2s;
}
.footer-idea-btn:hover {
border-color: var(--primary-color);
color: var(--primary-color);
background: #f0f7ff;
} }
/* Buttons */ /* Buttons */