app/soc/templates/soc/program/allocation/allocation.html
author Sverre Rabbelier <srabbelier@gmail.com>
Wed, 08 Apr 2009 23:45:41 +0000
changeset 2136 5d55e61dd338
parent 1747 02f15a955c42
child 2147 5dd2091c8f0c
permissions -rw-r--r--
Add a submit method and button to slots view Patch by: Sverre Rabbelier

{% extends "soc/models/list.html" %}

{% block scripts %}
{{ block.super }}

<script type="text/javascript">
  var MAX_AVAILABLE_SLOTS = {{ total_slots }};
  var RETURN_URL = "{{ return_url }}";
  $(document).ready(function(){
    $('[id^=id_spin_slot_count_]').spin({min:0, max:MAX_AVAILABLE_SLOTS});
    $('[id^=id_spin_adjustment_count_]').spin();
    $(tooltip).purr({usingTransparentPNG: true, isSticky: true});
    $("#p_total_slots").html("<strong>Max slots:</strong> "+MAX_AVAILABLE_SLOTS);
    retrieveJSON();
  });
</script>
{% endblock %}

{% block body %}

<input type="button" class="button" onclick="javascript:reCalculate()" value="Recalculate slots" />
<input type="button" class="button" onclick="javascript:submit()" value="Submit" />

{{ block.super }}

{% endblock %}