[Rt-commit] rt branch, 4.6-theme/admin-scrips-pages, updated. rt-4.4.4-184-gd90b53c1f

Blaine Motsinger blaine at bestpractical.com
Thu Apr 11 18:34:33 EDT 2019


The branch, 4.6-theme/admin-scrips-pages has been updated
       via  d90b53c1f058c37be59c08a2b022eeaf6f82c970 (commit)
      from  563e04e2859f9ab157fd3e6aa9480400eb2f92ba (commit)

Summary of changes:
 share/html/Admin/Scrips/Modify.html | 53 +++++++++++++++++++++----------------
 1 file changed, 30 insertions(+), 23 deletions(-)

- Log -----------------------------------------------------------------
commit d90b53c1f058c37be59c08a2b022eeaf6f82c970
Author: Blaine Motsinger <blaine at bestpractical.com>
Date:   Thu Apr 11 17:34:10 2019 -0500

    Migrate Admin/Scrips/Modify to elevator themes

diff --git a/share/html/Admin/Scrips/Modify.html b/share/html/Admin/Scrips/Modify.html
index 6ff6d83b6..e50f0e0cd 100644
--- a/share/html/Admin/Scrips/Modify.html
+++ b/share/html/Admin/Scrips/Modify.html
@@ -50,47 +50,54 @@
 <& /Elements/ListActions, actions => \@results &>
 
 <form method="post" action="Modify.html" id="ModifyScrip" name="ModifyScrip">
-<input type="hidden" class="hidden" name="id" value="<% $id %>" />
-<input type="hidden" class="hidden" name="From" value="<% $From || q{} %>" />
+  <input type="hidden" class="hidden" name="id" value="<% $id %>" />
+  <input type="hidden" class="hidden" name="From" value="<% $From || q{} %>" />
 
-<&| /Widgets/TitleBox, title => loc('Basics') &>
-<table>
+  <&| /Widgets/TitleBox, title => loc('Basics') &>
 
-<& Elements/EditBasics, %ARGS, Scrip => $scrip &>
+  <& Elements/EditBasics, %ARGS, Scrip => $scrip &>
 
-% if ( not $disabled ) {
-<tr><td class="label"><a href="Objects.html?id=<% $id %>"><&|/l&>Applies to</&></a>:</td>
-<td class="value">\
+  <div class="form-row">
+    <div class="col-md-3 label">
+      <a href="Objects.html?id=<% $id %>"><&|/l&>Applies to</&></a>:
+    </div>
+    <div class="col-md-9 value">
 % if ( $scrip->IsGlobal ) {
-<a href="<% RT->Config->Get('WebPath') %>/Admin/Global/Scrips.html"><% loc('Global') %></a>
+      <a href="<% RT->Config->Get('WebPath') %>/Admin/Global/Scrips.html"><% loc('Global') %></a>
 % } else {
 % my $added_to = $scrip->AddedTo;
 % my $found = 0;
 % while ( my $queue = $added_to->Next ) {
 % $m->out(', ') if $found++;
-<a href="<% RT->Config->Get('WebPath') %>/Admin/Queues/Scrips.html?id=<% $queue->id %>">\
-<% $queue->Name %></a>\
+      <a href="<% RT->Config->Get('WebPath') %>/Admin/Queues/Scrips.html?id=<% $queue->id %>">\
+      <% $queue->Name %></a>\
 % last if $found == 10;
 % }
 % $m->out(', ...') if $found == 10;
 % }
-<td></tr>
-% }
+    </div>
+  </div>
+
+  <input type="hidden" class="hidden" name="SetEnabled" value="1" />
 
-<tr><td class="label"> </td><td>
-<input type="hidden" class="hidden" name="SetEnabled" value="1" />
-<input type="checkbox" class="checkbox" name="Enabled" id="Enabled" value="1" <% $EnabledChecked |n%> />
-<label for="Enabled"><&|/l&>Enabled (Unchecking this box disables this scrip)</&></label>
-</td></tr>
+  <div class="form-row">
+    <div class="col-md-3 label">
+    </div>
+    <div class="col-md-9 value">
+      <div class="custom-control custom-checkbox">
+        <input type="checkbox" class="checkbox custom-control-input" name="Enabled" id="Enabled" value="1" <% $EnabledChecked |n%> />
+        <label class="custom-control-label" for="Enabled"><&|/l&>Enabled (Unchecking this box disables this scrip)</&></label>
+      </div>
+    </div>
+  </div>
 
-</table>
-</&>
+  </&>
 
-<& /Elements/Submit, Label => loc('Save Changes'), Name => 'Update', Reset => 1 &>
+  <& /Elements/Submit, Label => loc('Save Changes'), Name => 'Update', Reset => 1 &>
 
 % if ($session{CurrentUser}->HasRight(Object => $RT::System, Right => 'ExecuteCode')) {
-<& Elements/EditCustomCode, %ARGS, Scrip => $scrip &>
-<& /Elements/Submit, Label => loc('Save Changes'), Name => 'Update', Reset => 1 &>
+  <& Elements/EditCustomCode, %ARGS, Scrip => $scrip &>
+  <& /Elements/Submit, Label => loc('Save Changes'), Name => 'Update', Reset => 1 &>
 % }
 
 </form>

-----------------------------------------------------------------------


More information about the rt-commit mailing list