<?php
-/* This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+/* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
and is published under the AGPL license. */
class Syj_Form_Geom extends Zend_Form implements Syj_Processor_Interface
$data = array('Hidden', 'geom_data', array('required' => true, 'decorators' => array('ViewHelper', 'Errors')));
- $upload = array('File', 'geom_upload', array("label" => $translator->translate("choose route from a file"),
+ $upload = array('File', 'geom_upload', array("label" => $translator->translate("Draw journey on the map or choose one from a file"),
'validators' => array(),
'ignoreNoFile' => true,
'decorators' => array(
$title = array('Text', 'geom_title', array(
'label' => __("optional title for this journey"),
- 'attribs' => array('maxlength' => '40', 'size' => '20'),
- 'validators' => array(new Zend_Validate_StringLength(0, 40)),
+ 'attribs' => array('maxlength' => '160', 'size' => '20'),
+ 'validators' => array(new Zend_Validate_StringLength(0, 160)),
'decorators' => array(
'ViewHelper',
'Errors',
$anchor = $this->getView()->Anchor("termsofuse?format=raw",
$translator->translate("terms of use"),
- array('id' => 'geom_termsofuse_anchor'));
+ array('id' => 'geom_termsofuse_anchor', 'tabindex' => '0'));
$text = $translator->translate("I've read and accepted %s");
$text = vsprintf($text, $anchor);
$touaccept = array('Checkbox', 'geom_accept', array("label" => $text,