diff --git a/hackatonApp/www/home-categories.json b/hackatonApp/www/home-categories.json index 9cfd578..068778d 100644 --- a/hackatonApp/www/home-categories.json +++ b/hackatonApp/www/home-categories.json @@ -47,29 +47,41 @@ "image":"img/Present.png", "home_sources":[ { - "id":"McDonald", - "title":"McDonald", - "description":"Sconto di 2 euro sul BigMac.", - "image":"img/mcdonaldlogo.png" + "id":"Emozione3", + "title":"Pacchetto Emozione3", + "description":"20% di sconto sul cofanetto regalo Avventura", + "image":"img/promozioni/emozione.png" }, { - "id":"McDonald", - "title":"McDonald", - "description":"Reuters.com is your source for breaking news, business, financial and investing news, including personal finance and stocks. Reuters is the leading global provider of news, financial information and technology solutions to the world's media, financial institutions, businesses and individuals.", - "image":"img/mcdonaldlogo.png" + "id":"Chagall", + "title":"Mostra di Chagall", + "description":"Biglietto scontato del 10%", + "image":"img/promozioni/chagall.png" }, { - "id":"McDonald", - "title":"McDonald", - "description":"CNN.com delivers up-to-the-minute news and information on the latest top stories, weather, entertainment, politics and more.", - "image":"img/mcdonaldlogo.png" + "id":"Fiorentina", + "title":"Fiorentina Calcio", + "description":"Vieni a vedere la Viola allo stadio! Il biglietto ti costa solo 10€ e ti offriamo la birra", + "image":"img/promozioni/fiorentina.png" }, { - "id":"McDonald", - "title":"McDonald", - "description":"Latest World news, comment and analysis from the Guardian, the world's leading liberal voice", - "image":"img/mcdonaldlogo.png" + "id":"NaturaSi", + "title":"NaturaSi", + "description":"3 confezioni di ragù Alce Nero per te!", + "image":"img/promozioni/naturasi.png" + }, + { + "id":"Comisc", + "title":"Lucca Comics And Games", + "description":"Sconto del 15% sul prezzo del biglietto", + "image":"img/promozioni/comics.png" + }, + { + "id":"Trenitalia", + "title":"Trenitalia", + "description":"Biglietto per tratta regionale - 15% di sconto!", + "image":"img/promozioni/trenitalia.png" } ] }, @@ -77,5 +89,15 @@ "id":"settings", "title":"Impostazioni", "image":"img/Settings.png" + }, + { + "id":"allTickets", + "title":"Tutti I Biglietti", + "image":"" + }, + { + "id":"allShop", + "title":"Tutti Gli Acquisti", + "image":"" } ] diff --git a/hackatonApp/www/img/promozioni/chagall.png b/hackatonApp/www/img/promozioni/chagall.png new file mode 100644 index 0000000..28eb5b1 Binary files /dev/null and b/hackatonApp/www/img/promozioni/chagall.png differ diff --git a/hackatonApp/www/img/promozioni/comics.png b/hackatonApp/www/img/promozioni/comics.png new file mode 100644 index 0000000..50e4294 Binary files /dev/null and b/hackatonApp/www/img/promozioni/comics.png differ diff --git a/hackatonApp/www/img/promozioni/emozione.png b/hackatonApp/www/img/promozioni/emozione.png new file mode 100644 index 0000000..766fd07 Binary files /dev/null and b/hackatonApp/www/img/promozioni/emozione.png differ diff --git a/hackatonApp/www/img/promozioni/fiorentina.png b/hackatonApp/www/img/promozioni/fiorentina.png new file mode 100644 index 0000000..fd02def Binary files /dev/null and b/hackatonApp/www/img/promozioni/fiorentina.png differ diff --git a/hackatonApp/www/img/promozioni/mcdonalds.png b/hackatonApp/www/img/promozioni/mcdonalds.png new file mode 100644 index 0000000..fa3c552 Binary files /dev/null and b/hackatonApp/www/img/promozioni/mcdonalds.png differ diff --git a/hackatonApp/www/img/promozioni/naturasi.png b/hackatonApp/www/img/promozioni/naturasi.png new file mode 100644 index 0000000..210e6c8 Binary files /dev/null and b/hackatonApp/www/img/promozioni/naturasi.png differ diff --git a/hackatonApp/www/img/promozioni/trenitalia.png b/hackatonApp/www/img/promozioni/trenitalia.png new file mode 100644 index 0000000..31860f1 Binary files /dev/null and b/hackatonApp/www/img/promozioni/trenitalia.png differ diff --git a/hackatonApp/www/img/sfondoSettings.png b/hackatonApp/www/img/sfondoSettings.png new file mode 100644 index 0000000..66a7bd8 Binary files /dev/null and b/hackatonApp/www/img/sfondoSettings.png differ diff --git a/hackatonApp/www/img/splashBackground.jpg b/hackatonApp/www/img/splashBackground.jpg new file mode 100644 index 0000000..0e7a83b Binary files /dev/null and b/hackatonApp/www/img/splashBackground.jpg differ diff --git a/hackatonApp/www/js/app.js b/hackatonApp/www/js/app.js index 4fbf597..0ef3bd8 100644 --- a/hackatonApp/www/js/app.js +++ b/hackatonApp/www/js/app.js @@ -269,12 +269,22 @@ angular.module('your_app_name', [ } }) - .state('app.allTickets', { - url: "/allTickets", + .state('app.alltickets', { + url: "/alltickets", views: { 'menuContent': { templateUrl: "views/app/allTickets.html", - controller: 'AllTicketsCtrl' + controller: 'CategoryCtrl' + } + } + }) + + .state('app.allshop', { + url: "/allshop", + views: { + 'menuContent': { + templateUrl: "views/app/allTickets.html", + controller: 'CategoryCtrl' } } }) diff --git a/hackatonApp/www/js/controllers.js b/hackatonApp/www/js/controllers.js index 7156f0d..3b4e55f 100644 --- a/hackatonApp/www/js/controllers.js +++ b/hackatonApp/www/js/controllers.js @@ -544,6 +544,9 @@ angular.module('your_app_name.controllers', []) }) .controller('AllTicketsCtrl', function($scope, $http) { }) + +.controller('AllShopCtrl', function($scope, $http) { +}) .controller('HomeCtrl', function($scope, $http) { $scope.home_categories = []; @@ -559,7 +562,12 @@ angular.module('your_app_name.controllers', []) $scope.categoryId = $stateParams.categoryId; console.log($scope.categoryId); - + $scope.modifica=false; + $scope.cambiaModifica = function() + { + $scope.modifica=!$scope.modifica; + + } switch($scope.categoryId) { case "addticketwithphoto": @@ -591,6 +599,16 @@ angular.module('your_app_name.controllers', []) console.log("odod"); break; } + case "alltickets": + { + $scope.categoryTitle = "Tutti I Biglietti"; + break; + } + case "allshop": + { + $scope.categoryTitle = "Tutti Gli Acquisti"; + break; + } } diff --git a/hackatonApp/www/views/app/category.html b/hackatonApp/www/views/app/category.html index 9ec0d1f..c166cc8 100644 --- a/hackatonApp/www/views/app/category.html +++ b/hackatonApp/www/views/app/category.html @@ -1,4 +1,4 @@ - + {{categoryTitle}} @@ -34,26 +34,54 @@ - -
+ + + + +
- +
-
Brynn Evans
-
@brynn
+
{{user.name}} {{user.surname}}
-
+
-
-

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

+
+ + + + + +
+ + +gfgr \ No newline at end of file diff --git a/hackatonApp/www/views/app/settings.html b/hackatonApp/www/views/app/settings.html index 6be2cce..e69de29 100644 --- a/hackatonApp/www/views/app/settings.html +++ b/hackatonApp/www/views/app/settings.html @@ -1,50 +0,0 @@ - - - - - - fvvv - - -
    - -
    TOGGLE
    - - Airplane Mode - Wi-Fi - Bluetooth - Personal Hotspot - -
    CHECKBOXES
    - - Option 1 - Option 2 - Option 3 - -
    RADIO
    - - Choose A - Choose B - Choose C - -
    RANGES
    - -
    - - - -
    -
    - - - -
    - -
    - - -
-
-
diff --git a/hackatonApp/www/views/app/side-menu.html b/hackatonApp/www/views/app/side-menu.html index 922a8b8..33d9f8f 100644 --- a/hackatonApp/www/views/app/side-menu.html +++ b/hackatonApp/www/views/app/side-menu.html @@ -20,13 +20,13 @@

Ciao {{user.name}}.

Bentornata!

- + - + - - - + + + diff --git a/hackatonApp/www/views/auth/auth.html b/hackatonApp/www/views/auth/auth.html index 4c695d4..5519e2d 100644 --- a/hackatonApp/www/views/auth/auth.html +++ b/hackatonApp/www/views/auth/auth.html @@ -1,4 +1,4 @@ -
+