git-svn-id: https://msi/svn/firstRepo/WebClient/branches/NewRelease@58 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<br>
|
||||
<center>
|
||||
<h1 style='font-size: xx-large;'><%= app.Name %><sup style='font-size: medium;'>©</sup></h1>
|
||||
<p>Copyright 2015<br>Lievitario è un marchio registrato</p>
|
||||
<p>Copyright 2015-2016<br>Lievitario è un marchio registrato</p>
|
||||
<br>Applicazione Ricettario del <br><br>'<i><b>Gruppo La Pasta Madre</b></i>'<br><br>
|
||||
<b>Versione:</b> <%= app.Version %><br><br>
|
||||
<b>Sviluppatore:</b> <%= app.Author %><br><br>
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
<% var item = data[i]; %>
|
||||
<li><a href="#ricetta/<%= item.ricetta_id%>" class="ui-btn ui-btn-icon-right ui-icon-carat-r">
|
||||
<% if(item.firstImage === ""){ %>
|
||||
<img class="thmbImg emptyItemList">
|
||||
<!--<img class="thmbImg emptyItemList">-->
|
||||
<%}else{%>
|
||||
<img class="thmbImg" src='<%=myManifest.Settings.DefaultURL%>/api/photo/thumbnail/<%=item.firstImage%>'>
|
||||
<!--<img class="thmbImg" src='<%=myManifest.Settings.DefaultURL%>/api/photo/thumbnail/<%=item.firstImage%>'>-->
|
||||
<%}%>
|
||||
<div class='ricettaTitolo'><%= unescape(item.titolo) %></div>
|
||||
<div class='ricettaAutore'><%= unescape(item.autore) %></div>
|
||||
|
||||
@@ -138,7 +138,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/home/homeViewTemplate.
|
||||
this.changePicture(Profile.data.picture);
|
||||
}
|
||||
|
||||
Debug.writeMessage(myManifest.Agent.ua);
|
||||
//Debug.writeMessage(myManifest.Agent.ua);
|
||||
},
|
||||
onClosing: function () {
|
||||
if (this.freeWall !== null)
|
||||
|
||||
@@ -57,7 +57,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/item/itemViewTemplate.
|
||||
onShowed: function(){
|
||||
var self = this;
|
||||
$('body').scrollTop(0);
|
||||
|
||||
/*
|
||||
this.galleryWall = new Freewall("#Gallery");
|
||||
this.galleryWall.reset({
|
||||
selector: '.brick',
|
||||
@@ -73,6 +73,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/item/itemViewTemplate.
|
||||
images.find('img').load(function() {
|
||||
self.galleryWall.fitWidth();
|
||||
});
|
||||
*/
|
||||
|
||||
$.mobile.loading('hide');
|
||||
},
|
||||
@@ -95,7 +96,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/item/itemViewTemplate.
|
||||
self.scrollPositions = [];
|
||||
self.$arrayContent = self.$el.find('div[data-role="content"]');
|
||||
self.$arrayNavBar = self.$el.find('div[data-role="navbar"] a');
|
||||
|
||||
/*
|
||||
self.$photos = self.$el.find('#contentFoto a');
|
||||
self.$photos.on("click", function(e){
|
||||
e.preventDefault();
|
||||
@@ -115,7 +116,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/item/itemViewTemplate.
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
*/
|
||||
for (var i = self.$arrayContent.length - 1; i >= 0; i--) {
|
||||
self.scrollPositions.push(0);
|
||||
};
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
var widthImg = 320;
|
||||
if( myManifest.Agent.device.type != "" )
|
||||
{
|
||||
//prendo la larghezza del viewport e sottraggo il 10%, poi divito per le due colonne
|
||||
/*prendo la larghezza del viewport e sottraggo il 10perc, poi divito per le due colonne*/
|
||||
widthImg = (myManifest.Settings.Device.Width - (myManifest.Settings.Device.Width / 10)) / 2;
|
||||
if(widthImg>320)
|
||||
widthImg = 320;
|
||||
@@ -34,14 +34,14 @@
|
||||
<p id='procedimento'><%= ricetta.procedimento%></p>
|
||||
<p style="font-size: xx-small;font-weight: lighter;">La proprietà del materiale pubblicato nel Lievitario , salvo diversa indicazione, è dei rispettivi autori. E’ vietata la ripubblicazione, anche parziale, di tutto il materiale pubblicato nel sito Lievitario senza preventiva autorizzazione scritta.</p>
|
||||
</div>
|
||||
<div id="contentFoto" data-role="content" style="display: none;">
|
||||
<!--<div id="contentFoto" data-role="content" style="display: none;">
|
||||
<h1>Foto</h1>
|
||||
<div id="Gallery" class="freewallGallery">
|
||||
<% _.each(ricetta.foto, function(fotoID) {%>
|
||||
<div class='brick' style='width:<%=widthImg%>px;'><a id="photo_<%=fotoID.ID%>" data-role="none" data-photoid="<%=fotoID.ID%>" href=""><img src='<%=myManifest.Settings.DefaultURL%>/api/photo/medium/<%=fotoID.ID%>' class="imageborder"></a></div>
|
||||
<%});%>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
<!--<div id="contentVideo" data-role="content" data-theme="d" style="display: none;" data-iscroll>
|
||||
<h1>Video</h1>
|
||||
<p id='video'></p>
|
||||
@@ -51,8 +51,8 @@
|
||||
<ul>
|
||||
<li><a href="" class="ui-btn-active ui-state-persist">Ingredienti</a></li>
|
||||
<li><a href="">Procedimento</a></li>
|
||||
<li><a href="">Foto</a></li>
|
||||
<!--<li><a href="">Video</a></li>-->
|
||||
<!--<li><a href="">Foto</a></li>
|
||||
<li><a href="">Video</a></li>-->
|
||||
</ul>
|
||||
</div><!-- /navbar -->
|
||||
<% if(ricetta.autore.length > 0){ %>
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
<div id="content">
|
||||
<div id="siteNotice">
|
||||
</div>
|
||||
<h3 id="firstHeading" class="firstHeading"><%= item.Name%></h3>
|
||||
<h3 id="firstHeading" class="firstHeading"><%= unescape(item.Name)%></h3>
|
||||
<div id="bodyContent">
|
||||
<p><i>Località:</i> <%= item.Indirizzo%><br>
|
||||
<i>Tipo di Lievito:</i> <% if(item.TipoPM==1){%>Pasta Madre Solida<%} else if(item.TipoPM==2){%>Li.Co.Li.<%}else{%>Entrambi<%}%><br>
|
||||
<p><i>Località:</i> <%= unescape(item.Comune) + ", " + item.Cap + ", " + unescape(item.Provincia)%><br>
|
||||
<i>Tipo di Lievito:</i> <% if(item.TipoPM==1){%>Pasta Madre Solida<%} else if(item.TipoPM==2){%>Li.Co.Li.<%} else if(item.TipoPM==4){%>Gluten Free<%}else{%>Entrambi<%}%><br>
|
||||
<i>Contatta:</i> <a href="mailto:<%= item.Email%>"><%= item.Email%></a>
|
||||
<% if(item.Note!=""){%><br><i>Note:</i> <%= unescape(item.Note)%><%}%>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -13,6 +13,10 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/maps/mapsViewTemplate.
|
||||
url: "http://app.gruppolapastamadre.it/icon.png",
|
||||
scaledSize: new google.maps.Size(24, 24)
|
||||
},
|
||||
iconPMGF: {
|
||||
url: "http://app.gruppolapastamadre.it/iconGreen.png",
|
||||
scaledSize: new google.maps.Size(24, 24)
|
||||
},
|
||||
initialize: function () {
|
||||
this.id = "MapsView";
|
||||
this.markers = [];
|
||||
@@ -167,7 +171,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/maps/mapsViewTemplate.
|
||||
var self = this;
|
||||
var marker = new google.maps.Marker({
|
||||
position: new google.maps.LatLng(ele.Latitudine, ele.Longitudine),
|
||||
icon: self.iconPM,
|
||||
icon: ele.TipoPM == "4"?self.iconPMGF:self.iconPM,
|
||||
//label: ele.Name,
|
||||
title: ele.Name,
|
||||
map: self.map
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<li data-role="list-divider">Altre opzioni</li>
|
||||
<li><a id="converterLnk" href="#" class="ui-li-icon ui-corner-none">Convertitore</a></li>
|
||||
|
||||
<li><a id="settingLnk" href="#settingsView">Impostazioni</a></li>
|
||||
<!--<li><a id="settingLnk" href="#settingsView">Impostazioni</a></li>-->
|
||||
<li><a id="aboutLnk" href="#aboutView">Informazioni su...</a></li>
|
||||
<li><a id="donationLnk" href="#donationView">Donazione</a></li>
|
||||
<li><a id="debugMsgLnk" href="#debugView">Messaggi di debug</a></li>
|
||||
|
||||
@@ -56,12 +56,12 @@ define(['jquery', 'underscore', 'backbone','text!modules/search/searchViewTempla
|
||||
//render the content into div of view
|
||||
render: function () {
|
||||
if (this.created === true)
|
||||
{
|
||||
SearchView.__super__.render.call(this);
|
||||
this.$el.append(this.header.$el);
|
||||
this.$el.append(this.template({data:this.collection.toJSON()}));
|
||||
this.$el.append(this.footer.$el);
|
||||
}
|
||||
{
|
||||
SearchView.__super__.render.call(this);
|
||||
this.$el.append(this.header.$el);
|
||||
this.$el.append(this.template({data:this.collection.toJSON()}));
|
||||
this.$el.append(this.footer.$el);
|
||||
}
|
||||
this.$el.find('#nResult').val(Profile.data.risRic);
|
||||
this.trigger("renderCompleted:Search", this);
|
||||
this.$el.find("#searchBtn").addClass("ui-btn-active");
|
||||
|
||||
@@ -5,10 +5,16 @@
|
||||
<label for="categoria">Categoria:</label>
|
||||
<select name="categoria" id="categoria" data-native-menu="true" >
|
||||
<option value="0" selected="true">Selezionare Categoria...</option>
|
||||
<% for (var i = 0; i < data.length; i++) { %>
|
||||
<% var item = data[i]; %>
|
||||
<option value="<%=item.category_id%>"><%=item.name%></option>
|
||||
<% } %>
|
||||
<option value="3">Dolci</option>
|
||||
<option value="6">Esuberi</option>
|
||||
<option value="4">Focacce</option>
|
||||
<option value="10">Grandi Lievitati</option>
|
||||
<option value="1">Pane</option>
|
||||
<option value="5">Panificati Vari</option>
|
||||
<option value="9">Pasquali</option>
|
||||
<option value="2">Pizza</option>
|
||||
<option value="8">Senza Glutine</option>
|
||||
<option value="7">Vegane</option>
|
||||
</select><br>
|
||||
<label for="difficoltaFrm">Livello Difficoltà:</label>
|
||||
<form id="difficoltaFrm" data-role="none">
|
||||
@@ -21,11 +27,18 @@
|
||||
<label for="nResult">Numero Risultati:</label>
|
||||
<select name="nResult" id="nResult" >
|
||||
<option value="10" selected="true">10</option>
|
||||
<option value="15">15</option>
|
||||
<option value="20">20</option>
|
||||
<option value="25">25</option>
|
||||
<option value="30">30</option>
|
||||
<option value="50">50</option>
|
||||
<option value="100">100</option>
|
||||
</select>
|
||||
<!--
|
||||
<label for="author">Autore:</label>
|
||||
<select name="author" id="author" >
|
||||
<% for (var i = 0; i < data.length; i++) { %>
|
||||
<% var item = unescape(data[i].autore); %>
|
||||
<option value="<%=item%>"><%=item%></option>
|
||||
<%}%>
|
||||
</select>-->
|
||||
<br><br>
|
||||
<center><a href="" id="search" button="true" class="ui-btn ui-corner-all">Cerca</a></center>
|
||||
</div>
|
||||
@@ -59,6 +59,7 @@ define(['jquery', 'underscore', 'backbone','text!modules/settings/settingsViewTe
|
||||
Profile.data.dataSpacc.comune = this.$el.find('#comune').val();
|
||||
Profile.data.dataSpacc.cap = this.$el.find('#CAP').val();
|
||||
Profile.data.dataSpacc.tipopm = this.$el.find('#tPM').val();
|
||||
Profile.data.dataSpacc.note = this.$el.find('#note').val();
|
||||
Profile.data.dataSpacc.privacy = this.$el.find('#privacyChk').prop('checked')?"1":"0";
|
||||
|
||||
if(Profile.data.email === "" ||
|
||||
@@ -87,21 +88,28 @@ define(['jquery', 'underscore', 'backbone','text!modules/settings/settingsViewTe
|
||||
$.ajax({
|
||||
url: "http://maps.google.com/maps/api/geocode/json?address=" +
|
||||
Profile.data.dataSpacc.comune + "+" +
|
||||
Profile.data.dataSpacc.comune + "+" +
|
||||
Profile.data.dataSpacc.cap + "+" +
|
||||
Profile.data.dataSpacc.provincia + "+" + Profile.data.dataSpacc.stato + "&sensor=false",
|
||||
Type: "GET"
|
||||
}).then(function ( response ) {
|
||||
if(response.results.length == 1)
|
||||
{
|
||||
Profile.data.dataSpacc.lat = response.results[0].geometry.location.lat;
|
||||
Profile.data.dataSpacc.long = response.results[0].geometry.location.lng;
|
||||
Profile.updateProfile(function(){
|
||||
self._flagSave = false;
|
||||
self.$el.find('#titlePopup').html("Salvataggio");
|
||||
self.$el.find('#messaggio').html("Impostazioni salvate con successo");
|
||||
self.$el.find('#popupDialog').popup("open");
|
||||
});
|
||||
Profile.data.dataSpacc.long = response.results[0].geometry.location.lng;
|
||||
}
|
||||
|
||||
if(Profile.data.dataSpacc.lat === "" &&
|
||||
Profile.data.dataSpacc.long === ""){
|
||||
self._flagSave = false;
|
||||
return;
|
||||
}
|
||||
|
||||
Profile.updateProfile(function(){
|
||||
self._flagSave = false;
|
||||
self.$el.find('#titlePopup').html("Salvataggio");
|
||||
self.$el.find('#messaggio').html("Impostazioni salvate con successo");
|
||||
self.$el.find('#popupDialog').popup("open");
|
||||
});
|
||||
});
|
||||
}
|
||||
else
|
||||
@@ -162,7 +170,7 @@ define(['jquery', 'underscore', 'backbone','text!modules/settings/settingsViewTe
|
||||
})
|
||||
.then( function ( response ) {
|
||||
$.each( response, function ( i, val ) {
|
||||
html += "<li>" + val.Comune + "<input id='hdnCAP" + i + "'' type='hidden' value='" + val.CAP + "'></li>";
|
||||
html += "<li>" + unescape(val.Comune) + "<input id='hdnCAP" + i + "'' type='hidden' value='" + val.CAP + "'></li>";
|
||||
});
|
||||
$ul.html( html );
|
||||
$ul.listview( "refresh" );
|
||||
@@ -221,6 +229,7 @@ define(['jquery', 'underscore', 'backbone','text!modules/settings/settingsViewTe
|
||||
|
||||
this.$el.find('#comune').val(Profile.data.dataSpacc.comune);
|
||||
this.$el.find('#CAP').val(Profile.data.dataSpacc.cap);
|
||||
this.$el.find('#note').val(Profile.data.dataSpacc.note);
|
||||
this.$el.find('#tPM').val(Profile.data.dataSpacc.tipopm);
|
||||
this.$el.find('#privacyChk').prop('checked', Profile.data.dataSpacc.privacy==="0"?false:true);
|
||||
|
||||
|
||||
@@ -32,8 +32,11 @@
|
||||
<label for="stato">Stato:</label>
|
||||
<select name="stato" id="stato">
|
||||
<option value='AUSTRIA'>Austria</option>
|
||||
<option value='AUSTRIALIA'>Austrialia</option>
|
||||
<option value='ABUDHABI'>Abu Dhabi</option>
|
||||
<option value='BELGIO'>Belgio</option>
|
||||
<option value='BULGARIA'>Bulgaria</option>
|
||||
<option value='CANADA'>Canada</option>
|
||||
<option value='CIPRO'>Cipro</option>
|
||||
<option value='CROAZIA'>Croazia</option>
|
||||
<option value='DANIMARCA'>Danimarca</option>
|
||||
@@ -54,11 +57,13 @@
|
||||
<option value='PORTOGALLO'>Portogallo</option>
|
||||
<option value='REGNOUNITO'>RegnoUnito</option>
|
||||
<option value='REP.CECA'>Rep.Ceca</option>
|
||||
<option value='ROMANIA'>Romania</option>
|
||||
<option value='SLOVACCHIA'>Slovacchia</option>
|
||||
<option value='SLOVENIA'>Slovenia</option>
|
||||
<option value='ROMANIA'>Romania</option>
|
||||
<option value='SPAGNA'>Spagna</option>
|
||||
<option value='USA'>Stati Uniti D'America</option>
|
||||
<option value='SVEZIA'>Svezia</option>
|
||||
<option value='SVIZZERA'>Svizzera</option>
|
||||
<option value='UNGHERIA'>Ungheria</option>
|
||||
</select>
|
||||
<label for="prov">Provincia:</label>
|
||||
@@ -185,7 +190,10 @@
|
||||
<option value="1" selected="true">Solida</option>
|
||||
<option value="2">Liquida/Licoli</option>
|
||||
<option value="3">Entrambe</option>
|
||||
<option value="4">GlutenFree</option>
|
||||
</select>
|
||||
<label for="note">Note:</label>
|
||||
<input type="text" name="note" id="note" placeholder="Note...">
|
||||
<label>Infomativa privacy, AUTORIZZAZIONE DATI PERSONALI
|
||||
ai sensi e per gli effetti degli artt. 13 e 23 del D.Lgs. n. 196/2003, acconsento al trattamento e alla pubblicazione dei dati personali forniti a seguito della
|
||||
segnalazione inoltrata.</label>
|
||||
|
||||
Reference in New Issue
Block a user