[marinemap] push by perrygeo...@gmail.com - Change layout and styling of bookmark create/edit form on 2011-10-20 17:32 GMT

0 views
Skip to first unread message

mari...@googlecode.com

unread,
Oct 20, 2011, 1:33:23 PM10/20/11
to marinema...@googlegroups.com
Revision: d0c679937621
Author: Matthew Perry <perryg...@gmail.com>
Date: Thu Oct 20 10:34:46 2011
Log: Change layout and styling of bookmark create/edit form
http://code.google.com/p/marinemap/source/detail?r=d0c679937621

Modified:
/lingcod/bookmarks/templates/bookmarks/form.html
/media/bookmarks/css/bookmarks.css

=======================================
--- /lingcod/bookmarks/templates/bookmarks/form.html Wed Oct 19 11:41:04
2011
+++ /lingcod/bookmarks/templates/bookmarks/form.html Thu Oct 20 10:34:46
2011
@@ -46,10 +46,11 @@
}

$('#camera_capture').click(capture);
- // Grab the current view if its a "Create New" situation
+ // Grab the rurrent view if its a "Create New" situation
if (!$('#id_latitude').val()) {
capture();
$('#bookmark-close').show();
+ $('.bookmark-notice').show();
}

var ftog = function() {
@@ -66,9 +67,12 @@
.marinemap-panel form ul li { padding-left: 4px; }
</style>
<h1>{{ title }}</h1>
-<form id="featureform" action="{{action}}" method="post">
-
-
+
+<div class="bookmark-notice box" style="display:none;">The current view
has been recorded</div>
+
+<form id="featureform" action="{{action}}" method="post">
+
+ <div class="box">
{% for field in form.visible_fields %}
<div class="field{% if field.field.required %} required{%
endif %}">
{{ field.label_tag }}
@@ -90,24 +94,27 @@
{% endfor %}

<label for="id_camera">Bookmark settings</label>
- <a href="#" class="button" id="camera_capture"
onclick="this.blur(); return false;"><span>Recapture View</span></a>
- <br/>
- <div> The bookmark is set to capture the public layers and camera
angle at the moment when you first created the bookmark.
- If you have changed the view and wish to reflect that in the
bookmark, click <em>Recapture View</em> above. </div>
-
- <div style="padding:15px">
- <a href="#" id="fshow_toggle_details" style="color:grey;
font-family: monospace">show details</a>
- <a href="#" id="fhide_toggle_details" style="display:none;
color:grey; font-family: monospace">hide details</a>
- <div id="fshow_camera_results" style="display:none; color:grey;
font-family: monospace">
- <ul>
- {% for hidden in form.hidden_fields %}
- {% if hidden.name != "user" %}
- <li id="item_{{hidden.name}}"> {% if hidden.value %} {{
hidden.name }} : {{ hidden.value }} {% endif %}</li>
- {% endif %}
- {% endfor %}
- </ul>
+ <div style="padding:5px">
+ <a href="#" id="fshow_toggle_details">show details</a>
+ <a href="#" id="fhide_toggle_details"
style="display:none;">hide details</a>
+ <div id="fshow_camera_results" style="display:none;
color:grey; font-family: monospace">
+ <ul>
+ {% for hidden in form.hidden_fields %}
+ {% if hidden.name != "user" %}
+ <li id="item_{{hidden.name}}"> {% if hidden.value %}
{{ hidden.name }} : {{ hidden.value }} {% endif %}</li>
+ {% endif %}
+ {% endfor %}
+ </ul>
+ </div>
+ </div>
+
+ <p> <strong>Note:</strong> You can <em> Reset View</em> if you
have changed the view and wish to reflect that in the bookmark... </p>
+ <div> <a href="#" class="button" id="camera_capture"
onclick="this.blur(); return false;"><span>Reset View</span></a></div>
+ <br/>
+ <br/>
</div>
- </div>
+
+

</div>

=======================================
--- /media/bookmarks/css/bookmarks.css Wed Oct 19 10:53:27 2011
+++ /media/bookmarks/css/bookmarks.css Thu Oct 20 10:34:46 2011
@@ -1,3 +1,22 @@
#bookmark-close-container {position:relative; top: -12px; left: 10px;}
#bookmark-feature-img {padding: 6px;}
#bookmark-menu-img {padding: 6px; padding-top:10px;}
+.bookmark-notice {
+ background-color: #EEE8AA !important;
+ font-weight: bold;
+ text-align: center;
+}
+div .box {
+ -moz-box-shadow: 5px 5px 5px #ddd;
+ -webkit-box-shadow: 5px 5px 5px #ddd;
+ box-shadow: 5px 5px 5px #ddd;
+ -moz-border-radius: 6px;
+ -webkit-border-radius: 6px;
+ -khtml-border-radius: 6px;
+ border-radius: 6px;
+ border: 1px #ddd solid;
+ padding: 6px;
+ margin-top: 6px;
+ margin-bottom: 6px;
+ background-color: white;
+}

Reply all
Reply to author
Forward
0 new messages