Skip to content

Commit

Permalink
Update MSExcel checkbox on dashboard subscription page for RT 5
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnavy committed Apr 5, 2022
1 parent 9e19923 commit 40d10aa
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
% if ( RT::Handle::cmp_version($RT::VERSION, '5.0.0') < 0 ) {
<tr><td class="label">
<&|/l&>Microsoft Excel Attachment</&>:
</td><td class="value">
<input type="checkbox" id="MSExcel" name="MSExcel" value="selected" <% $FieldsRef->{'MSExcel'} eq 'selected' ? 'checked="checked"' : "" |n %>></input>
<label for="MSExcel"><&|/l&>Send reports as attached Microsoft Excel (.xlsx) files</&></label>
</td></tr>
% } else {
<div class="form-row">
<div class="col-3 label"></div>
<div class="col-9 value">
<div class="custom-control custom-checkbox">
<input type="checkbox" id="MSExcel" name="MSExcel" class="custom-control-input" value="selected" <% $FieldsRef->{'MSExcel'} ? 'checked="checked"' : "" |n %>>
<label class="custom-control-label" for="MSExcel"><&|/l&>Send reports as attached Microsoft Excel (.xlsx) files</&></label>
</div>
</div>
</div>
% }
<%ARGS>
$FieldsRef
$SubscriptionObj
Expand Down

0 comments on commit 40d10aa

Please sign in to comment.