MDL-64506 templates: Remove BS2 spans from elements.
authorMathew May <mathewm@hotmail.co.nz>
Thu, 7 Mar 2019 01:40:47 +0000 (09:40 +0800)
committerMathew May <mathewm@hotmail.co.nz>
Wed, 3 Apr 2019 11:34:20 +0000 (19:34 +0800)
15 files changed:
admin/tool/dataprivacy/templates/component_status.mustache
admin/tool/dataprivacy/templates/contact_dpo.mustache
admin/tool/dataprivacy/templates/data_registry.mustache
admin/tool/dataprivacy/templates/defaults_display.mustache
admin/tool/langimport/templates/langimport.mustache
admin/tool/lp/templates/manage_competencies_page.mustache
blocks/myoverview/templates/placeholders.mustache
blocks/myoverview/templates/view-list.mustache
course/classes/management_renderer.php
course/templates/activityinstance.mustache
course/templates/defaultactivitycompletion.mustache
group/templates/index.mustache
lib/outputrenderers.php
message/templates/notification_preferences_component.mustache
message/templates/notification_preferences_component_notification.mustache

index e55a30b..9a1c6ad 100644 (file)
@@ -75,7 +75,7 @@
                 <hr />
                 <div class="p-l-3">
                     <dl class="row">
-                        <dt class="span3 col-xs-3">
+                        <dt class="col-xs-3">
                             {{#link}}
                                 <a href="#{{name}}"><strong style="word-wrap:break-word">{{name}}</strong></a>
                             {{/link}}
                             {{/link}}
                             <div class="small text-muted" style="word-wrap:break-word">{{type}}</div>
                         </dt>
-                        <dd class="span9 col-xs-9">{{summary}}</dd>
+                        <dd class="col-xs-9">{{summary}}</dd>
                     </dl>
                     <dl>
                         {{#fields}}
                         <div class="row">
-                            <dt class="span3 col-xs-3 font-weight-normal" style="word-wrap:break-word">{{field_name}}</dt>
-                            <dd class="span9 col-xs-9">{{field_summary}}</dd>
+                            <dt class="col-xs-3 font-weight-normal" style="word-wrap:break-word">{{field_name}}</dt>
+                            <dd class="col-xs-9">{{field_summary}}</dd>
                         </div>
                         {{/fields}}
                     </dl>
                 <hr />
                 <div class="p-l-3">
                     <div class="row">
-                        <div class="span12 col-xs-12">
+                        <div class="col-xs-12">
                             {{nullprovider}}
                         </div>
                     </div>
index fa84f14..f0738ea 100644 (file)
 }}
 <div class="container">
     <div class="row m-b-2">
-        <label class="col-md-3 span3 col-form-label">{{#str}}replyto, tool_dataprivacy{{/str}}</label>
-        <div class="col-md-9 span9 col-form-label">{{replytoemail}}</div>
+        <label class="col-md-3 col-form-label">{{#str}}replyto, tool_dataprivacy{{/str}}</label>
+        <div class="col-md-9 col-form-label">{{replytoemail}}</div>
     </div>
     <div class="row" data-region="messageinput">
-        <label for="message" class="col-md-3 span3 col-form-label">
+        <label for="message" class="col-md-3 col-form-label">
             {{#str}}message, tool_dataprivacy{{/str}}
             <span class="pull-xs-right text-nowrap">
             <abbr class="initialism text-danger" title="{{#str}}required{{/str}}">{{#pix}}req, core, {{#str}}required{{/str}}{{/pix}}</abbr>
index fb86ae9..077792a 100644 (file)
 
     <div class="container-fluid m-t-2">
         <div class="row">
-            <div class="span3 col-md-4 p-l-0 nav-pills context-tree">
+            <div class="col-md-4 p-l-0 nav-pills context-tree">
                 {{#tree}}
                     {{> tool_dataprivacy/context_tree_node}}
                 {{/tree}}
             </div>
-            <div class="span9 col-md-8" id="context-form-container">
+            <div class="col-md-8" id="context-form-container">
             </div>
         </div>
     </div>
index 39a29aa..8a006d5 100644 (file)
@@ -60,7 +60,7 @@
             </div>
         </div>
     </div>
-    <div class="col-md-3 span3 align-self-center">
+    <div class="col-md-3 align-self-center">
     {{#canedit}}
         <button class="btn btn-default" {{!
             }}data-action="edit-level-defaults" {{!
index 25dc700..4f316da 100644 (file)
@@ -94,7 +94,7 @@
             {{/updateurl}}
         </div>
         {{#caninstall}}
-            <div class="col-md-6 span6 m-b-1">
+            <div class="col-md-6 m-b-1">
                 <form id="installform" action="{{installurl}}" method="post">
                     <fieldset>
                         <div class="form-group">
index 24b0218..c546b81 100644 (file)
@@ -47,7 +47,7 @@
 <div>{{{framework.description}}}</div>
     <h3>{{#str}}competencies, core_competency{{/str}}</h3>
     <div class="row-fluid row">
-        <div class="span6 col-lg-6">
+        <div class="col-lg-6">
             <p>
                 <form data-region="filtercompetencies" data-frameworkid="{{framework.id}}" class="form-inline">
                     <div class="form-group">
@@ -62,7 +62,7 @@
             </ul>
         </div>
 
-        <div class="span6 card col-lg-6">
+        <div class="card col-lg-6">
             <div class="card-block card-body">
                 <div class="card-title">
                     <h4 data-region="selected-competency">{{#str}}selectedcompetency, tool_lp{{/str}}</h4>
index 5bbe7ef..8410211 100644 (file)
     {{#list}}
     <ul class="list-group">
         <li class="list-group-item course-listitem">
-            <div class="col-md-6 span6 p-0 d-flex align-items-center">
+            <div class="col-md-6 p-0 d-flex align-items-center">
                 <div class="bg-pulse-grey rounded-circle mr-2" style="height: 1rem; width: 1rem;"></div>
                 <div class="bg-pulse-grey w-50" style="height: 1rem; margin: 0.5rem 0"></div>
             </div>
         </li>
         <li class="list-group-item course-listitem">
-            <div class="col-md-6 span6 p-0 d-flex align-items-center">
+            <div class="col-md-6 p-0 d-flex align-items-center">
                 <div class="bg-pulse-grey rounded-circle mr-2" style="height: 1rem; width: 1rem;"></div>
                 <div class="bg-pulse-grey w-50" style="height: 1rem; margin: 0.5rem 0"></div>
             </div>
         </li>
         <li class="list-group-item course-listitem">
-            <div class="col-md-6 span6 p-0 d-flex align-items-center">
+            <div class="col-md-6 p-0 d-flex align-items-center">
                 <div class="bg-pulse-grey rounded-circle mr-2" style="height: 1rem; width: 1rem;"></div>
                 <div class="bg-pulse-grey w-50" style="height: 1rem; margin: 0.5rem 0"></div>
             </div>
         </li>
         <li class="list-group-item course-listitem">
-            <div class="col-md-6 span6 p-0 d-flex align-items-center">
+            <div class="col-md-6 p-0 d-flex align-items-center">
                 <div class="bg-pulse-grey rounded-circle mr-2" style="height: 1rem; width: 1rem;"></div>
                 <div class="bg-pulse-grey w-50" style="height: 1rem; margin: 0.5rem 0"></div>
             </div>
index a39a9bb..5e588a3 100644 (file)
                 </a>
             </div>
             {{#hasprogress}}
-            <div class="col-md-5 span5 pt-1">
+            <div class="col-md-5 pt-1">
                 {{> block_myoverview/progress-bar}}
             </div>
             {{/hasprogress}}
-            <div class="col-md-1 span1 p-0 d-flex">
+            <div class="col-md-1 p-0 d-flex">
                 {{> block_myoverview/course-action-menu }}
             </div>
         </div>
index d2e7092..c0f25d0 100644 (file)
@@ -453,8 +453,8 @@ class core_course_management_renderer extends plugin_renderer_base {
             $form .= html_writer::end_div();
 
             $html .= html_writer::start_div('detail-pair row yui3-g m-y-1');
-            $html .= html_writer::div(html_writer::span(get_string('sorting')), 'pair-key span3 col-md-3 yui3-u-1-4');
-            $html .= html_writer::div($form, 'pair-value span9 col-md-9 yui3-u-3-4');
+            $html .= html_writer::div(html_writer::span(get_string('sorting')), 'pair-key col-md-3 yui3-u-1-4');
+            $html .= html_writer::div($form, 'pair-value col-md-9 yui3-u-3-4');
             $html .= html_writer::end_div();
         }
         if (core_course_category::can_change_parent_any()) {
index 1ed95a8..84169ae 100644 (file)
@@ -48,7 +48,7 @@
         </div>
     </div>
     <div class="activity-completionstatus col-xs-6 span6" id="completionstatus_{{cmid}}">
-        <div class="col-sm-1 span1  p-l-0">
+        <div class="col-sm-1  p-l-0">
             {{#completionstatus.icon}}
                 {{{completionstatus.icon}}}
             {{/completionstatus.icon}}
@@ -56,7 +56,7 @@
                 <span class="m-r-3"></span>
             {{/completionstatus.icon}}
         </div>
-        <div class="col-sm-11 span11  p-l-0">
+        <div class="col-sm-11  p-l-0">
             <span class="text-muted muted">{{{completionstatus.string}}}</span>
         </div>
     </div>
index 066370f..4cccedb 100644 (file)
@@ -68,7 +68,7 @@
                         <span>{{{formattedname}}}</span>
                     </div>
                     <div class="activity-completionstatus col-xs-6 span6">
-                        <div class="col-sm-1 span1 p-l-0">
+                        <div class="col-sm-1 p-l-0">
                             {{#completionstatus.icon}}
                                 {{{completionstatus.icon}}}
                             {{/completionstatus.icon}}
@@ -76,7 +76,7 @@
                                 <span class="m-r-3"></span>
                             {{/completionstatus.icon}}
                         </div>
-                        <div class="col-sm-11 span11 p-l-0">
+                        <div class="col-sm-11 p-l-0">
                             <span class="text-muted muted">{{{completionstatus.string}}}</span>
                         </div>
                     </div>
index e68bdaf..a86b15a 100644 (file)
@@ -78,7 +78,7 @@
 <form id="groupeditform" action="index.php" method="post">
     <div class="container-fluid groupmanagementtable">
         <div class="row row-fluid rtl-compatible">
-            <div class="col-md-6 span6 m-b-1">
+            <div class="col-md-6 m-b-1">
                 <input type="hidden" name="id" value="{{courseid}}">
                 <div class="form-group">
                     <label for="groups">
                     <input type="submit" name="act_showimportgroups" id="showimportgroups" value="{{#str}}importgroups, group{{/str}}" class="btn btn-default" />
                 </div>
             </div>
-            <div class="col-md-6 span6 m-b-1">
+            <div class="col-md-6 m-b-1">
                 <div class="form-group">
                     <label for="members">
                         <span id="memberslabel">{{#str}}membersofselectedgroup, group{{/str}}</span>
index ba27a7f..b70ba01 100644 (file)
@@ -4027,7 +4027,7 @@ EOD;
      */
     public function render_preferences_group(preferences_group $renderable) {
         $html = '';
-        $html .= html_writer::start_tag('div', array('class' => 'span4 preferences-group'));
+        $html .= html_writer::start_tag('div', array('class' => 'col-sm-4 preferences-group'));
         $html .= $this->heading($renderable->title, 3);
         $html .= html_writer::start_tag('ul');
         foreach ($renderable->nodes as $node) {
index 59f5295..3dfb5d1 100644 (file)
         <td class="align-bottom">
             <div class="container-fluid">
                 <div class="row-fluid">
-                    <div class="span6 col-xs-6">
+                    <div class="col-xs-6">
                         {{#str}} loggedin, message {{/str}}
                         {{#onlinehelphtml}}{{{.}}}{{/onlinehelphtml}}
                     </div>
-                    <div class="span6 col-xs-6">
+                    <div class="col-xs-6">
                         {{#str}} loggedoff, message {{/str}}
                         {{#offlinehelphtml}}{{{.}}}{{/offlinehelphtml}}
                     </div>
index 0f10767..77bcf27 100644 (file)
@@ -67,7 +67,7 @@
                 <form>
                     <div class="container-fluid">
                         <div class="row-fluid">
-                            <div class="span6 col-xs-6">
+                            <div class="col-xs-6">
                                 {{#loggedin}}
                                     {{< core/hover_tooltip }}
                                         {{$anchor}}
@@ -92,7 +92,7 @@
                                     {{/ core/hover_tooltip }}
                                 {{/loggedin}}
                             </div>
-                            <div class="span6 col-xs-6">
+                            <div class="col-xs-6">
                                 {{#loggedoff}}
                                     {{< core/hover_tooltip }}
                                         {{$anchor}}