Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

87 lignes
2.5 KiB

  1. {% extends "templates/web.html" %}
  2. {% block title %} ERPNext Certification {% endblock %}
  3. {% block page_content %}
  4. {% macro show_currency_options() %}
  5. <p> Certification price is 20,000 INR / 300 USD.</p>
  6. <section>
  7. <input type="radio" name="gender" value="USD" checked> USD <br>
  8. <input type="radio" name="gender" value="INR" style="margin-top: 15px;"> INR <br>
  9. </section>
  10. <div class="section" style="margin-top:10px;"><a class="btn btn-primary next"> Next </a></div>
  11. <script>
  12. frappe.ready(function() {
  13. $('.next').on('click', function() {
  14. if($("input[type=radio]:checked").val() == 'INR'){
  15. window.location = '/certification-application?new=1'
  16. }
  17. else{
  18. window.location = '/certification-application-usd?new=1'
  19. }
  20. })
  21. })
  22. </script>
  23. {% endmacro %}
  24. {% if frappe.session.user=='Guest' %}
  25. <div class='with-border'>
  26. <p>You must first sign up and login to apply for certification.</p>
  27. <p><a href="/login#signup" class=''>Sign Up</a></p>
  28. </div>
  29. {% else %}
  30. {% if all_certifications %}
  31. <h2>Certification History</h2>
  32. <div class="table">
  33. <table class="table table-bordered table-hover">
  34. <thead>
  35. <tr class="active">
  36. <th style="width: 150px">Certification Id</th>
  37. <th style="width: 120px">From</th>
  38. <th style="width: 120px">To</th>
  39. <th style="width: 100px">Amount</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. {% for certification in all_certifications %}
  44. <tr>
  45. <td>{{ certification['name'] }}</td>
  46. <td>{{ frappe.format_date(certification['from_date']) }}</td>
  47. <td>{{ frappe.format_date(certification['to_date']) }}</td>
  48. <td>{{ frappe.utils.fmt_money(certification['amount'],currency=frappe.db.get_value("Currency",certification['currency'],"symbol")) }}</td>
  49. </tr>
  50. {% endfor %}
  51. </tbody>
  52. </table>
  53. </div>
  54. {% endif %}
  55. {% if not all_certifications %}
  56. {{ show_currency_options() }}
  57. {% elif all_certifications and (frappe.utils.getdate(all_certifications[0]['to_date']) < frappe.utils.getdate(frappe.utils.nowdate())) %}
  58. <p>Your certification has expired. Click on the button below to start a new certification.</p>
  59. {{ show_currency_options() }}
  60. {% elif all_certifications and (frappe.utils.getdate(frappe.utils.add_days(all_certifications[0]['to_date'], -30)) < frappe.utils.getdate(frappe.utils.nowdate()))%}
  61. <p>Your certification is due to expire soon. Click on the button below to start a new certification.</p>
  62. {{ show_currency_options() }}
  63. {% endif %}
  64. {% endif %}
  65. {% endblock %}