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

Blaine Motsinger blaine at bestpractical.com
Tue Apr 16 10:16:22 EDT 2019


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

Summary of changes:
 share/html/Admin/Scrips/Objects.html | 124 +++++++++++++++++++----------------
 1 file changed, 66 insertions(+), 58 deletions(-)

- Log -----------------------------------------------------------------
commit 7b6517b5b3e832bc83a6f8587ff43ebf7fb28e51
Author: Blaine Motsinger <blaine at bestpractical.com>
Date:   Tue Apr 16 09:14:22 2019 -0500

    Migrate Admin/Scrips/Objects to elevator themes
    
    This commit is a partial migration to the new theme, minus the
    CollectionList element sections.

diff --git a/share/html/Admin/Scrips/Objects.html b/share/html/Admin/Scrips/Objects.html
index 0acf21a31..2b020e9d6 100644
--- a/share/html/Admin/Scrips/Objects.html
+++ b/share/html/Admin/Scrips/Objects.html
@@ -50,70 +50,78 @@
 <& /Elements/ListActions &>
 
 <form action="Objects.html" method="post" name="AddRemoveScrip">
-<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{} %>" />
 
 % if ( $global ) {
-<h2><&|/l&>Applies to all objects</&></h2>
-<label>
-<input type="checkbox" name="RemoveScrip-<% $id %>" value="0" />
-<&|/l&>check this box to remove this scrip from all objects and be able to choose specific objects.</&>
-</label>
-
-<& /Admin/Elements/SelectStageForAdded,
-    Default => $Stage || $global->Stage,
-    Label   => loc("Select global scrip stage:")
-    &>
+  <h2><&|/l&>Applies to all objects</&></h2>
+  <div class="form-row">
+    <div class="col-md-12">
+      <div class="custom-control custom-checkbox">
+        <input type="checkbox" class="custom-control-input checkbox" name="RemoveScrip-<% $id %>" id="<% $id %>" value="0" />
+        <label class="custom-control-label" for="<% $id %>"><&|/l&>check this box to remove this scrip from all objects and be able to choose specific objects.</&></label>
+      </div>
+    </div>
+  </div>
+
+  <& /Admin/Elements/SelectStageForAdded,
+      Default => $Stage || $global->Stage,
+      Label   => loc("Select global scrip stage:")
+      &>
 % } else {
-<h2><&|/l&>Apply globally</&></h2>
-
-<label>
-<input type="checkbox" name="AddScrip-<% $id %>" value="0" />
-<&|/l&>check this box to apply this scrip to all objects.</&>
-</label>
-
-<h2><&|/l&>Selected objects</&></h2>
-<& /Elements/CollectionList,
-    OrderBy => ['SortOrder','Name'],
-    Order   => ['ASC', 'ASC'],
-    %ARGS,
-    Collection => $added,
-    Rows => 0,
-    Page => 1,
-    Format        => $format,
-    DisplayFormat => "'__CheckBox.{RemoveScrip-$id}__','__ScripStage.{$id}__',". $format,
-    AllowSorting => 0,
-    ShowEmpty    => 0,
-    PassArguments => [
-        qw(id Stage Format Rows Page Order OrderBy),
-    ],
-&>
-
-<h2><&|/l&>Unselected objects</&></h2>
-<& /Elements/CollectionList,
-    OrderBy => ['SortOrder','Name'],
-    Order   => ['ASC', 'ASC'],
-    %ARGS,
-    Collection    => $not_added,
-    Rows          => $rows,
-    Format        => $format,
-    DisplayFormat => "'__CheckBox.{AddScrip-". $id ."}__',". $format,
-    AllowSorting  => 1,
-    ShowEmpty     => 0,
-    PassArguments => [
-        qw(id Stage Format Rows Page Order OrderBy),
-    ],
-&>
-
-<& /Admin/Elements/SelectStageForAdded, Default => $Stage &>
-<div style="text-align:right">
-<% loc('You can change template if needed') %>:
-<& Elements/SelectTemplate, Scrip => $scrip, Default => $Template &>
-</div>
+  <h2><&|/l&>Apply globally</&></h2>
+
+  <div class="form-row">
+    <div class="col-md-12">
+      <div class="custom-control custom-checkbox">
+        <input type="checkbox" class="custom-control-input checkbox" name="AddScrip-<% $id %>" id="<% $id %>" value="0" />
+        <label class="custom-control-label" for="<% $id %>"><&|/l&>check this box to apply this scrip to all objects.</&></label>
+      </div>
+    </div>
+  </div>
+
+  <h2><&|/l&>Selected objects</&></h2>
+  <& /Elements/CollectionList,
+      OrderBy => ['SortOrder','Name'],
+      Order   => ['ASC', 'ASC'],
+      %ARGS,
+      Collection => $added,
+      Rows => 0,
+      Page => 1,
+      Format        => $format,
+      DisplayFormat => "'__CheckBox.{RemoveScrip-$id}__','__ScripStage.{$id}__',". $format,
+      AllowSorting => 0,
+      ShowEmpty    => 0,
+      PassArguments => [
+          qw(id Stage Format Rows Page Order OrderBy),
+      ],
+  &>
+
+  <h2><&|/l&>Unselected objects</&></h2>
+  <& /Elements/CollectionList,
+      OrderBy => ['SortOrder','Name'],
+      Order   => ['ASC', 'ASC'],
+      %ARGS,
+      Collection    => $not_added,
+      Rows          => $rows,
+      Format        => $format,
+      DisplayFormat => "'__CheckBox.{AddScrip-". $id ."}__',". $format,
+      AllowSorting  => 1,
+      ShowEmpty     => 0,
+      PassArguments => [
+          qw(id Stage Format Rows Page Order OrderBy),
+      ],
+  &>
+
+  <& /Admin/Elements/SelectStageForAdded, Default => $Stage &>
+  <div style="text-align:right">
+    <% loc('You can change template if needed') %>:
+    <& Elements/SelectTemplate, Scrip => $scrip, Default => $Template &>
+  </div>
 
 % }
 
-<& /Elements/Submit, Name => 'Update' &>
+  <& /Elements/Submit, Name => 'Update' &>
 </form>
 
 <%ARGS>

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


More information about the rt-commit mailing list