aboutsummaryrefslogtreecommitdiffstats
path: root/templates/layerindex/editlayernote.html
blob: fb0e7c5c894b18af1e9a1244b46685865c95d4ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{% extends "base.html" %}
{% load i18n %}

{% comment %}

  layerindex-web - add/edit layer note form page template

  Copyright (C) 2013 Intel Corporation
  Licensed under the MIT license, see COPYING.MIT for details

{% endcomment %}

<!--
{% block title_append %} - {% if form.instance.pk %}add layer note{% else %}edit layer note{% endif %}{% endblock %}
-->

{% block content %}
{% autoescape on %}

<h2>Add layer note to {{ form.instance.layer.name }}</h2>

<p>This note will appear at the very top of the layer detail page. This would typically be used for important notices, e.g. &quot;This layer is obsolete, use layer xyz instead&quot;.</p>

<form id="edit_layernote_form" method="post">
    {% csrf_token %}
    {{ form.as_p }}
<input type="submit" value="Save" class="btn btn-default" />
<a href="{% url 'layer_item' 'master' form.instance.layer.name %}" class="btn btn-default">Cancel</a>
</form>

{% endautoescape %}

{% endblock %}


{% block scripts %}
<script>
    $(document).ready(function() {
        $("#edit_layernote_form input:text, #edit_layernote_form textarea").first().focus();
    });
</script>
{% endblock %}