{% load i18n %}

<form id="user-rates-form" method="post" action="">
  <h2>{% trans "Set Rates" %}</h2>
  {% csrf_token %}
  <table>
  {% for field in user_rates_form %}
    {% if not field.is_hidden %}
    <tr>
    <td class="label">
      {{ field.label_tag }}
    </td>
    <td>
      {% if field.help_text %}
        <div class="help">{{ field.help_text }}</div>
      {% endif %}
      <div class="field-wrapper">
      {{ field }}
      </div>
      {% if field.name == 'rate' or field.name == 'review_rate' or field.name == 'hourly_rate' %}
        <div class="currency"></div>
      {% endif %}
    </td>
    </tr>
    {% else %}
      {{ field }}
    {% endif %}
  {% endfor %}
    <tr>
      <td></td>
      <td><input type="submit" class="submit btn" value="{% trans 'Save' %}"/></td>
    </tr>
  </table>
</form>
