...
 
Commits (3)
......@@ -98,7 +98,7 @@ def format_poi_desc(poi, name):
territories = u', '.join(poi['offre-de-transport']['value']['territoire-couvert']['value'])
fields = {
'Nom': name,
'Fiche Passim': '<a href="{0}/{1}/{2}">Lien</a>'.format('http://10.18.0.186:6543', models[poi['metadata']['schema-name']], str(poi['metadata']['id'])),
'Fiche Passim': '<a href="{0}/{1}/{2}">Lien</a>'.format('http://passim.info', models[poi['metadata']['schema-name']], str(poi['metadata']['id'])),
u'Mise à jour': str(poi['metadata']['last-update']['date']),
'Territoires': territories,
}
......
......@@ -14,7 +14,7 @@ var RecaptchaOptions = {
<script src="${request.static_path('passim:static/js/contact.js', _query=dict(version=app_version))}"></script>
<script>
function convertRecaptchaFieldName(data) {
$('#form_contact').append('<input type="hidden" name="g_recaptcha_response" value="' + data[0] + '"/>')
$('#form_contact').append('<input type="hidden" name="g_recaptcha_response" value="' + data + '"/>')
}
</script>
</%def>
......@@ -70,7 +70,7 @@ ${content | n}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">${_('Cancel')}</button>
<button type="submit" class="btn btn-primary" value="send"/>${_('Send')}</button>
<button type="submit" class="btn btn-primary" value="send">${_('Send')}</button>
</div>
</fieldset>
</form>
......
......@@ -8,7 +8,7 @@ var RecaptchaOptions = {
<script src="${request.static_path('passim:static/js/contribute.js', _query=dict(version=app_version))}"></script>
<script>
function convertRecaptchaFieldName(data) {
$('#form_contribute').append('<input type="hidden" name="g_recaptcha_response" value="' + data[0] + '"/>')
$('#form_contribute').append('<input type="hidden" name="g_recaptcha_response" value="' + data + '"/>')
}
</script>
<%page args="subject, body"/>
......