{% load i18n %}

<form id="paid-task-form" method="post" action="">
    {% csrf_token %}
    <h2>{% trans "Add Task" %}</h2>
    <table>
    {% for field in paid_task_form %}
      {% if not field.is_hidden %}
      <tr>
      <td class="label">
        {{ field.label_tag }}
      </td>
      <td>
        <div class="field-wrapper">
        {% if field.name == 'datetime' %}
          {{ field.as_hidden }}
          <div class="month"></div>
        {% else %}
          {{ field }}
        {% endif %}
        </div>
        {% if field.name == 'amount' %}
          <div class="units task-{{ paid_task_types.TRANSLATION }} task-{{ paid_task_types.REVIEW }}">{% trans "words" %}</div>
          <div class="units task-{{ paid_task_types.HOURLY_WORK }}">{% trans "hours" %}</div>
          <div class="units task-{{ paid_task_types.CORRECTION }} currency"></div>
        {% endif %}
      </td>
      </tr>
      {% else %}
        {{ field }}
      {% endif %}
    {% endfor %}
      <tr>
        <td></td>
        <td><input type="submit" class="submit btn" value="{% trans 'Add record' %}"/></td>
      </tr>
    </table>
  </form>
