-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88d8e42
commit 50497b5
Showing
13 changed files
with
160 additions
and
125 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<ion-menu [content]="menu"> | ||
<ion-menu [content]="menu" type="reveal"> | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-title> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<button ion-item icon-end (click)="pagePerfil()"> | ||
<button ion-item icon-end (click)="pagePerfil()" menuClose> | ||
Meu Perfil | ||
<ion-icon name="contact" ></ion-icon> | ||
</button> | ||
<button ion-item icon-end (click)="feedback()"> | ||
<button ion-item icon-end (click)="feedback()" menuClose> | ||
Feedback | ||
<ion-icon name="megaphone" ></ion-icon> | ||
</button> | ||
<button ion-item icon-end (click)="ajuda()"> | ||
<button ion-item icon-end (click)="ajuda()" menuClose> | ||
Sobre o app | ||
<ion-icon name="help-circle" ></ion-icon> | ||
</button> | ||
<button ion-item icon-end (click)="dicas()"> | ||
<button ion-item icon-end (click)="dicas()" menuClose> | ||
Dicas e dúvidas | ||
<ion-icon name="md-bulb"></ion-icon> | ||
</button> | ||
<button ion-item icon-end (click)="logout()"> | ||
<button ion-item icon-end (click)="logout()" menuClose> | ||
Sair | ||
<ion-icon name="exit" ></ion-icon> | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/pages/perfil/modal-editar-perfil/modal-editar-perfil.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<ion-header> | ||
<ion-navbar color="navBarColor"> | ||
<ion-buttons right> | ||
<button ion-button (click)="dismiss()"> | ||
<span ion-text color="primary" showWhen="ios">Cancel</span> | ||
<ion-icon name="md-close" showWhen="android, windows"></ion-icon> | ||
</button> | ||
</ion-buttons> | ||
<ion-title text-center><span class="titulo">Alterar Perfil</span></ion-title> | ||
</ion-navbar> | ||
</ion-header> | ||
<ion-content> | ||
<ion-item> | ||
<ion-label stacked> | ||
<ion-icon name="body" item-start></ion-icon><b>Nome</b> | ||
</ion-label> | ||
<ion-input type="text" name="" placeholder="Insira seu nome..." [(ngModel)]="user.name"></ion-input> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label stacked> | ||
<ion-icon name="calendar" item-start></ion-icon> <b>Data de nascimento</b> | ||
</ion-label> | ||
<ion-datetime displayFormat="DD-MM-YYYY" pickerFormat="DD MMMM YYYY" [(ngModel)]="user.nascimento" | ||
monthNames="{{functions.monthNames}}" cancelText="Cancelar" doneText="Feito" | ||
placeholder="Digite sua data de nascimento"> | ||
</ion-datetime> | ||
</ion-item> | ||
<ion-item> | ||
<button ion-button full color="primary" (click)="cadastrar()">Cadastrar</button> | ||
</ion-item> | ||
</ion-content> |
26 changes: 26 additions & 0 deletions
26
src/pages/perfil/modal-editar-perfil/modal-editar-perfil.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Component } from '@angular/core'; | ||
import { NavParams, ViewController } from 'ionic-angular'; | ||
|
||
import { FunctionsProvider } from '../../../providers/functions/functions'; | ||
import { ApiProvider } from '../../../providers/api/api'; | ||
|
||
@Component({ | ||
selector: 'modal-editar-perfil', | ||
templateUrl: 'modal-editar-perfil.html', | ||
}) | ||
|
||
export class ModalEditarPerfilPage { | ||
public user = this.navParams.get('data'); | ||
private password = { | ||
password: '', | ||
password2: '' | ||
}; | ||
|
||
constructor(public navParams: NavParams, public viewCtrl: ViewController, | ||
public functions: FunctionsProvider, public api: ApiProvider) { | ||
} | ||
|
||
public dismiss() { | ||
this.viewCtrl.dismiss(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters