Skip to content

Commit

Permalink
feat(form): submit forms once
Browse files Browse the repository at this point in the history
replaces 93887d5 to have a spinner on the submit button
  • Loading branch information
btry committed Oct 4, 2022
1 parent 93887d5 commit abed861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/pages/userform.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<div class="asset">
{% set formName = 'plugin_formcreator_form' %}
<form name="{{ formName }}" method="post" role="form" enctype="multipart/form-data" class="plugin_formcreator_form" action="javascript:plugin_formcreator.submitUserForm()" onkeypress="return plugin_formcreator.submitUserFormByKeyPress(event);" id="plugin_formcreator_form" data-itemtype="PluginFormcreatorForm" data-id="{{ item.fields['id'] }}">
<form name="{{ formName }}" method="post" role="form" enctype="multipart/form-data" class="plugin_formcreator_form" action="javascript:plugin_formcreator.submitUserForm()" onkeypress="return plugin_formcreator.submitUserFormByKeyPress(event);" id="plugin_formcreator_form" data-itemtype="PluginFormcreatorForm" data-id="{{ item.fields['id'] }}" data-submit-once="true">
<h1 class='form-title'>
{{ call('Glpi\\Toolbox\\Sanitizer::unsanitize', [__(item.fields['name'], options.domain)]) }}
<i class="fas fa-print" style="cursor: pointer;" onclick="window.print();"></i>
Expand Down

0 comments on commit abed861

Please sign in to comment.