[Rt-commit] rt branch, 5.0/fix-old-attach-layout, created. rt-5.0.1-12-g30c94e5abb
Blaine Motsinger
blaine at bestpractical.com
Thu Feb 18 18:14:12 EST 2021
The branch, 5.0/fix-old-attach-layout has been created
at 30c94e5abbca114823472f0fa22b336fa1c6caeb (commit)
- Log -----------------------------------------------------------------
commit 30c94e5abbca114823472f0fa22b336fa1c6caeb
Author: Blaine Motsinger <blaine at bestpractical.com>
Date: Fri Feb 12 19:28:46 2021 -0600
Fix AddAttachment inputs for old-attach layout
This commit fixes the old-attach form by fixing the html structure,
adding bootstrap divs, and restoring the missing hidden input.
diff --git a/share/html/Ticket/Elements/AddAttachments b/share/html/Ticket/Elements/AddAttachments
index 352ca15ec3..892800a844 100644
--- a/share/html/Ticket/Elements/AddAttachments
+++ b/share/html/Ticket/Elements/AddAttachments
@@ -162,11 +162,19 @@ jQuery( function() {
});
</script>
<div class="hidden old-attach">
- <div class="custom-file">
- <input type="file" id="Attach" name="Attach" class="custom-file-input" />
- <label class="custom-file-label" for="Attach">
- <input type="submit" class="button" name="AddMoreAttach" value="<&|/l&>Add More Files</&>" />
- </label>
+ <div class="form-row">
+ <div class="col-12">
+ <div class="custom-file">
+ <input type="file" id="Attach" name="Attach" class="custom-file-input" />
+ <label class="custom-file-label" for="Attach"></label>
+ </div>
+ </div>
+ </div>
+ <div class="form-row">
+ <div class="col-12">
+ <input type="submit" class="button btn btn-primary form-control" name="AddMoreAttach" value="<&|/l&>Add More Files</&>" />
+ <input type="hidden" class="hidden" name="UpdateAttach" value="1" />
+ </div>
</div>
</div>
</div>
-----------------------------------------------------------------------
More information about the rt-commit
mailing list