Skip to content

Commit

Permalink
Merge pull request #373 from Cadasta/enhancement/messages
Browse files Browse the repository at this point in the history
Added message timing and css
  • Loading branch information
wonderchook authored Jul 10, 2016
2 parents dd90f9b + af9cf5c commit d177eae
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
12 changes: 10 additions & 2 deletions 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.

10 changes: 10 additions & 0 deletions cadasta/core/static/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,8 @@ button#add-contact { // below contacts table

.alert {
text-align: center;
max-width: 50%;
margin: 0 auto;
}

.translation-wrapper {
Expand All @@ -1075,12 +1077,20 @@ button#add-contact { // below contacts table
#messages { // success messages on top of map
position: relative;
z-index: 999;
margin-top: 10px;
margin-bottom: 10px;
}

.alert-error { // same as alert-danger
@include alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text);
}

@media (max-width: $screen-sm-max) {
.alert {
max-width: none;
}
}

/* =Modals
-------------------------------------------------------------- */

Expand Down
3 changes: 3 additions & 0 deletions cadasta/templates/core/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@
$('.dropdown-toggle').dropdown();
$('#language').change(function() { this.form.submit(); });
});
window.setTimeout(function() {
$(".alert-success").fadeTo(500, 0).slideUp(500, function(){ $(this).remove(); });
}, 5000);
</script>
</body>
</html>
4 changes: 2 additions & 2 deletions cadasta/templates/organization/organization_dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ <h2>{% trans "Organization Overview" %}</h2>
<!-- Starter text -->
<h3 style="text-transform: none;">{% trans "You're ready to go" %}</h3>
<p>
{% trans "You have successfully created your organization. What would you like to do next?" %}
{% trans "You have successfully created your organization. You're now ready to add your first location." %}
</p>
<div class="btn-full">
<a href="{% url 'organization:project-add' organization.slug %}" class="btn btn-primary btn-lg" role="button">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> {% trans "Add a new project" %}
</a>
<a href="#" class="btn btn-primary btn-lg" role="button">
<a href="#" class="btn btn-primary btn-lg hidden" role="button">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> {% trans "Add new members" %}
</a>
</div>
Expand Down

0 comments on commit d177eae

Please sign in to comment.