Skip to content

Commit

Permalink
modificando notas
Browse files Browse the repository at this point in the history
  • Loading branch information
llerosa committed Aug 24, 2016
1 parent 26b7848 commit 7a6b0d6
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 14 deletions.
5 changes: 3 additions & 2 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
<!--
The nav bar that will be updated as we navigate between views.
-->
<ion-nav-bar class="bar-stable">
<!--<ion-nav-bar class="bar-stable">
<ion-nav-back-button>
</ion-nav-back-button>
</ion-nav-bar>
</ion-nav-bar>-->
<!--
The views will be rendered in the <ion-nav-view> directive below
Templates are in the /templates folder (but you could also
Expand Down
7 changes: 3 additions & 4 deletions www/js/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ angular.module('starter.services', [])
var chats = [{
id: 0,
name: 'Ben Sparrow',
lastText: 'You on your way?',
face: 'img/ben.png'
Text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet placerat odio. Aenean non erat nec purus lacinia maximus ac non nulla. In non feugiat purus, sed lobortis augue. Integer placerat malesuada odio, quis efficitur sapien. Sed fermentum purus vel tincidunt commodo. Aenean nec nisl vitae felis varius sagittis et a tortor. Praesent placerat, magna eget posuere aliquet, dui elit sagittis nulla, a finibus dui risus venenatis erat. Mauris varius pharetra dui a feugiat. Nulla imperdiet in eros eu ultrices.'
}, {
id: 1,
name: 'Max Lynx',
lastText: 'Hey, it\'s me',
face: 'img/max.png'
Text: 'Hey, it\'s me'

}];

return {
Expand Down
8 changes: 6 additions & 2 deletions www/templates/chat-detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@
-->
<ion-view view-title="{{chat.name}}">
<ion-content class="padding">
<img ng-src="{{chat.face}}" style="width: 64px; height: 64px">
<ion-nav-bar class="bar-stable">

<ion-nav-back-button>
</ion-nav-back-button>
</ion-nav-bar>
<p>
{{chat.lastText}}
{{chat.Text}}
</p>
</ion-content>
</ion-view>
12 changes: 9 additions & 3 deletions www/templates/tab-chats.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
<ion-view view-title="Chats">
<ion-view view-title="Notas">
<ion-content>
<ion-nav-bar class="bar-stable">

<ion-nav-back-button>
</ion-nav-back-button>
</ion-nav-bar>
<ion-list>
<ion-item class="item-remove-animate item-avatar item-icon-right" ng-repeat="chat in chats" type="item-text-wrap" href="#/tab/chats/{{chat.id}}">
<img ng-src="{{chat.face}}">

<h2>{{chat.name}}</h2>
<p>{{chat.lastText}}</p>
<p>{{chat.Text}}</p>
<i class="icon ion-chevron-right icon-accessory"></i>

<ion-option-button class="button-assertive" ng-click="remove(chat)">
Delete
</ion-option-button>
</ion-item>
</ion-list>

</ion-content>
</ion-view>
6 changes: 3 additions & 3 deletions www/templates/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
<ion-tabs class="tabs-icon-top tabs-color-active-positive">

<!-- Dashboard Tab -->
<ion-tab title="Status" icon-off="ion-ios-home-outline" icon-on="ion-ios-home" href="#/tab/dash">
<ion-tab title="Home" icon-off="ion-ios-home-outline" icon-on="ion-ios-home" href="#/tab/dash">
<ion-nav-view name="tab-dash"></ion-nav-view>
</ion-tab>

<!-- Chats Tab -->
<ion-tab title="Chats" icon-off="ion-ios-browsers-outline" icon-on="ion-ios-browsers" href="#/tab/chats">
<ion-tab title="Notas" icon-off="ion-ios-browsers-outline" icon-on="ion-ios-browsers" href="#/tab/chats">
<ion-nav-view name="tab-chats"></ion-nav-view>
</ion-tab>

<!-- Account Tab -->
<ion-tab title="Account" icon-off="ion-ios-gear-outline" icon-on="ion-ios-gear" href="#/tab/account">
<ion-tab title="Configuración" icon-off="ion-ios-gear-outline" icon-on="ion-ios-gear" href="#/tab/account">
<ion-nav-view name="tab-account"></ion-nav-view>
</ion-tab>

Expand Down

0 comments on commit 7a6b0d6

Please sign in to comment.