Browse Source

phone and telegram not mandatory on signup

master
idoctnef 8 years ago
parent
commit
5445a6f8a8
3 changed files with 6 additions and 10 deletions
  1. +0
    -4
      www/js/controllers.js
  2. +1
    -1
      www/templates/settings.html
  3. +5
    -5
      www/templates/signup.html

+ 0
- 4
www/js/controllers.js

@ -133,10 +133,6 @@ angular.module('starter.controllers', ['pascalprecht.translate'])
{ {
return(false); return(false);
} }
if(obj.phone==undefined)
{
return(false);
}
if(obj.avatar==undefined) if(obj.avatar==undefined)
{ {
return(false); return(false);

+ 1
- 1
www/templates/settings.html

@ -10,7 +10,7 @@
</select> </select>
</label> </label>
<p> <p>
version: CarsInCommon-v010
version: CarsInCommon-v011
</p> </p>
</ion-content> </ion-content>
</ion-view> </ion-view>

+ 5
- 5
www/templates/signup.html

@ -9,15 +9,15 @@
<form ng-submit="doSignup()"> <form ng-submit="doSignup()">
<div class="list"> <div class="list">
<label class="item item-input"> <label class="item item-input">
<span class="input-label">{{'Username' | translate }}</span>
<span class="input-label">{{'Username' | translate }}*</span>
<input type="text" ng-model="signupData.username"> <input type="text" ng-model="signupData.username">
</label> </label>
<label class="item item-input"> <label class="item item-input">
<span class="input-label">{{'Password' | translate }}</span>
<span class="input-label">{{'Password' | translate }}*</span>
<input type="password" ng-model="signupData.password"> <input type="password" ng-model="signupData.password">
</label> </label>
<label class="item item-input"> <label class="item item-input">
<span class="input-label">{{'Mail' | translate }}</span>
<span class="input-label">{{'Mail' | translate }}*</span>
<input type="email" ng-model="signupData.mail"> <input type="email" ng-model="signupData.mail">
</label> </label>
<label class="item item-input"> <label class="item item-input">
@ -29,14 +29,14 @@
<input type="text" ng-model="signupData.telegram"> <input type="text" ng-model="signupData.telegram">
</label> </label>
<label class="item item-input"> <label class="item item-input">
<span class="input-label">{{'Description' | translate }}</span>
<span class="input-label">{{'Description' | translate }}*</span>
<input type="text" ng-model="signupData.description"> <input type="text" ng-model="signupData.description">
</label> </label>
<!--<label class="item item-input"> <!--<label class="item item-input">
<span class="input-label">{{'Avatar' | translate }}</span> <span class="input-label">{{'Avatar' | translate }}</span>
<input type="text" ng-model="signupData.avatar"> <input type="text" ng-model="signupData.avatar">
</label>--> </label>-->
<p>{{'Avatar' | translate }}: <b>{{signupData.avatar}}</b></p>
<p>{{'Avatar' | translate }}*: <b>{{signupData.avatar}}</b></p>
<img ng-repeat="avatar in avatars" ng-click="avatarSelect('{{avatar}}')" ng-src="img/avatars/{{avatar}}.png" class="o-imgSelectAvatar" > <img ng-repeat="avatar in avatars" ng-click="avatarSelect('{{avatar}}')" ng-src="img/avatars/{{avatar}}.png" class="o-imgSelectAvatar" >
<label class="item"> <label class="item">

Loading…
Cancel
Save