Skip to content

Commit

Permalink
Merge pull request #399 from Cadasta/bugfix/css-locationmsg
Browse files Browse the repository at this point in the history
Map error message
  • Loading branch information
ian-ross authored Jul 12, 2016
2 parents d3e1d82 + 6d5ce27 commit 4b084b7
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 9 deletions.
9 changes: 8 additions & 1 deletion cadasta/core/static/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cadasta/core/static/css/main.css.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions cadasta/core/static/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ header {
position: relative;
height: $header-height;
background-color: $brand-primary;
-webkit-box-shadow: 0 1px 4px rgba(31,54,79,.2);
-moz-box-shadow: 0 1px 4px rgba(31,54,79,.2);
box-shadow: 0 1px 4px rgba(31,54,79,.2);
&.header {
top: 0;
Expand Down Expand Up @@ -525,6 +527,7 @@ header {
padding-top: 30px;
background: #fff;
-webkit-box-shadow: 0 0 6px rgba(0,0,0,.3);
-moz-box-shadow: 0 0 6px rgba(0,0,0,.3);
box-shadow: 0 0 6px rgba(0,0,0,.3);
border-radius: 4px;
}
Expand Down Expand Up @@ -669,6 +672,7 @@ header {
overflow-x: hidden;
overflow-y: scroll;
-webkit-box-shadow: 0 0 6px rgba(0,0,0,.3);
-moz-box-shadow: 0 0 6px rgba(0,0,0,.3);
box-shadow: 0 0 6px rgba(0,0,0,.3);
z-index: 300;
.btn {
Expand Down Expand Up @@ -1068,6 +1072,9 @@ button#add-contact { // below contacts table
text-align: center;
max-width: 50%;
margin: 0 auto;
-webkit-box-shadow:: 10px 10px 6px -8px rgba(0,0,0,.5);
-moz-box-shadow: 10px 10px 6px -8px rgba(0,0,0,.5);
box-shadow: 10px 10px 6px -8px rgba(0,0,0,.5);
}

.translation-wrapper {
Expand Down
1 change: 1 addition & 0 deletions cadasta/templates/organization/project_wrapper.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ <h1>
<li><a class="edit" href="{% url 'organization:project-edit-permissions' object.organization.slug object.slug %}">{% trans "Edit member permissions" %}</a></li>
<li role="separator" class="divider"></li>
<li><a href="{% url 'organization:project-download' object.organization.slug object.slug %}" data-toggle="modal">{% trans "Download data" %}</a></li>
<li role="separator" class="divider"></li>
<li>
{% if object.archived %}
<a class="archive" href="#unarchive_confirm" data-toggle="modal">{% trans "Unarchive project" %}</a>
Expand Down
14 changes: 7 additions & 7 deletions cadasta/templates/spatial/location_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ <h2>{{ title }}</h2>
<div class="panel-body">

<h3>Draw location on map</h3>
<p>
{% blocktrans %}Use the map tools to mark your new location. Next select the location type below. Once complete, select the save button.<br /><br />{% endblocktrans %}
</p>
<div class="form-group">
{{ form.type.errors }}
<label for="{{ form.type.id_for_label }}">{% trans "What type of location is this?" %}</label>
<div class="clearfix form-group{% if form.geometry.errors %} has-error{% endif %}">
<p>{% blocktrans %}1. Use the tools provided on the left side of the map to mark your new location.{% endblocktrans %}</p>
<label class="control-label">{{ form.geometry.errors }}</label>
</div>
<div class="form-group{% if form.type.errors %} has-error{% endif %}">
<label for="{{ form.type.id_for_label }}">{% trans "2. What type of location is this?" %}</label>
<label class="pull-right control-label">{{ form.type.errors }}</label>
{% render_field form.type class+="form-control" %}
</div>
{% for field in form %}
Expand All @@ -34,7 +35,6 @@ <h3>Draw location on map</h3>
</div>
{% endif %}
{% endfor %}
{{ form.geometry.errors }}
</div>
<div class="panel-footer panel-buttons">
<input class="btn btn-primary" type="submit" value="{% trans 'Save' %}"/>
Expand Down

0 comments on commit 4b084b7

Please sign in to comment.