Commit b3b0e9d2 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1508300: Adding notice to PDF block config"

parents 5baa9b69 51fa305e
......@@ -13,3 +13,4 @@ defined('INTERNAL') || die();
$string['title'] = 'PDF';
$string['description'] = 'A single PDF file from your files area';
$string['pdfwarning'] = 'Note: Displaying large PDF files can be browser resource intensive.';
......@@ -107,6 +107,11 @@ class PluginBlocktypePdf extends MaharaCoreBlocktype {
'legend' => get_string('file', 'artefact.file'),
'class' => 'last select-file with-formgroup',
'elements' => array(
'pdfwarning' => array(
'type' => 'html',
'value' => get_string('pdfwarning', 'blocktype.file/pdf'),
'class' => 'alert alert-info',
),
'artefactid' => $filebrowser
)
),
......
......@@ -89,6 +89,9 @@
position: relative;
padding: 20px 0;
border-bottom: 1px solid $list-group-border;
&.alert {
padding: 5px 10px;
}
&:last-child,
&.last {
border-bottom: 0;
......
......@@ -89,6 +89,9 @@
position: relative;
padding: 20px 0;
border-bottom: 1px solid $list-group-border;
&.alert {
padding: 5px 10px;
}
&:last-child,
&.last {
border-bottom: 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment