seitime-frappe/frappe/www/message.html
ci2014 a896ebeab6 Allow users to confirm the message by enter (#4476)
Users can confirm the message and proceed by pressing enter, not necessary to use the mouse.
2017-11-21 16:01:58 +05:30

47 lines
1.1 KiB
HTML

{% extends "templates/web.html" %}
{% block title %}{{ title or _("Message") }}{% endblock %}
{% block page_content %}
<style>
.hero-and-content {
background-color: #f5f7fa;
}
{% if fullpage %}
header, footer {
display: none;
}
html, body {
background-color: #f5f7fa;
}
{% endif %}
{% if card_width %}
.page-card {
max-width: {{ card_width }}px;
}
{% endif %}
</style>
<div class='page-card'>
<div class='page-card-head'>
<span class='indicator {{ indicator_color or "blue" }}'>
{{ title or _("Message") }}</span>
</div>
<p>{{ message or "" }}</p>
{% if primary_action %}
<div><a href='{{ primary_action or "/" }}' class='btn btn-primary btn-sm'>
{{ primary_label or _("Home") }}</a></div>
{% endif %}
</div>
{% if error_code %}
<p class='text-muted text-center small' style='margin-top: -20px;'>{{ _("Status: {0}").format(error_code) }}</p>
{% endif %}
<script>
frappe.ready(function() {
if(window.location.hash) {
localStorage.setItem('session_last_route', window.location.hash.substr(1));
}
$('.btn-primary').focus();
});
</script>
{% endblock %}