daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Jan 16th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {% extends '@App/layout.html.twig' %}
  2. {% block body %}
  3.  <form id="credit">
  4.   <div class="text"><label>Сумма кредита</label> <input type="text" name="amount" id="amount" value="10000" /></div>
  5.   <div class="text"><label>Срок кредита (мес.)</label><input type="text" name="term" id="term" value="12" /></div>
  6.   <div class="text"><label>Процентная ставка</label><input type="text" name="rate" id="rate" value="12" /></div>
  7.   <div class="select"><label>Дата начала выплат</label>
  8.    <select name="startdate" id="startdate">
  9.     {% for i in 1..31 %}
  10.      <option value = {{ i  }} {% if current_date == i %} selected="selected" {% endif %} > {{ i }}</option>
  11.     {% endfor %}
  12.    </select>
  13.    <select name="startmonth" id="startmonth">
  14.     {% for key, month in month_array %}
  15.      <option value = {{ key+1  }} {% if current_month == key+1 %} selected="selected" {% endif %} > {{ month }}</option>
  16.     {% endfor %}
  17.    </select>
  18.    <select name="startyear" id="startyear">
  19.     {% for i in current_year-10..current_year+10 %}
  20.      <option value = {{ i  }} {% if current_year == i %} selected="selected" {% endif %} > {{ i }}</option>
  21.     {% endfor %}
  22.    </select>
  23.   </div>
  24.   <div class="submit"><button type="submit">Рассчитать</button></div>
  25.  </form>
  26.  
  27.  <p><strong>Ежемесячный платеж:</strong> <span id="payment"></span></p>
  28.  <p><strong>Переплата:</strong> <span id="overpay"></span></p>
  29.  <div id="schedule"></div>
  30. {{ credit }}
  31. {% endblock %}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top