feat: Replace 'Select All' button with an icon
Replaced the text-based 'Select All' button with a more intuitive and space-efficient Bootstrap icon (check2-square). This change enhances the user interface by providing a symbolic representation for the 'Select All' action. - Replaced the button in `static/index.html` with an SVG icon. - Removed the corresponding JavaScript code that sets the button's text content. - Removed the now-unused `select_all_button` translations from `translations.py`.
This commit is contained in:
@@ -141,7 +141,12 @@
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<div class="d-grid">
|
||||
<button id="select-all-btn" class="btn btn-primary"></button>
|
||||
<button id="select-all-btn" class="btn btn-primary">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-check2-square" viewBox="0 0 16 16">
|
||||
<path d="M3 14.5A1.5 1.5 0 0 1 1.5 13V3A1.5 1.5 0 0 1 3 1.5h8A1.5 1.5 0 0 1 12.5 3v1.5a.5.5 0 0 1-1 0V3a.5.5 0 0 0-.5-.5H3a.5.5 0 0 0-.5.5v10a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5V10a.5.5 0 0 1 1 0v3a1.5 1.5 0 0 1-1.5 1.5H3z"/>
|
||||
<path d="m8.354 10.354 7-7a.5.5 0 0 0-.708-.708L8 9.293 5.354 6.646a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708 0z"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -522,9 +527,7 @@
|
||||
if (document.getElementById('logout-btn')) {
|
||||
document.getElementById('logout-btn').textContent = translations.logout_button;
|
||||
}
|
||||
if (document.getElementById('select-all-btn')) {
|
||||
document.getElementById('select-all-btn').textContent = translations.select_all_button;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
async function fetchStandardItems() {
|
||||
|
||||
@@ -77,8 +77,7 @@ def get_all_translations(lang: str) -> Dict[str, str]:
|
||||
"cancel_button": "Abbrechen",
|
||||
"password_required": "Passwort erforderlich.",
|
||||
"incorrect_password": "Falsches Passwort.",
|
||||
"generic_error": "Ein Fehler ist aufgetreten.",
|
||||
"select_all_button": "Alle auswählen"
|
||||
"generic_error": "Ein Fehler ist aufgetreten."
|
||||
}
|
||||
else: # Fallback to English
|
||||
return {
|
||||
@@ -127,6 +126,5 @@ def get_all_translations(lang: str) -> Dict[str, str]:
|
||||
"cancel_button": "Cancel",
|
||||
"password_required": "Password required.",
|
||||
"incorrect_password": "Incorrect password.",
|
||||
"generic_error": "An error occurred.",
|
||||
"select_all_button": "Select All"
|
||||
"generic_error": "An error occurred."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user