]> dev.renevier.net Git - syj.git/commitdiff
increase title max size to 160 characters
authorArno Renevier <arno@renevier.net>
Thu, 11 Aug 2011 17:01:35 +0000 (19:01 +0200)
committerArno Renevier <arno@renevier.net>
Fri, 12 Aug 2011 09:51:57 +0000 (11:51 +0200)
application/forms/Geom.php
public/css/list.css
scripts/schema.postgres.sql

index 171450983100004a79cb6b7ed74cd3e453740886..9dc5c3882a423396f716d874a94f607ace06cf0b 100644 (file)
@@ -26,8 +26,8 @@ class Syj_Form_Geom extends Zend_Form implements Syj_Processor_Interface
 
         $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',
index 12e1a5b90a88c6705f91191721a2dffc56b14973..b6cb7adee5ebb0421d1c75d9b043f616adca3962 100644 (file)
@@ -38,6 +38,9 @@
     *margin-top: -1em; /* in ie <=7, .control-link margin-bottom "pushes" .title */
     height: 32px;
     clear: left;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    -o-text-overflow: ellipsis;
 }
 
 .page-link {
index ea8777d1b07e23a2a4ddfd39d037762247c79ed7..bcbfef3e07c364f34854338fc2718d7113c8f189 100644 (file)
@@ -102,7 +102,7 @@ CREATE TABLE paths (
     geom GEOGRAPHY (LINESTRING, 4326) NOT NULL,
     creator INTEGER REFERENCES users ON DELETE SET NULL,
     creator_ip INET NOT NULL,
-    title VARCHAR(40),
+    title VARCHAR(160),
     last_update TIMESTAMP NOT NULL DEFAULT NOW(),
     urlcomp VARCHAR(20) UNIQUE CHECK (urlcomp ~ '^[a-z][a-zA-Z0-9_]*$') -- ~: matches regular expression; case sensitive
 );