Skip to content
Permalink
Browse files

MDL-55414 theme_noname: Update preferences page to template

Part of MDL-55071
  • Loading branch information...
damyon authored and danpoltawski committed Jul 28, 2016
1 parent 3f0544b commit ac4a389eb85b168dc59100c3ec58e94990a66e1c
@@ -25,13 +25,8 @@
use block_contents;
use stdClass;
use moodle_url;
<<<<<<< HEAD
||||||| parent of 6c769ad9e6... MDL-XXXX theme_noname: action-menu conversion
use preferences_groups;
=======
use preferences_groups;
use action_menu;
>>>>>>> 6c769ad9e6... MDL-XXXX theme_noname: action-menu conversion
defined('MOODLE_INTERNAL') || die;
@@ -269,16 +264,6 @@ public function render_preferences_groups(preferences_groups $renderable) {
return $this->render_from_template('core/preferences_groups', $renderable);
}
/**
* Renders preferences groups.
*
* @param preferences_groups $renderable The renderable
* @return string The output.
*/
public function render_preferences_groups(preferences_groups $renderable) {
return $this->render_from_template('core/preferences_groups', $renderable);
}
/**
* Renders an action menu component.
*
@@ -288,4 +273,5 @@ public function render_preferences_groups(preferences_groups $renderable) {
public function render_action_menu(action_menu $menu) {
return $this->render_from_template('core/action_menu', $menu);
}
}
@@ -227,12 +227,3 @@
}
}
}

/** Preferences page */
.preferences-group {
ul {
list-style: none;
margin-left: 0;
margin-right: 0;
}
}
@@ -0,0 +1,18 @@
<div class="container-fluid">
<div class="row">
{{#groups}}
<div class="col-md-4">
<div class="card">
<div class="card-block">
<h4 class="card-title">{{title}}</h4>
<div class="card-text">
{{#nodes}}
<div><a {{#get_title}}title="{{get_title}}"{{/get_title}} href="{{{action}}}">{{get_content}}</a></div>
{{/nodes}}
</div>
</div>
</div>
</div>
{{/groups}}
</div>
</div>

0 comments on commit ac4a389

Please sign in to comment.
You can’t perform that action at this time.