Reviewed bug allowing database to be queried on non-existing columns. Looks like a freak bug and code to prevent it was already in place. Not sure what happened to trigger the bug on the production server. Wait for another occurence, then solve. Added Flex Chart as a button on the left panel. Added Workflow configuration to the User Settings page
42 lines
1.1 KiB
HTML
42 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Change Favorite Charts{% endblock %}
|
|
|
|
{% block content %}
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
<div class="grid_12 alpha">
|
|
<div class="grid_4 alpha fav-form-header">
|
|
<p><input type="submit" value="Update Favorites" class="button green small"/></p>
|
|
</div>
|
|
</div>
|
|
{{ favorites_formset.management_form }}
|
|
|
|
{% for favorites_form in favorites_formset %}
|
|
<div class="fav-formset grid_4 alpha">
|
|
<h2>Chart {{ forloop.counter }}</h2>
|
|
<table>
|
|
{{ favorites_form.as_table }}
|
|
</table>
|
|
</div>
|
|
{% endfor %}
|
|
<div class="grid_12 alpha">
|
|
<p> </p>
|
|
</div>
|
|
</form>
|
|
|
|
|
|
|
|
<!-- Include formset plugin - including jQuery dependency -->
|
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
|
<script src="/static/js/jquery.formset.js"></script>
|
|
<script>
|
|
$('.fav-formset').formset({
|
|
addText: '<div class="grid_12"> </div><div class="button grid_2 green small">add chart</div>',
|
|
deleteText: '<div class="grid_12"><p> </p></div><div class="button grid_1 red small">remove</div>'
|
|
});
|
|
</script>
|
|
|
|
|
|
{% endblock %}
|