Changeset 684


Ignore:
Timestamp:
Oct 10, 2005, 12:37:43 AM (16 years ago)
Author:
Earle Martin
Message:

add summary field to search results; fix bug breaking distance input fields if lat/lon is being used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/supersearch.tt

    r683 r684  
    3636        <th>Location:</th>
    3737        <td>
    38           <ul>
    39             [% IF coord_field_1 == 'os_x' OR coord_field_1 == 'osie_x' %]
    40               <li>
    41                 within <input type="text" name="[% dist_field %]" value="[% dist %]" size="5" maxlength="5" /> metres
    42                 of [% coord_field_1_name %]
    43                 <input type="text" name="[% coord_field_1 %]" value="[% coord_field_1_value %]" size="10" maxlength="10" />,
    44                 [% coord_field_2_name %]
    45                 <input type="text" name="[% coord_field_2 %]" value="[% coord_field_2_value %]" size="10" maxlength="10" />
    46               </li>
    47             [% END %]
    48             <li>
    49               within <input type="text" name="latlong_dist" value="[% dist %]" size="5" maxlength="5" /> metres
    50               of latitude <input type="text" name="latitude" value="[% latitude %]" size="10" maxlength="10" />
    51               longitude <input type="text" name="longitude" value="[% longitude %]" size="10" maxlength="10" />
    52             </li>
    53           </ul>
     38          <p>
     39            within <input type="text" name="[% dist_field %]" value="[% dist %]" size="5" maxlength="5" /> metres of<br />
     40            [% coord_field_1_name %] <input type="text" name="[% coord_field_1 %]" value="[% coord_field_1_value %]" size="10" maxlength="10" />,<br />
     41            [% coord_field_2_name %] <input type="text" name="[% coord_field_2 %]" value="[% coord_field_2_value %]" size="10" maxlength="10" />
     42          </p>
    5443        </td>
    5544      </tr>
     
    7463            [% IF result.distance %]
    7564              ([% result.distance %] metres away)
    76             [% END %]
    77             <br />
     65            [% END %][% IF result.summary %]
     66            <div class="hit_summary">
    7867            [% result.summary %]
     68            </div>[% END %]
    7969          </li>
    8070        [% END %]
Note: See TracChangeset for help on using the changeset viewer.