diff --git a/groups/forms.py b/groups/forms.py index cd6aabf3..36a7b857 100644 --- a/groups/forms.py +++ b/groups/forms.py @@ -13,14 +13,16 @@ class UserForm(forms.Form): ('1', "未删除"), ('0', "删除"), ) - username = forms.CharField(label="账号",max_length=30, widget=forms.TextInput()) - name = forms.CharField(label="姓名", max_length=20, widget=forms.TextInput()) - empid = forms.CharField(label="工号", max_length=20, widget=forms.TextInput()) - password = forms.CharField(label="密码", max_length=256, widget=forms.PasswordInput()) - ubelongpart = forms.ModelChoiceField(queryset=s_models.Partment.objects.all()) - openid = forms.CharField(label="公众号openid", max_length=200, widget=forms.TextInput()) - nickname = forms.CharField(label="昵称", max_length=200, widget=forms.TextInput()) - mpopenid = forms.CharField(label="小程序openid", max_length=200, widget=forms.TextInput()) - deletemark = forms.ChoiceField(label='删除标记', choices=mark) - headimgurl = forms.CharField(label="头像", max_length=200, required=False, widget=forms.TextInput()) - usecomp = forms.ModelChoiceField(queryset=s_models.Partment.objects.all())#所属公司 + + userid = forms.CharField(widget=forms.HiddenInput()) + username = forms.CharField(label="账号",max_length=30, widget=forms.TextInput(attrs={'class': 'form-control'})) + name = forms.CharField(label="姓名", max_length=20, widget=forms.TextInput(attrs={'class': 'form-control'})) + empid = forms.CharField(label="工号", max_length=20, widget=forms.TextInput(attrs={'class': 'form-control'})) + #password = forms.CharField(label="密码", max_length=256, widget=forms.PasswordInput()) + ubelongpart = forms.ModelChoiceField(label="ubelongpart", queryset=s_models.Partment.objects.all(), widget=forms.Select(attrs={'class': 'form-control'})) + openid = forms.CharField(label="公众号openid", max_length=200, widget=forms.TextInput(attrs={'class': 'form-control'})) + nickname = forms.CharField(label="昵称", max_length=200, widget=forms.TextInput(attrs={'class': 'form-control'})) + mpopenid = forms.CharField(label="小程序openid", max_length=200, widget=forms.TextInput(attrs={'class': 'form-control'})) + deletemark = forms.ChoiceField(label='删除标记', choices=mark, widget=forms.Select(attrs={'class': 'form-control'})) + #headimgurl = forms.CharField(label="头像", max_length=200, required=False, widget=forms.TextInput(attrs={'class': 'form-control'})) + usecomp = forms.ModelChoiceField(label="所属公司", queryset=s_models.Partment.objects.all(), widget=forms.Select(attrs={'class': 'form-control'})) diff --git a/groups/templates/groups/company_user.html b/groups/templates/groups/company_user.html index b75a7cc0..1a9324be 100644 --- a/groups/templates/groups/company_user.html +++ b/groups/templates/groups/company_user.html @@ -12,8 +12,8 @@ {% block pagehead %}

- 公司列表 - companys list + 公司员工列表 +