Skip to content

Instantly share code, notes, and snippets.

@tolanych
Created June 2, 2020 06:29
Show Gist options
  • Save tolanych/6da33eae6bc2b222f1fa57871b8e7513 to your computer and use it in GitHub Desktop.
Save tolanych/6da33eae6bc2b222f1fa57871b8e7513 to your computer and use it in GitHub Desktop.
TicketForm CSS preloader
<div class="col-md-6 move-right">
<input type="button" class="btn btn-primary publish" name="publish" value="[[%ticket_publish]]" title="" />
<div class="spinner-border" style="display:none; float: left; width: 2rem; height: 2rem;"></div>
<style>
.form-actions .btn:disabled + .spinner-border {display:block!important}
</style>
<input type="submit" class="btn btn-danger draft" name="draft" value="[[%ticket_draft]]" title="Ctrl + Shift + Enter" />
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment