PageRenderTime 21ms CodeModel.GetById 7ms RepoModel.GetById 0ms app.codeStats 0ms

/src/economy/templates/contract/show.html

https://bitbucket.org/danseku/fokus
HTML | 60 lines | 49 code | 8 blank | 3 comment | 0 complexity | 73da835b0d811c468453743f29f7173c MD5 | raw file
  1. {% extends "base.html" %}
  2. {% load currency %}
  3. {% block extra_headers %}
  4. {% if quickedit %}
  5. <script src="/static/scripts/jquery.color.js" type="text/javascript"></script>
  6. <script src="/static/scripts/quickedit.js" type="text/javascript"></script>
  7. {% endif %}
  8. {% endblock %}
  9. {% block bodyparams %}{% if quickedit %}onbeforeunload="return checkOutstandingRequests()"{% endif %}{% endblock %}
  10. {% block help %}
  11. {% endblock %}
  12. {% block content %}
  13. <div class="inner">
  14. <h1>{{ pagetitle }}</h1>
  15. <table class="datatable">
  16. {% if contract.category %}
  17. <tr>
  18. <th>Kategori:</th>
  19. <td>{{ contract.category }}</td>
  20. </tr>
  21. {% endif %}
  22. <tr>
  23. <th>Selskap:</th>
  24. <td>{{ contract.company }}</td>
  25. </tr>
  26. <tr>
  27. <th>Budsjett:</th>
  28. <td>{{ contract.budget|currency }}</td>
  29. </tr>
  30. <tr>
  31. <th>Kontraktsbel?p:</th>
  32. <td>{{ contract.amount|currency }}</td>
  33. </tr>
  34. <tr>
  35. <th>Kommentar:</th>
  36. <td>{{ contract.comment }}</td>
  37. </tr>
  38. </table>
  39. <p>
  40. <a href="{{ contract.project.get_absolute_url }}">&laquo; Tilbake til oversikten</a> |
  41. <a href="{{ contract.get_edit_url }}">Redig?r kontrakt</a>
  42. </p>
  43. </div>
  44. {% include "contract/list_for_contract.html" %}
  45. {% if highlight %}
  46. <script type="text/javascript">
  47. <!--
  48. highlight("tr#{{ highlight }}", "#ccffcc");
  49. // -->
  50. </script>
  51. {% endif %}
  52. {% endblock %}