Esempio n. 1
0
 class Meta:
     model = Organization
     exclude = ["user", "status", "status_changed", "accept_terms_and_conditions", "rejection_message"]
     widgets = {
         "email": EmailInput(),
         "legal_representative_email": EmailInput(),
         "city": forms.Select(attrs={"data-url": reverse_lazy("city-autocomplete"),}),
     }
 class Meta:
     model = models.RegisterNGORequest
     fields = [
         "name",
         "county",
         "city",
         "address",
         "email",
         "contact_name",
         "contact_phone",
         "social_link",
         "description",
         "past_actions",
         "resource_types",
         "has_netopia_contract",
         "avatar",
         "last_balance_sheet",
         "statute",
     ]
     widgets = {
         "email": EmailInput(),
         # # "has_netopia_contract": forms.CheckboxInput(),
         # "avatar": AdminResubmitImageWidget,
         # "last_balance_sheet": AdminResubmitFileWidget,
         # "statute": AdminResubmitFileWidget,
     }
Esempio n. 3
0
    class Meta:
        model = models.Candidate
        exclude = ["org", "status", "status_changed"]

        widgets = {
            "is_proposed": forms.HiddenInput(),
            "email": EmailInput(),
        }
Esempio n. 4
0
 class Meta:
     model = Organization
     exclude = [
         "user",
         "status",
         "status_changed",
         "report_2019",
         "report_2018",
         "report_2017",
         "fiscal_certificate",
         "statement",
         "rejection_message",
     ]
     widgets = {
         "email": EmailInput(),
         "legal_representative_email": EmailInput(),
         "city": forms.Select(attrs={"data-url": reverse_lazy("city-autocomplete"),}),
     }
Esempio n. 5
0
 class Meta:
     model = models.PaymentOrder
     test = forms.CheckboxInput()
     fields = ("amount", "first_name", "last_name", "phone", "email",
               "address", "show_name")
     widgets = {
         "email": EmailInput(),
         "amount": forms.NumberInput(attrs={"class": "input"}),
         "show_name": forms.CheckboxInput(),
     }
Esempio n. 6
0
class EmailField(DjangoEmailField):
    widget = EmailInput()
 class Meta:
     model = models.NGOHelper
     fields = ("name", "email", "message", "phone")
     widgets = {"email": EmailInput()}
Esempio n. 8
0
 class Meta:
     model = models.NGOHelper
     fields = ["name", "email", "message", "phone", "resource_image"]
     # fields="__all__"
     widgets = {"email": EmailInput()}
Esempio n. 9
0
 class Meta:
     model = User
     fields = ['first_name', 'last_name', 'email']
     widgets = {
         'email': EmailInput(attrs={'class': 'input'}),
     }