Commit 0401ddc9 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1788296: Adjusting icons in Content section



Change the Plan icon from 'checkbox' to 'map' as signoff plugin makes more
sense to use the 'checkbox' icon in page editor

Also adding icons to the titles of the pages
in content/portfolio/group sections

behatnotneeded

Change-Id: I6b2ab5945dca1e6e26d5b1a9c23d59e39ee057ce
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 274bc533
......@@ -40,6 +40,7 @@ $prefsform = pieform(array(
));
$smarty = smarty();
setpageicon($smarty, 'icon-envelope-o');
$smarty->assign('pagedescription', get_string('prefsdescr', 'activity'));
$smarty->assign('form', $prefsform);
$dropdownmenu = get_config('dropdownmenu') && get_config('dropdownmenuenabled');
......
......@@ -346,6 +346,7 @@ EOF;
$request = get_record('usr_pendingdeletion', 'usr', $USER->id);
$smarty = smarty();
setpageicon($smarty, 'icon-cogs');
$smarty->assign('form', $prefsform);
$smarty->assign('candeleteself', $USER->can_delete_self());
$smarty->assign('deletionsent', !empty($request));
......
......@@ -230,6 +230,7 @@ function requestmembership_submit(Pieform $form, $values) {
}
$smarty = smarty();
setpageicon($smarty, 'icon-university');
$smarty->assign('memberform', $memberform);
$smarty->assign('requestedform', $requestedform);
$smarty->assign('invitedform', $invitedform);
......
......@@ -87,6 +87,7 @@ $form = pieform(array(
),
'submit' => array(
'type' => 'submitcancel',
'class' => 'btn btn-primary',
'value' => array(get_string('save', 'mahara'), get_string('cancel', 'mahara')),
'goto' => get_config('wwwroot') . 'admin/site/fonts.php',
),
......@@ -95,6 +96,7 @@ $form = pieform(array(
$smarty = smarty(array('tablerenderer'));
setpageicon($smarty, 'icon-text-width');
$smarty->assign('form', $form);
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('form.tpl');
......
......@@ -71,6 +71,7 @@ $form = pieform(array(
));
$smarty = smarty();
setpageicon($smarty, 'icon-text-width');
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->assign('form', $form);
$smarty->display('form.tpl');
......
......@@ -75,6 +75,7 @@ $form = pieform(array(
),
'submit' => array(
'type' => 'submitcancel',
'class' => 'btn btn-primary',
'value' => array(get_string('save', 'mahara'), get_string('cancel', 'mahara')),
'goto' => get_config('wwwroot') . 'admin/site/fonts.php',
),
......@@ -83,6 +84,7 @@ $form = pieform(array(
$smarty = smarty(array('tablerenderer'));
setpageicon($smarty, 'icon-text-width');
$smarty->assign('form', $form);
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('form.tpl');
......
......@@ -156,6 +156,7 @@ jQuery(function($) {
EOF;
$smarty = smarty(array('tablerenderer'));
setpageicon($smarty, 'icon-text-width');
$smarty->assign('form', $form);
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->assign('INLINEJAVASCRIPT', $inlinejs);
......
......@@ -56,6 +56,7 @@ $form = pieform(array(
$smarty = smarty(array('tablerenderer'));
setpageicon($smarty, 'icon-text-width');
$smarty->assign('form', $form);
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('form.tpl');
......
......@@ -161,6 +161,7 @@ EOF;
$js .= '});';
$smarty = smarty(array('paginator'), $css, array(), array());
setpageicon($smarty, 'icon-text-width');
$smarty->assign('INLINEJAVASCRIPT', $js);
$smarty->assign('query', $query);
$smarty->assign('sitefonts', $data->data);
......
......@@ -19,7 +19,7 @@ define('TITLE', get_string('share', 'view'));
$accesslists = View::get_accesslists(null, null, 'mahara');
$smarty = smarty();
setpageicon($smarty, 'icon-key');
setpageicon($smarty, 'icon-share-alt');
$smarty->assign('accesslists', $accesslists);
$smarty->display('view/share.tpl');
......@@ -40,6 +40,7 @@ $pagination = build_pagination(array(
));
$smarty = smarty();
setpageicon($smarty, 'icon-paint-brush');
$smarty->assign('skins', $data->data);
$smarty->assign('siteskins', true);
$smarty->assign('pagination', $pagination['html']);
......
......@@ -37,7 +37,7 @@ $smarty = smarty(
),
)
);
setpageicon($smarty, 'icon-file-image-o');
$smarty->assign('form', $form);
$smarty->assign('INLINEJAVASCRIPT', $js);
$smarty->display('artefact:file:files.tpl');
......@@ -332,6 +332,7 @@ $smarty = smarty(
),
)
);
setpageicon($smarty, 'icon-id-badge');
$smarty->assign('INLINEJAVASCRIPT', $IJS);
$smarty->assign('uploadform', $uploadform);
// This is a rare case where we don't actually care about the form, because
......
......@@ -510,7 +510,7 @@ $smarty = smarty(array(), array(), array(
'loseyourchanges',
),
));
setpageicon($smarty, 'icon-id-card-o');
$smarty->assign('profileform', $profileform);
$smarty->display('artefact:internal:index.tpl');
......
......@@ -201,6 +201,7 @@ jQuery(function($) {
});';
$smarty = smarty(array('paginator'));
setpageicon($smarty, 'icon-pencil-square-o');
$smarty->assign('PAGEHEADING', $pageheading);
$smarty->assign('INLINEJAVASCRIPT', $js);
$smarty->assign('data', $data);
......
......@@ -139,6 +139,7 @@ else {
}
$smarty = smarty();
setpageicon($smarty, 'icon-user');
$smarty->assign('navtabs', PluginArtefactInternal::submenu_items());
$smarty->assign('subheading', $subheading);
$smarty->assign('form', $form);
......
......@@ -39,6 +39,7 @@ jQuery(function () {
EOF;
$smarty = smarty(array('paginator'));
setpageicon($smarty, 'icon-plans');
$smarty->assign('plans', $plans);
$smarty->assign('strnoplansaddone',
get_string('noplansaddone', 'artefact.plans',
......
......@@ -35,6 +35,7 @@ $inlinejs = ArtefactTypeResumeComposite::get_js($compositetypes);
$compositeforms = ArtefactTypeResumeComposite::get_forms($compositetypes);
$smarty = smarty(array('tablerenderer'));
setpageicon($smarty, 'icon-star');
$smarty->assign('compositeforms', $compositeforms);
$smarty->assign('INLINEJAVASCRIPT', $inlinejs);
$smarty->assign('SUBPAGENAV', PluginArtefactResume::submenu_items());
......
......@@ -30,6 +30,7 @@ $inlinejs = ArtefactTypeResumeComposite::get_js($compositetypes);
$compositeforms = ArtefactTypeResumeComposite::get_forms($compositetypes);
$smarty = smarty(array('tablerenderer'));
setpageicon($smarty, 'icon-star');
$smarty->assign('compositeforms', $compositeforms);
$smarty->assign('INLINEJAVASCRIPT', $inlinejs);
$smarty->assign('SUBPAGENAV', PluginArtefactResume::submenu_items());
......
......@@ -40,6 +40,7 @@ jQuery(function($) {
});';
$smarty = smarty(array('tablerenderer'));
setpageicon($smarty, 'icon-star');
$smarty->assign('goals', $goals);
$smarty->assign('skills', $skills);
$smarty->assign('INLINEJAVASCRIPT', $js);
......
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