Hiding new diary entry map by default to save some space, allowing people to expand it if desired.
This commit is contained in:
parent
4954f65061
commit
37317b8295
1 changed files with 3 additions and 3 deletions
|
@ -8,12 +8,12 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<th>Body</th>
|
<th>Body</th>
|
||||||
<td><%= f.text_area :body, :cols => 80, :rows => 10 %></td>
|
<td><%= f.text_area :body, :cols => 80 %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<th>Location</th>
|
<th>Location</th>
|
||||||
<td><div id="map" style="border: 1px solid black; position: relative; width : 90%; height : 250px;"></div><br/>
|
<td><a name="map"></a><div id="map" style="border: 1px solid black; position: relative; width : 90%; height : 300px; display: none;"></div>
|
||||||
<span class="location">Latitude: <%= f.text_field :latitude, :size => 20, :id => "latitude" %> Longitude <%= f.text_field :longitude, :size => 20, :id => "longitude" %></span></td>
|
<span class="location">Latitude: <%= f.text_field :latitude, :size => 20, :id => "latitude" %> Longitude: <%= f.text_field :longitude, :size => 20, :id => "longitude" %></span> <a href="#map" id="usemap" onclick="document.getElementById('map').style.display = 'block'; document.getElementById('usemap').style.display = 'none';">use map</a> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue