mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-04-04 17:51:46 +00:00
Compare commits
2 Commits
a9b034255e
...
7062ccd5f8
| Author | SHA1 | Date | |
|---|---|---|---|
| 7062ccd5f8 | |||
| 9b525759f4 |
@@ -11,7 +11,6 @@ from selenium.webdriver.support.wait import WebDriverWait
|
|||||||
|
|
||||||
from RIGS import models as rigsmodels
|
from RIGS import models as rigsmodels
|
||||||
from . import pages
|
from . import pages
|
||||||
from envparse import env
|
|
||||||
|
|
||||||
from pytest_django.asserts import assertContains
|
from pytest_django.asserts import assertContains
|
||||||
|
|
||||||
|
|||||||
@@ -794,7 +794,7 @@ class EventChecklist(models.Model, RevisionMixin):
|
|||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def fields(self):
|
def fields(self):
|
||||||
return [n.name for n in list(self.model._meta.get_fields()) if n.name != 'reviewed_at' and n.name != 'reviewed_by' and not n.is_relation and not n.auto_created]
|
return [n.name for n in list(self._meta.get_fields()) if n.name != 'reviewed_at' and n.name != 'reviewed_by' and not n.is_relation and not n.auto_created]
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ['event']
|
ordering = ['event']
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
|
|
||||||
<div class="modal fade" id="modal" role="dialog" tabindex=-1></div>
|
<div class="modal fade" id="modal" role="dialog" tabindex=-1></div>
|
||||||
<script>
|
<script>
|
||||||
if({{ request.user.dark_theme|lower }} || window.matchMedia('(prefers-color-scheme: dark)')) {
|
if({{ request.user.dark_theme|lower }} || window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||||
document.body.setAttribute('data-theme', 'dark');
|
document.body.setAttribute('data-theme', 'dark');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -131,6 +131,7 @@ if({{ request.user.dark_theme|lower }} || window.matchMedia('(prefers-color-sche
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
|
//CTRL-Enter form submission
|
||||||
document.body.addEventListener('keydown', function(e) {
|
document.body.addEventListener('keydown', function(e) {
|
||||||
if(e.keyCode == 13 && (e.metaKey || e.ctrlKey)) {
|
if(e.keyCode == 13 && (e.metaKey || e.ctrlKey)) {
|
||||||
var target = e.target;
|
var target = e.target;
|
||||||
|
|||||||
Reference in New Issue
Block a user