Commit ecc9c55d authored by Nigel McNie's avatar Nigel McNie
Browse files

Added title attributes to all the buttons for more hints on what they do

parent 2f032d3b
......@@ -292,6 +292,7 @@ class BlockInstance {
$movecontrols[] = array(
'column' => $this->get('column') - 1,
'order' => $this->get('order'),
'title' => get_string('moveblockleft', 'view'),
'arrow' => '←',
'dir' => 'left',
);
......@@ -299,7 +300,8 @@ class BlockInstance {
if ($this->get('canmovedown')) {
$movecontrols[] = array(
'column' => $this->get('column'),
'order' => $this->get('order') +1,
'order' => $this->get('order') + 1,
'title' => get_string('moveblockdown', 'view'),
'arrow' => '↓',
'dir' => 'down',
);
......@@ -307,7 +309,8 @@ class BlockInstance {
if ($this->get('canmoveup')) {
$movecontrols[] = array(
'column' => $this->get('column'),
'order' => $this->get('order') -1,
'order' => $this->get('order') - 1,
'title' => get_string('moveblockup', 'view'),
'arrow' => '↑',
'dir' => 'up',
);
......@@ -316,6 +319,7 @@ class BlockInstance {
$movecontrols[] = array(
'column' => $this->get('column') + 1,
'order' => $this->get('order'),
'title' => get_string('moveblockright', 'view'),
'arrow' => '→',
'dir' => 'right',
);
......
......@@ -81,8 +81,16 @@ $string['confirmdeleteblockinstance'] = 'Are you sure you wish to delete this bl
$string['blockinstanceconfiguredsuccessfully'] = 'Block configured successfully';
$string['addnewblockhere'] = 'Add new block here';
$string['addcolumn'] = 'Add';
$string['removecolumn'] = 'Remove';
$string['add'] = 'Add';
$string['addcolumn'] = 'Add Column';
$string['remove'] = 'Remove';
$string['removecolumn'] = 'Remove this column';
$string['moveblockleft'] = 'Move this block left';
$string['moveblockdown'] = 'Move this block down';
$string['moveblockup'] = 'Move this block up';
$string['moveblockright'] = 'Move this block right';
$string['configureblock'] = 'Configure this block';
$string['removeblock'] = 'Remove this block';
$string['viewlayout'] = 'View layout';
$string['viewlayoutdescription'] = 'You can change the widths of the columns in your view.';
......
......@@ -5,10 +5,10 @@
<div class="blockinstance-controls">
{foreach from=$movecontrols item=item}
{assign var=direction value=$item.dir}
<input type="image" src="{theme_path location=images/move-block-$direction.png}" class="submit movebutton" name="action_moveblockinstance_id_{$id}_column_{$item.column}_order_{$item.order}" alt="{$item.arrow}">
<input type="image" src="{theme_path location=images/move-block-$direction.png}" class="submit movebutton" name="action_moveblockinstance_id_{$id}_column_{$item.column}_order_{$item.order}" alt="{$item.arrow}" title="{$item.title}">
{/foreach}
{if $configurable} <input type="image" src="{theme_path location=images/configure-block.png}" class="submit configurebutton" name="action_configureblockinstance_id_{$id}" alt="&bull;">{/if}
<input type="image" src="{theme_path location=images/remove-block.png}" class="submit deletebutton" name="action_removeblockinstance_id_{$id}" alt="X">
{if $configurable} <input type="image" src="{theme_path location=images/configure-block.png}" class="submit configurebutton" name="action_configureblockinstance_id_{$id}" alt="&bull;" title="{str tag='configureblock' section='view'}">{/if}
<input type="image" src="{theme_path location=images/remove-block.png}" class="submit deletebutton" name="action_removeblockinstance_id_{$id}" alt="X" title="{str tag='removeblock' section='view'}">
</div>
<div class="blockinstance-content">
{$content}
......
......@@ -2,19 +2,19 @@
<div class="column-header">
{if $column == 1}
<div class="add-column-left">
<input type="image" src="{theme_path location=images/btn_addcolumn_left.png}" class="submit addcolumn" name="action_addcolumn_before_1" alt="{str tag='addcolumn' section='view'}">
<input type="image" src="{theme_path location=images/btn_addcolumn_left.png}" class="submit addcolumn" name="action_addcolumn_before_1" alt="{str tag='add' section='view'}" title="{str tag='addcolumn' section='view'}">
</div>
{/if}
<div class="remove-column">
<input type="image" src="{theme_path location=images/btn_removecolumn.png}" class="submit removecolumn" name="action_removecolumn_column_{$column}" alt="{str tag='removecolumn' section='view'}">
<input type="image" src="{theme_path location=images/btn_removecolumn.png}" class="submit removecolumn" name="action_removecolumn_column_{$column}" alt="{str tag='remove' section='view'}" title="{str tag='removecolumn' section='view'}">
</div>
{if $column == $numcolumns}
<div class="add-column-right">
<input type="image" src="{theme_path location=images/btn_addcolumn_right.png}" class="submit addcolumn" name="action_addcolumn_before_{$column+1}" alt="{str tag='addcolumn' section='view'}">
<input type="image" src="{theme_path location=images/btn_addcolumn_right.png}" class="submit addcolumn" name="action_addcolumn_before_{$column+1}" alt="{str tag='add' section='view'}" title="{str tag='addcolumn' section='view'}">
</div>
{else}
<div class="add-column-center">
<input type="image" src="{theme_path location=images/btn_addcolumn_right.png}" class="submit addcolumn" name="action_addcolumn_before_{$column+1}" alt="{str tag='addcolumn' section='view'}">
<input type="image" src="{theme_path location=images/btn_addcolumn_right.png}" class="submit addcolumn" name="action_addcolumn_before_{$column+1}" alt="{str tag='add' section='view'}" title="{str tag='addcolumn' section='view'}">
</div>
{/if}
</div>
......
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