mirror of
https://github.com/ae-utbm/sith.git
synced 2026-01-11 13:30:08 +00:00
remove unused SelectUser
This commit is contained in:
@@ -42,7 +42,6 @@ from django.forms import (
|
|||||||
Widget,
|
Widget,
|
||||||
)
|
)
|
||||||
from django.utils.timezone import now
|
from django.utils.timezone import now
|
||||||
from django.utils.translation import gettext
|
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
from phonenumber_field.widgets import RegionalPhoneNumberWidget
|
from phonenumber_field.widgets import RegionalPhoneNumberWidget
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
@@ -86,30 +85,6 @@ class NFCTextInput(TextInput):
|
|||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
class SelectUser(TextInput):
|
|
||||||
def render(self, name, value, attrs=None, renderer=None):
|
|
||||||
if attrs:
|
|
||||||
attrs["class"] = "select_user"
|
|
||||||
else:
|
|
||||||
attrs = {"class": "select_user"}
|
|
||||||
output = (
|
|
||||||
'%(content)s<div name="%(name)s" class="choose_user_widget" title="%(title)s"></div>'
|
|
||||||
% {
|
|
||||||
"content": super().render(name, value, attrs, renderer),
|
|
||||||
"title": _("Choose user"),
|
|
||||||
"name": name,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
output += (
|
|
||||||
'<span name="'
|
|
||||||
+ name
|
|
||||||
+ '" class="choose_user_button">'
|
|
||||||
+ gettext("Choose user")
|
|
||||||
+ "</span>"
|
|
||||||
)
|
|
||||||
return output
|
|
||||||
|
|
||||||
|
|
||||||
# Fields
|
# Fields
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user