layerindex-web/templates/layerindex/editlayernote.html
Paul Eggleton 517424dc81 Upgrade to Bootstrap 3
Use a more modern version of Bootstrap and take the opportunity to
upgrade jQuery to the latest version at the same time. This provides
better browser compatibility, moves to MIT license, allows us to make
the site more responsive for different devices in future, and provides
theming capabilities for custom installs among other improvements.

(I chose to upgrade to v3 for now rather than straight to v4 as it was
easier to do this gradually.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-09-20 15:57:59 +12:00

43 lines
1.1 KiB
HTML

{% 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 %}