Right-align 'Generate PDF' button

This commit is contained in:
Sage Vaillancourt 2022-09-29 13:28:25 -04:00
parent 20a0c7b2e7
commit 5024a79842
1 changed files with 11 additions and 8 deletions

View File

@ -102,13 +102,16 @@
</div> </div>
{% endif %} {% endif %}
<a href="javascript:void(0)" <div style="text-align: right; margin-bottom: 2em;">
class="wipe up-wipe" <a href="javascript:void(0)"
{% if letter_errors %} class="wipe up-wipe"
onclick="clearErrors();document.getElementById('letter-form').submit()" style="margin-bottom: 1em;"
{% else %} {% if letter_errors %}
onclick="document.getElementById('letter-form').submit()" onclick="clearErrors();document.getElementById('letter-form').submit()"
{% endif %} {% else %}
>Generate PDF</a> onclick="document.getElementById('letter-form').submit()"
{% endif %}
>Generate PDF</a>
</div>
</form> </form>
{% endblock content %} {% endblock content %}