aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2017-03-07 14:01:08 +0000
committerDave Arter <davea@mysociety.org>2017-03-07 14:01:08 +0000
commitdcac2330551c534fd82963c807334d074cfad5ad (patch)
tree5feba30c0084c4f6a80fd0819eab536272d83a9a
parentce0e964720c08279b8b572d0f039be11aca19024 (diff)
Add Spanish templates
-rw-r--r--www/templates/es/address_search.html21
-rw-r--r--www/templates/es/android_error.html17
-rw-r--r--www/templates/es/around.html53
-rw-r--r--www/templates/es/details.html22
-rw-r--r--www/templates/es/details_extra.html8
-rw-r--r--www/templates/es/existing.html35
-rw-r--r--www/templates/es/help.html60
-rw-r--r--www/templates/es/home.html5
-rw-r--r--www/templates/es/initial_help.html8
-rw-r--r--www/templates/es/login.html43
-rw-r--r--www/templates/es/offline.html71
-rw-r--r--www/templates/es/photo.html37
-rw-r--r--www/templates/es/reports.html30
-rw-r--r--www/templates/es/save_offline.html15
-rw-r--r--www/templates/es/sent.html22
-rw-r--r--www/templates/es/submit.html99
-rw-r--r--www/templates/es/submit_confirm.html40
-rw-r--r--www/templates/es/submit_email.html26
-rw-r--r--www/templates/es/submit_name.html39
-rw-r--r--www/templates/es/submit_password.html51
-rw-r--r--www/templates/es/submit_set_password.html23
21 files changed, 725 insertions, 0 deletions
diff --git a/www/templates/es/address_search.html b/www/templates/es/address_search.html
new file mode 100644
index 0000000..8bd418b
--- /dev/null
+++ b/www/templates/es/address_search.html
@@ -0,0 +1,21 @@
+<div id="search-header" data-role="header">
+ <a href="#" id="locate" data-transition="slidedown" class="ui-btn-left">Cancelar</a>
+ <h1>Buscar</h1>
+</div>
+<div data-role="content">
+ <div id="front-main">
+ <h3 class="notopmargin">Introduzca un código postal cercano, o el nombre de una calle o área</h3>
+ <form class="inputcard" name="postcodeForm" id="postcodeForm">
+ <div>
+ <input data-role="none" type="text" name="pc" value="" id="pc" size="10" maxlength="200" placeholder="ej. ‘10103’ o ‘Ave. Alma Mater, Santo Domingo’">
+ </div>
+ </form>
+ <input type="button" value="Ir" id="submit" data-theme="a">
+ </div>
+
+ <div id="front-howto">
+ <% if (typeof msg != 'undefined' && msg !== '') { %>
+ <h2><%= msg %></h2>
+ <% } %>
+ </div>
+</div>
diff --git a/www/templates/es/android_error.html b/www/templates/es/android_error.html
new file mode 100644
index 0000000..b39079f
--- /dev/null
+++ b/www/templates/es/android_error.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title></title>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
+ <meta charset="utf-8">
+
+ <link rel="stylesheet" href="css/fms.css" type="text/css" media="screen" title="no title" charset="utf-8">
+
+ </head>
+ <body>
+ <div id="load-screen">
+ <div class="radar"></div>
+ <p>There seems to have been a problem starting the app. Please quit and try again</p>
+ </div>
+ </body>
+</html>
diff --git a/www/templates/es/around.html b/www/templates/es/around.html
new file mode 100644
index 0000000..8686933
--- /dev/null
+++ b/www/templates/es/around.html
@@ -0,0 +1,53 @@
+<div data-id="locate" id="around-header" data-role="header">
+ <a id="view-my-reports" class="nodisplay ui-btn ui-btn-left ui-btn-up-a ui-shadow ui-btn-corner-all" data-role="none" href="#">
+ <span class="ui-btn-inner"<span class="ui-btn-text">Borradores <span class="draft_count"><% print( FMS.allDrafts.length ) %></span></span></span>
+ </a>
+ <a id="cancel" class="nodisplay" data-role="button" data-icon="arrow-l">Cancelar</a>
+ <h1><% print( CONFIG.APP_NAME ) %></h1>
+ <a id="login-options" data-icon="fms-account" class="nodisplay ui-btn-right">Cuenta</a>
+</div>
+
+ <div id="locating" class="nodisplay">
+ <div class="radar"></div>
+ <div id="progress">
+ <div id="progress-bar">
+ </div>
+ </div>
+
+ <p>
+ Localizando su ubicación
+ </p>
+
+ <p>
+ <input data-theme="c" type="button" id="locate_cancel" value="Cancelar">
+ </p>
+ </div>
+<div data-role="content">
+ <div class="frontpage-menu">
+ <form class="inputcard" name="postcodeForm" id="postcodeForm">
+ <input type="search" id="pc" name="pc" placeholder="Buscar o desplazarse en el map">
+ <% if ( FMS.testing ) { %>
+ <div class="testing">
+ Versión de prueba. Los informes no serán enviados al ayuntamiento.
+ </div>
+ <% } %>
+ </form>
+ <a data-role="none" id="relocate" class="nodisplay"></a>
+
+ <div class="nodisplay" id="front-howto"></div>
+ </div>
+
+ <a id="mark-here" data-role="button" data-theme="a" class="map-bottom-btn">
+ Nuevo informe aquí
+ </a>
+ <a id="locate-here" data-role="button" data-theme="a" class="map-bottom-btn">
+ Configurar la ubicación del informe
+ </a>
+ <a id="reposition" data-role="button" data-theme="c" class="map-bottom-btn nodisplay">
+ Reposicione el informe aquí
+ </a>
+ <a id="confirm-map" data-role="button" data-theme="a" class="map-bottom-btn">
+ Confirmar ubicación
+ </a>
+
+</div>
diff --git a/www/templates/es/details.html b/www/templates/es/details.html
new file mode 100644
index 0000000..7629e05
--- /dev/null
+++ b/www/templates/es/details.html
@@ -0,0 +1,22 @@
+<div data-role="header">
+ <a data-rel="back" data-icon="arrow-l" class="ui-btn-left">Atrás</a>
+ <h1>Detalles</h1>
+ <a id="next" data-icon="arrow-r" data-iconpos="right" class="ui-btn-right">Siguiente</a>
+</div>
+<div data-role="content">
+ <div class="gmailstyletest">
+ <div>
+ <label for="form_title">Título</label>
+ <input data-role="none" type="text" name="title" id="form_title" placeholder="Indique un título" value="<%= title %>" required>
+ </div>
+
+ <div>
+ <%= categories %>
+ </div>
+
+ <div class="noborder">
+ <label for="form_detail">Detalles</label>
+ <textarea data-role="none" name="detail" id="form_detail" placeholder="Por favor, provea detalles del problema." required><%= details %></textarea>
+ </div>
+ </div>
+</div>
diff --git a/www/templates/es/details_extra.html b/www/templates/es/details_extra.html
new file mode 100644
index 0000000..2d782c8
--- /dev/null
+++ b/www/templates/es/details_extra.html
@@ -0,0 +1,8 @@
+<div data-role="header" data-position="fixed">
+ <a data-rel="back" data-icon="arrow-l" class="ui-btn-left">Atrás</a>
+ <h1>Detalles adicionales</h1>
+ <a id="next" data-icon="arrow-r" data-iconpos="right" class="ui-btn-right">Siguiente</a>
+</div>
+<div data-role="content" data-enhance="false">
+ <%= category_extras %>
+</div>
diff --git a/www/templates/es/existing.html b/www/templates/es/existing.html
new file mode 100644
index 0000000..b45b3d8
--- /dev/null
+++ b/www/templates/es/existing.html
@@ -0,0 +1,35 @@
+<div data-role="header">
+ <h1>Informe no enviado</h1>
+</div>
+<div data-role="content" role="main">
+ <div id="existing_report">
+ <% if ( title ) { %>
+ <h3><%= title %></h3>
+ <% } %>
+
+ <div class="meta">
+ <p>
+ <% if ( category && category != '-- Seleccione una categoría --' ) { %>
+ Guardado en la categoría <%= category %>
+ <% } %>
+ </p>
+
+ <p><% print( moment( created ).fromNow() ) %></p>
+ </div>
+
+ <% if ( file ) { %>
+ <div class="photo" style="background-image: url(<%= file %>)"></div>
+ <% } %>
+
+ <% if ( details ) { %>
+ <div class="details"><div><%= details %></div></div>
+ <% } %>
+ </div>
+
+
+ <div class="right">
+ <input id="use_report" type="button" value="Completar el informe ahora" data-role="button" data-theme="a" />
+ <input id="save_report" type="button" value="Guardar para más tarde" data-role="button" data-theme="a" />
+ <input id="discard" type="button" value="Descartar" data-role="button" data-theme="a" />
+ </div>
+</div>
diff --git a/www/templates/es/help.html b/www/templates/es/help.html
new file mode 100644
index 0000000..3722544
--- /dev/null
+++ b/www/templates/es/help.html
@@ -0,0 +1,60 @@
+<h1>Frequently Asked Questions</h1>
+<dl>
+ <dt>What is <% print( CONFIG.APP_NAME ) %>?</dt>
+ <dd><% print( CONFIG.APP_NAME ) %> is a website and app to help people report local problems they&rsquo;ve found to their council.</dd>
+
+ <dt>How do I use this app?</dt>
+ <dd>The app will attempt to locate you automatically but if it can't or you want to report
+ a problem elsewhere you can search by postcode or location. To start reporting a problem scroll
+ the map till the crosshair is over the location of the problem and press 'New Report here'.
+ </dd>
+
+ <dt>What happens to the information I provide?</dt>
+ <dd><strong>All the information you provide will be sent to the council</strong>.
+ The title, category and details of your report will be displayed on the website. By default
+ your name will also be displayed on the website but you can choose to have this hidden.
+ We will <strong>never display your email or phone number on the site</strong>.</dd>
+
+ <dt>What if I want to remain anonymous?</dt>
+ <dd>If you unselect 'Show my name publicly' when entering your details then your name will not be displayed on the website.
+ <strong>Your name, email and phone number, if you provided it, will always be sent to the council.</strong></dd>
+
+ <dt>What if I've accidentally included personal information in a report</dt>
+ <dd>To have a report edited email <a href="mailto:support@fixmystreet.com">support@fixmystreet.com</a> with
+ details of the report.</dd>
+
+ <dt>I've forgotten my password, how do I reset it?</dt>
+ <dd>If you've forgotten your password you can reset it by selecting the "set a password" option when
+ next submitting a report. Please note that you have to click the link in the confirmation email to
+ activate or change your password.</dd>
+
+ <dt>What sort of problems should I report with <% print( CONFIG.APP_NAME ) %>?</dt>
+ <dd><% print( CONFIG.APP_NAME ) %> is primarily for reporting things which are
+ <strong>broken or dirty or damaged or dumped, and need fixing, cleaning
+ or clearing</strong>.</dd>
+
+ <dt>What isn&rsquo;t <% print( CONFIG.APP_NAME ) %> for?</dt>
+ <dd><% print( CONFIG.APP_NAME ) %> is not a way of getting in touch with your council for all
+ issues &ndash; please use <% print( CONFIG.APP_NAME ) %> only for problems such as the above.</dd>
+
+ <dt>Is it free?</dt>
+ <dd>The site and app are free to use, yes. <% print( CONFIG.APP_NAME ) %> is run
+ by a registered charity, though, so if you want to make a contribution, <a
+ onclick="FMS.openExternal(event); return false;" href="https://secure.mysociety.org/donate/">please do</a>.
+ For more information see the <a onclick="FMS.openExternal(event); return false;" href="http://www.fixmystreet.com/faq/">website</a>.
+ </dd>
+
+ <dt>Who built <% print( CONFIG.APP_NAME ) %>?</dt>
+ <dd>The site and this app was built by <a onclick="FMS.openExternal(event); return false;" href="http://www.mysociety.org/">mySociety</a>.</dd>
+ <dt>Thanks to...</dt>
+ <dd>
+ <a onclick="FMS.openExternal(event); return false;" href="http://www.ordnancesurvey.co.uk">Ordnance Survey</a> (for the maps,
+ UK postcodes, and UK addresses &ndash; data &copy; Crown copyright, all
+ rights reserved, Ministry of Justice 100037819&nbsp;2008), the entire free software
+ community (this particular project was brought to you by Phonegap, Backbone, jQuery mobile
+ and the number 161.290) and <a
+ onclick="FMS.openExternal(event); return false;" href="http://www.bytemark.co.uk/">Bytemark</a> (who kindly host all
+ our servers).
+
+ Let us know if we&rsquo;ve missed anyone.</dd>
+</dl>
diff --git a/www/templates/es/home.html b/www/templates/es/home.html
new file mode 100644
index 0000000..e8e0e8c
--- /dev/null
+++ b/www/templates/es/home.html
@@ -0,0 +1,5 @@
+<div data-role="content">
+ <div id="locating">
+ <div class="radar"></div>
+ </div>
+</div>
diff --git a/www/templates/es/initial_help.html b/www/templates/es/initial_help.html
new file mode 100644
index 0000000..7f684e6
--- /dev/null
+++ b/www/templates/es/initial_help.html
@@ -0,0 +1,8 @@
+<h1>Welcome to <% print( CONFIG.APP_NAME ) %></h1>
+<p>
+Using this app you can report common street problems, like potholes or broken street lights, to councils throughout the UK.
+</p>
+
+<p>
+It works online and offline, because we know that there isn't always a signal when you need one.
+</p>
diff --git a/www/templates/es/login.html b/www/templates/es/login.html
new file mode 100644
index 0000000..1c83548
--- /dev/null
+++ b/www/templates/es/login.html
@@ -0,0 +1,43 @@
+<div id="submit-header" data-role="header">
+ <a id="reports-next-btn" data-icon="arrow-l" data-iconpos="left" class="ui-btn-left">Inicio</a>
+ <h1>Abrir sesión</h1>
+</div>
+
+<div data-role="content">
+ <% if ( FMS.isLoggedIn ) { %>
+ <div id="signed_in_row">
+ <p class="notopmargin">You are signed in as <%= email %></p>
+ <div id="err" class="nodisplay"></div>
+ <div class="bottom-btn">
+ <input type="button" id="logout" name="logout" value="Cerrar sesión" data-theme="a">
+ </div>
+ </div>
+ <div id="password_row" class="nodisplay">
+ <p class="notopmargin">
+ ¡Sesión cerrada!
+ </p>
+ <% } else { %>
+ <div id="password_row">
+ <% } %>
+ <form name="signinForm" class="inputcard" id="signinForm">
+ <div>
+ <input data-role="none" type="email" value="" name="email" id="form_email" placeholder="Su email" required>
+ </div>
+ <div>
+ <input data-role="none" type="password" value="" name="password" id="form_password" placeholder="Su contraseña" required>
+ </div>
+ <div class="noborder">
+ <input type="submit" id="login" name="login" value="Abrir sesión" data-theme="a">
+ </div>
+ </form>
+ </div>
+ <div id="success_row" class="nodisplay">
+ <p class="notopmargin">
+ ¡Sesión abierta!
+ </p>
+ <div id="err" class="nodisplay"></div>
+ <div class="bottom-btn">
+ <input type="button" id="logout" name="logout" value="Cerrar sesión" data-theme="a">
+ </div>
+ </div>
+</div>
diff --git a/www/templates/es/offline.html b/www/templates/es/offline.html
new file mode 100644
index 0000000..1051f57
--- /dev/null
+++ b/www/templates/es/offline.html
@@ -0,0 +1,71 @@
+<div data-role="header" data-position="fixed">
+ <a id="offline-prev-btn" class="ui-btn-left">Inténtelo nuevamente</a>
+ <h1>Sin conexión</h1>
+ <a id="offline-next-btn" data-icon="arrow-r" data-iconpos="right" class="ui-btn-right">Saltar</a>
+</div>
+ <div id="locating" class="nodisplay">
+ <div class="radar"></div>
+ <div id="progress">
+ <div id="progress-bar">
+ </div>
+ </div>
+
+ <p>
+ Localizando su ubicación
+ </p>
+
+ <p>
+ <input data-theme="c" type="button" id="locate_cancel" value="Cancelar">
+ </p>
+ </div>
+<div data-role="content">
+ <div>
+ <p class="notopmargin">
+ <% if ( typeof id != 'undefined' ) { %>
+ ¡Qué horror! - no podemos detectar una conexión al internet. Sin embargo, aún puede editar el informe en este momento y enviarlo más tarde.
+ <% } else { %>
+ ¡Qué horror! - no podemos detectar una conexión al internet. Sin embargo, aún puede editar el informe en este momento y enviarlo más tarde, yendo a 'borradores' cuando vuelva a estar conectado.
+ <% } %>
+ </p>
+
+ <p id="locate_result">
+ <% if ( lat ) { %>
+ Este informe tiene una posición.
+ <% } else { %>
+ <input type="button" data-role="button" data-theme="a" id="locate" value="Localizar (opcional)" >
+ <% } %>
+ </p>
+
+ <div class="inputcard">
+ <div>
+ <input data-role="none" type="text" value="<%= title %>" name="title" id="form_title" placeholder="Indique un título" required>
+ </div>
+
+ <div>
+ <textarea data-role="none" rows="7" cols="26" name="detail" id="form_detail" placeholder="Please fill in details of the problem." required><%= details %></textarea>
+ </div>
+ </div>
+
+ <% if ( file != '' ) { %>
+ <div id="add_photo" style="display: none">
+ <% } else { %>
+ <div id="add_photo">
+ <% } %>
+ <label>Añadir una foto <em>(opcional)</em></label>
+ <input data-icon="fms-photo-new" value="Tomar una nueva foto" type="button" name="photo_button" id="id_photo_button" data-role="button" data-theme="a">
+ <input data-icon="fms-photo-existing" value="Añadir una foto existente" type="button" name="existing" id="id_existing" data-role="button" data-theme="c">
+ </div>
+
+ <% if ( file == '' ) { %>
+ <div id="display_photo" style="display: none">
+ <% } else { %>
+ <div id="display_photo">
+ <% } %>
+ <label>Su foto</label>
+ <div class="photo">
+ <img class="small" id="photo" src="<%= file %>" />
+ </div>
+ <input value="Eliminar foto" type="button" name="del_photo_button" id="id_del_photo_button" data-role="button" data-theme="a">
+ </div>
+ </div>
+</div>
diff --git a/www/templates/es/photo.html b/www/templates/es/photo.html
new file mode 100644
index 0000000..62f36dc
--- /dev/null
+++ b/www/templates/es/photo.html
@@ -0,0 +1,37 @@
+<div data-role="header">
+ <a data-rel="back" data-icon="arrow-l" class="ui-btn-left">Atrás</a>
+ <h1>Añadir foto</h1>
+ <% if ( file == '' ) { %>
+ <a id="photo-next-btn" data-icon="arrow-r" data-iconpos="right" class="ui-btn-right">Saltar</a>
+ <% } else { %>
+ <a id="photo-next-btn" data-icon="arrow-r" data-iconpos="right" class="ui-btn-right">Siguiente</a>
+ <% } %>
+</div>
+<div data-role="content">
+ <% var photoClass = 'nodisplay', nophotoClass = 'nodisplay';
+ if ( file != '' ) {
+ photoClass = '';
+ } else {
+ nophotoClass = '';
+ } %>
+ <h2 id="nophoto_title" class="<% print( nophotoClass ); %>">
+ Añadir una foto <em>(opcional)</em>
+ </h2>
+ <h2 id="photo_title" class="<% print( photoClass ); %>">
+ Foto para el informe
+ </h2>
+ <div class="photo-wrapper">
+ <div class="photo">
+ <% if ( file == '' ) { %>
+ <img class="placeholder" src="images/placeholder-photo.png" alt="" id="photo">
+ <% } else { %>
+ <img class="small" id="photo" src="<%= file %>" />
+ <% } %>
+ <a data-role="none" id="id_del_photo_button" class="photo-corner-button">X</a>
+ </div>
+ </div>
+ <div class="bottom-btn">
+ <input data-icon="fms-photo-existing" type="button" id="id_existing" data-theme="c" value="Añadir una foto existente" >
+ <input data-icon="fms-photo-new" id="id_photo_button" type="button" data-theme="a" value="Tomar una nueva foto">
+ </div>
+</div>
diff --git a/www/templates/es/reports.html b/www/templates/es/reports.html
new file mode 100644
index 0000000..cbd2acf
--- /dev/null
+++ b/www/templates/es/reports.html
@@ -0,0 +1,30 @@
+<div data-role="header" data-position="fixed">
+ <a id="reports-next-btn" data-icon="arrow-l" data-iconpos="left" class="ui-btn-left">Inicio</a>
+ <h1>Informes preliminares</h1>
+</div>
+<div id="drafts">
+ <p id="noreports" class="nodisplay">Si comienza a compilar un informe, pero no lo termina ni lo envía, este aparecerá en este menú para que lo pueda completar más tarde</p>
+ <div id="report-list" class="nodisplay">
+ <p class="notopmargin">
+ Estos son sus borradores, informes no enviados. Para completarlos y enviarlos, abra un informe cuando esté conectado(a) al internet.
+ </p>
+ <ul data-role="listview" data-split-theme="c" data-inset="true" data-split-icon="delete" class="notopmargin reports">
+ <% drafts.each(function(draft) {
+ if ( draft ) {
+ var classes = [];
+ if ( draft.get('lat') ) {
+ classes.push('with_location');
+ }
+ if ( draft.get('file') ) {
+ classes.push('with_photo');
+ }
+ var draftClass = '';
+ if ( classes.length ) {
+ draftClass = 'class="' + classes.join(' ') + '"';
+ }
+ print( '<li id="' + draft.id + '"' + draftClass + '><a href="#" class="use_report">' + draft.description() + '</a><a class="del_report" href="#" title="delete">Eliminar</a></li>' );
+ }
+ } ); %>
+ </ul>
+ </div>
+</div>
diff --git a/www/templates/es/save_offline.html b/www/templates/es/save_offline.html
new file mode 100644
index 0000000..7c6b7b3
--- /dev/null
+++ b/www/templates/es/save_offline.html
@@ -0,0 +1,15 @@
+<div data-role="header">
+ <h1>Sin conexión</h1>
+</div>
+<div data-role="content">
+ <h3 class="notopmargin">No hay conexión al internet</h3>
+
+ <p>
+ No hay conexión al internet, ¿quiere guardar el presente informe para más tarde?
+ </p>
+
+ <div class="bottom-btn">
+ <input id="save_report" type="button" value="guardar">
+ <input id="discard" type="button" value="eliminar">
+ </div>
+</div>
diff --git a/www/templates/es/sent.html b/www/templates/es/sent.html
new file mode 100644
index 0000000..df9a933
--- /dev/null
+++ b/www/templates/es/sent.html
@@ -0,0 +1,22 @@
+<div id="report-created-header" data-role="header">
+ <a class="ui-btn-left">Inicio</a>
+ <h1>Informe creado</h1>
+</div>
+<div data-role="content">
+ <% if ( typeof email_confirm != 'undefined' && email_confirm === 1 ) { %>
+ <h3>Email de confirmación enviado</h3>
+
+ <p>
+ Le hemos enviado un email de confirmación que le llegará en unos minutos. Una vez que llegue haga click sobre el enlace dentro del email para confirmar su informe.
+ </p>
+ <% } else { %>
+ <h3>Gracias. Su informe será enviado inmediatamente a las autoridades.</h3>
+
+ <p class="center"><input type="button" data-theme="a" id="open_report" value="Véalo en la pagina web"></p>
+ <% } %>
+
+
+ <div class="bottom-btn">
+ <input type="button" id="id_report_another" data-theme="a" value="Comenzar un nuevo informe" >
+ </div>
+</div>
diff --git a/www/templates/es/submit.html b/www/templates/es/submit.html
new file mode 100644
index 0000000..cf1aa9d
--- /dev/null
+++ b/www/templates/es/submit.html
@@ -0,0 +1,99 @@
+<div id="submit-header" data-role="header" data-position="fixed" data-id="locate">
+ <a data-rel="back" data-icon="arrow-l" class="ui-btn-left">Atrás</a>
+ <h1>Submit</h1>
+</div>
+
+<div class="container" data-role="content" data-enhance="false">
+ <div class="content" role="main">
+
+
+ <fieldset>
+ <div id="problem_form">
+ <% if ( user && user.password ) { %>
+ <div id="signed_in">
+ <p>
+ You are signed in as <span id="username"><%= user.name %></span>
+ </p>
+
+ <p id="confirm_details">Confirm details</p>
+ <div id="name_details">
+ <label for="form_may_show_name">Name</label>
+ <input type="text" class="validName" value="<%= user.name %>" name="name" id="form_name" placeholder="Your name">
+
+ <div class="checkbox-group">
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" checked>
+ <label class="inline" for="form_may_show_name">Show my name publicly</label>
+ </div>
+
+ <label for="form_phone">Phone number</label>
+ <input type="text" value="<%= user.phone %>" name="phone" id="form_phone" placeholder="Your phone number (optional)">
+ </div>
+
+ <div class="form-txt-submit-box">
+ <input class="green-btn" type="button" id="submit_signed_in" name="submit_signed_in" value="Report">
+ </div>
+ </div>
+ <% } else { %>
+ <div id="signed_out">
+ <label for="form_email" id="email_label">Your email</label>
+ <input type="email" value="<%= user.email %>" name="email" id="form_email" placeholder="Please enter your email address" required>
+
+ <div id="form_sign_in">
+ <h4 id="have_password">Do you have a <% print( CONFIG.APP_NAME ) %> password?</h4>
+
+ <div id="form_sign_in_yes" class="form-box">
+
+ <h5><strong>Yes</strong> I have a password</h5>
+
+ <label class="hidden-js n" for="password_sign_in">Yes I have a password</label>
+ <div class="form-txt-submit-box">
+ <input type="password" name="password_sign_in" id="password_sign_in" placeholder="Your password" value="">
+ <input class="green-btn" type="button" id="submit_sign_in" name="submit_sign_in" value="Report">
+ </div>
+ </div>
+
+ <div id="form_sign_in_no" class="form-box">
+ <h5 id="let_me_confirm"><strong>No</strong> Let me confirm my report by email</h5>
+
+ <div id="name_details">
+ <label for="form_may_show_name">Name</label>
+ <input type="text" class="validName" value="<%= user.name %>" name="name" id="form_name" placeholder="Your name">
+
+ <div class="checkbox-group">
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" checked>
+ <label class="inline" for="form_may_show_name">Show my name publicly</label>
+ </div>
+
+ <label for="form_phone">Phone number</label>
+ <input type="text" value="<%= user.phone %>" name="phone" id="form_phone" placeholder="Your phone number (optional)">
+ </div>
+
+ <div id="password_surround">
+ <label class="form-focus-hidden" for="password_register" id="password_label">Password</label>
+ </div>
+
+ <div class="form-txt-submit-box form-focus-hidden">
+ <input type="password" name="password_register" id="password_register" value="" placeholder="Enter a password (optional)">
+ <input class="green-btn" type="button" id="submit_register" name="submit_register" value="Report">
+ </div>
+
+ </div>
+ </div>
+ </div>
+ <% } %>
+
+ <div id="report_save" class="form-box">
+ <h5>Save this report for completion later</h5>
+ <div class="form-txt-submit-box">
+ <input class="green-btn" type="button" id="save_report" name="save_report" value="Save">
+ </div>
+ </div>
+ </div>
+ </fieldset>
+
+ <input type="hidden" name="submit_problem" value="1">
+ </div>
+
+ </div>
+ </div>
+</div>
diff --git a/www/templates/es/submit_confirm.html b/www/templates/es/submit_confirm.html
new file mode 100644
index 0000000..b01e70a
--- /dev/null
+++ b/www/templates/es/submit_confirm.html
@@ -0,0 +1,40 @@
+<div id="submit-header" data-role="header">
+ <a data-rel="back" data-icon="arrow-l" class="ui-btn-left">Atrás</a>
+ <h1>Sus detalles</h1>
+</div>
+
+<div data-role="content">
+ <p class="notopmargin">
+ You are logged in as <%= user.email %>.
+ </p>
+
+ <p>
+ Por favor, confirme su nombre, si quiere que se haga público y opcionalmente su número de teléfono.
+ </p>
+
+ <div id="errors"></div>
+
+ <div class="inputcard">
+ <% if ( typeof model.titles_list !== 'undefined' ) { %>
+ <div>
+ <select data-role="none" placeholder="Título" id="form_title" name="title" required>
+ <option value="">Título</option>
+ <% for ( var i = 0; i < model.titles_list.length; i++ ) { var title = model.titles_list[i]; print( '<option value="' + title + '"' + ( user.title && user.title == title ? ' selected' : '' ) + '>' + title + '</option>' ); } %>
+ </select>
+ </div>
+ <% } %>
+ <div>
+ <input data-role="none" type="text" value="<%= user.name %>" name="name" id="form_name" placeholder="Por favor, introduzca su nombre" required>
+ </div>
+ <div>
+ <input data-role="none" type="tel" value="<%= user.phone %>" name="name" id="form_phone" placeholder="Opcionalmente introduzca su número de teléfono">
+ </div>
+ <div class="checkbox-group noborder">
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <% if ( typeof user.may_show_name == 'undefined' || user.may_show_name ) { %>checked<% } %>>
+ <label class="inline" for="form_may_show_name">Mostrar mi nombre públicamente</label>
+ </div>
+ </div>
+ <div class="bottom-btn">
+ <input data-role="button" data-theme="a" type="button" id="report" name="report" value="Informe">
+ </div>
+</div>
diff --git a/www/templates/es/submit_email.html b/www/templates/es/submit_email.html
new file mode 100644
index 0000000..1954259
--- /dev/null
+++ b/www/templates/es/submit_email.html
@@ -0,0 +1,26 @@
+<div id="submit-header" data-role="header">
+ <a data-rel="back" data-icon="arrow-l" class="ui-btn-left">Atrás</a>
+ <h1>Sus detalles</h1>
+</div>
+
+<div data-role="content">
+ <div class="inputcard">
+ <div>
+ <input data-role="none" type="email" value="<%= user.email %>" name="email" id="form_email" placeholder="Por favor, introduzca su dirección de email" required>
+ </div>
+ </div>
+
+ <p>
+ Esta aplicación necesita enviarle un email de confirmación antes de que podamos enviar su informe al ayuntamiento.
+ </p>
+
+ <p>
+ Para saltar este paso en el futuro, puede configurar una contraseña ahora.
+ </p>
+
+ <div class="bottom-btn">
+ <input data-role="button" data-theme="a" type="button" id="email_confirm" name="email_confirm" value="No quiero configurar una contraseña">
+ <input data-role="button" data-theme="a" type="button" id="set_password" name="set_password" value="Me gustaría configurar una contraseña">
+ <input data-role="button" data-theme="a" type="button" id="have_password" name="have_password" value="Ya tengo una - abrir sesión">
+ </div>
+</div>
diff --git a/www/templates/es/submit_name.html b/www/templates/es/submit_name.html
new file mode 100644
index 0000000..07aeb87
--- /dev/null
+++ b/www/templates/es/submit_name.html
@@ -0,0 +1,39 @@
+<div id="submit-header" data-role="header">
+ <a data-rel="back" data-icon="arrow-l" class="ui-btn-left">Atrás</a>
+ <h1>Sus detalles</h1>
+</div>
+
+<div data-role="content">
+ <div id="errors"></div>
+ <p class="top">
+ <% if ( nopassword ) { %>
+ No hay problema - tampoco nos gusta tontear con contraseñas.
+ <% } %>
+ Por favor, proporciónenos con algunos detalles básicos, y pronto terminaremos.
+ </p>
+ <div class="inputcard">
+ <% if ( typeof model.titles_list !== 'undefined' ) { %>
+ <div>
+ <select data-role="none" placeholder="Título" id="form_title" name="title" required>
+ <option value="">Título</option>
+ <% for ( var i = 0; i < model.titles_list.length; i++ ) { var title = model.titles_list[i]; print( '<option value="' + title + '"' + ( user.title && user.title == title ? ' selected' : '' ) + '>' + title + '</option>' ); } %>
+ </select>
+ </div>
+ <% } %>
+ <div>
+ <input data-role="none" type="text" value="<%= user.name %>" name="name" id="form_name" placeholder="Por favor, introduzca su nombre" required>
+ </div>
+ <div>
+ <input data-role="none" type="tel" value="<%= user.phone %>" name="name" id="form_phone" placeholder="Opcionalmente introduzca su número de teléfono">
+ </div>
+ <div data-role="fieldcontain">
+ <fieldset data-role="controlgroup">
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" <% if ( typeof user.may_show_name == 'undefined' || user.may_show_name ) { %>checked<% } %>>
+ <label for="form_may_show_name">Mostrar mi nombre públicamente</label>
+ </fieldset>
+ </div>
+ </div>
+ <div class="bottom-btn">
+ <input data-role="button" data-theme="a" type="button" id="send_confirm" name="send_confirm" value="Enviar un email de confirmación">
+ </div>
+</div>
diff --git a/www/templates/es/submit_password.html b/www/templates/es/submit_password.html
new file mode 100644
index 0000000..71a3b2a
--- /dev/null
+++ b/www/templates/es/submit_password.html
@@ -0,0 +1,51 @@
+<div id="submit-header" data-role="header">
+ <a data-rel="back" data-icon="arrow-l" class="ui-btn-left">Atrás</a>
+ <h1>Sus detalles</h1>
+</div>
+
+<div data-role="content">
+ <div id="errors"></div>
+ <form id="passwordForm" name="passwordForm">
+ <div id="password_row">
+ <div class="inputcard">
+ <div>
+ <input data-role="none" type="password" value="" name="password" id="form_password" placeholder="Su contraseña" required>
+ </div>
+ </div>
+ <div class="noborder">
+ <input data-role="button" data-theme="a" type="submit" id="report" name="report" value="Informe">
+ </div>
+ </div>
+ <div id="check_name" class="nodisplay">
+ <div class="inputcard">
+ <p>
+ Por favor, confirme su nombre, si quiere que se haga público y opcionalmente su número de teléfono.
+ </p>
+
+ <% if ( typeof model.titles_list !== 'undefined' ) { %>
+ <div>
+ <select data-role="none" placeholder="Título" id="form_title" name="title" required>
+ <option value="">Título</option>
+ <% for ( var i = 0; i < model.titles_list.length; i++ ) { var title = model.titles_list[i]; print( '<option value="' + title + '"' + ( user.title && user.title == title ? ' selected' : '' ) + '>' + title + '</option>' ); } %>
+ </select>
+ </div>
+ <% } %>
+ <div>
+ <input data-role="none" type="text" value="" id="form_name" name="name">
+ </div>
+ <div>
+ <input data-role="none"type="tel" value="<%= user.phone %>" name="name" id="form_phone" placeholder="Por favor, introduzca su número de teléfono (opcional)">
+ </div>
+ <div data-role="fieldcontain">
+ <fieldset data-role="controlgroup">
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1" checked>
+ <label for="form_may_show_name">Mostrar mi nombre públicamente</label>
+ </fieldset>
+ </div>
+ </div>
+ <div class="bottom-btn">
+ <input data-role="button" data-theme="a" type="submit" id="confirm_name" name="report" value="Confirmar nombre">
+ </div>
+ </div>
+ </form>
+</div>
diff --git a/www/templates/es/submit_set_password.html b/www/templates/es/submit_set_password.html
new file mode 100644
index 0000000..a9d9b46
--- /dev/null
+++ b/www/templates/es/submit_set_password.html
@@ -0,0 +1,23 @@
+<div id="submit-header" data-role="header">
+ <a data-rel="back" data-icon="arrow-l" class="ui-btn-left">Atrás</a>
+ <h1>Sus detalles</h1>
+</div>
+
+<div data-role="content">
+ <div id="errors"></div>
+ <form id="passwordForm" name="passwordForm">
+ <div id="password_row">
+ <p class="notopmargin">
+ Introduzca la contraseña de su cuenta. Esta no será activada hasta que haga click sobre el enlace en el email de confirmación
+ </p>
+ <div class="inputcard">
+ <div>
+ <input data-role="none" type="password" value="" name="password" id="form_password" placeholder="Su contraseña" required>
+ </div>
+ </div>
+ <div class="noborder">
+ <input data-role="button" data-theme="a" type="submit" id="continue" name="report" value="Continuar">
+ </div>
+ </div>
+ </form>
+</div>