Browse Source

Default disable delete button if usages greater > 0

master
Drew Short 6 years ago
parent
commit
512d3fedb7
  1. 3
      templates/admin.html

3
templates/admin.html

@ -35,7 +35,8 @@
{% if not registration_code.is_expired() %} {% if not registration_code.is_expired() %}
<input type="submit" name="expire" value="Expire"> <input type="submit" name="expire" value="Expire">
{% else %} {% else %}
<input type="submit" name="delete" value="Delete">
<input type="submit" name="delete" value="Delete"
disabled="{{ True if registration_code.usages > 0 else False }}">
{% endif %} {% endif %}
</form> </form>
</td> </td>

Loading…
Cancel
Save