Browse Source

Удалил поле skype в учётке

devel
Dmitry 9 years ago
parent
commit
4cd9f0f7b9
  1. 3
      accounts_app/models.py
  2. 4
      templates/accounts/acc_list.html
  3. 11
      templates/accounts/create_acc.html
  4. 10
      templates/accounts/settings/ch_info.html

3
accounts_app/models.py

@ -49,10 +49,9 @@ class UserProfile(AbstractBaseUser, PermissionsMixin):
telephone = models.CharField( telephone = models.CharField(
max_length=16, max_length=16,
verbose_name='Telephone number', verbose_name='Telephone number',
unique=True,
#unique=True,
validators=[RegexValidator(r'^\+[7,8,9,3]\d{10,11}$')] validators=[RegexValidator(r'^\+[7,8,9,3]\d{10,11}$')]
) )
skype = models.CharField(max_length=20, blank=True)
avatar = models.ForeignKey(Photo, null=True, blank=True) avatar = models.ForeignKey(Photo, null=True, blank=True)
email = models.EmailField() email = models.EmailField()

4
templates/accounts/acc_list.html

@ -16,7 +16,7 @@
<th>Ник</th> <th>Ник</th>
<th>ФИО (или ник если нет)</th> <th>ФИО (или ник если нет)</th>
<th class="col-sm-2">Телефон</th> <th class="col-sm-2">Телефон</th>
<th class="col-sm-2">Skype</th>
<th class="col-sm-2">Email</th>
<th width="150">&mdash;</th> <th width="150">&mdash;</th>
</tr> </tr>
</thead> </thead>
@ -31,7 +31,7 @@
<td>{{ usr.get_full_name }}</td> <td>{{ usr.get_full_name }}</td>
<td>{% if usr.telephone %}<a href="tel:{{ usr.telephone }}">{{ usr.telephone }}</a>{% else %} <td>{% if usr.telephone %}<a href="tel:{{ usr.telephone }}">{{ usr.telephone }}</a>{% else %}
Нету{% endif %}</td> Нету{% endif %}</td>
<td>{% if usr.skype %}<a href="skype:{{ usr.skype }}?call">{{ usr.skype }}{% else %}
<td>{% if usr.email %}<a href="mailto:{{ usr.email }}">{{ usr.email }}{% else %}
Нету{% endif %}</a></td> Нету{% endif %}</a></td>
<td class="btn-group"> <td class="btn-group">
<a href="{% url 'profile_appoint_task' usr.id %}" class="btn btn-sm btn-default" <a href="{% url 'profile_appoint_task' usr.id %}" class="btn btn-sm btn-default"

11
templates/accounts/create_acc.html

@ -67,17 +67,6 @@
class="form-control" required> class="form-control" required>
</div> </div>
</div> </div>
<div class="form-group">
<label for="skype"><a title="Что это" target="_blank"
href="http://lurkmore.to/Skype">Skype</a></label>
<div class="input-group">
<span class="input-group-addon"><span
class="glyphicon glyphicon-earphone"></span></span>
<input id="skype" type="text" value="{{ newuser.skype }}" name="skype"
placeholder="Skype" class="form-control">
</div>
</div>
<div class="form-group"> <div class="form-group">
<label for="passw1">Введите пароль</label> <label for="passw1">Введите пароль</label>

10
templates/accounts/settings/ch_info.html

@ -49,16 +49,6 @@
</div> </div>
</div> </div>
<div class="form-group">
<label for="skype"><a title="Что это" target="_blank" href="http://lurkmore.to/Skype">Skype</a></label>
<div class="input-group">
<span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
<input id="skype" type="text" value="{{ user.skype }}" name="skype" placeholder="Skype"
class="form-control">
</div>
</div>
<div class="form-group"> <div class="form-group">
<label for="oldpassw">Старый пароль</label> <label for="oldpassw">Старый пароль</label>

Loading…
Cancel
Save