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 { ...@@ -292,6 +292,7 @@ class BlockInstance {
$movecontrols[] = array( $movecontrols[] = array(
'column' => $this->get('column') - 1, 'column' => $this->get('column') - 1,
'order' => $this->get('order'), 'order' => $this->get('order'),
'title' => get_string('moveblockleft', 'view'),
'arrow' => '←', 'arrow' => '←',
'dir' => 'left', 'dir' => 'left',
); );
...@@ -299,7 +300,8 @@ class BlockInstance { ...@@ -299,7 +300,8 @@ class BlockInstance {
if ($this->get('canmovedown')) { if ($this->get('canmovedown')) {
$movecontrols[] = array( $movecontrols[] = array(
'column' => $this->get('column'), 'column' => $this->get('column'),
'order' => $this->get('order') +1, 'order' => $this->get('order') + 1,
'title' => get_string('moveblockdown', 'view'),
'arrow' => '↓', 'arrow' => '↓',
'dir' => 'down', 'dir' => 'down',
); );
...@@ -307,7 +309,8 @@ class BlockInstance { ...@@ -307,7 +309,8 @@ class BlockInstance {
if ($this->get('canmoveup')) { if ($this->get('canmoveup')) {
$movecontrols[] = array( $movecontrols[] = array(
'column' => $this->get('column'), 'column' => $this->get('column'),
'order' => $this->get('order') -1, 'order' => $this->get('order') - 1,
'title' => get_string('moveblockup', 'view'),
'arrow' => '↑', 'arrow' => '↑',
'dir' => 'up', 'dir' => 'up',
); );
...@@ -316,6 +319,7 @@ class BlockInstance { ...@@ -316,6 +319,7 @@ class BlockInstance {
$movecontrols[] = array( $movecontrols[] = array(
'column' => $this->get('column') + 1, 'column' => $this->get('column') + 1,
'order' => $this->get('order'), 'order' => $this->get('order'),
'title' => get_string('moveblockright', 'view'),
'arrow' => '→', 'arrow' => '→',
'dir' => 'right', 'dir' => 'right',
); );
......
...@@ -81,8 +81,16 @@ $string['confirmdeleteblockinstance'] = 'Are you sure you wish to delete this bl ...@@ -81,8 +81,16 @@ $string['confirmdeleteblockinstance'] = 'Are you sure you wish to delete this bl
$string['blockinstanceconfiguredsuccessfully'] = 'Block configured successfully'; $string['blockinstanceconfiguredsuccessfully'] = 'Block configured successfully';
$string['addnewblockhere'] = 'Add new block here'; $string['addnewblockhere'] = 'Add new block here';
$string['addcolumn'] = 'Add'; $string['add'] = 'Add';
$string['removecolumn'] = 'Remove'; $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['viewlayout'] = 'View layout';
$string['viewlayoutdescription'] = 'You can change the widths of the columns in your view.'; $string['viewlayoutdescription'] = 'You can change the widths of the columns in your view.';
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
<div class="blockinstance-controls"> <div class="blockinstance-controls">
{foreach from=$movecontrols item=item} {foreach from=$movecontrols item=item}
{assign var=direction value=$item.dir} {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} {/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} {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"> <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>
<div class="blockinstance-content"> <div class="blockinstance-content">
{$content} {$content}
......
...@@ -2,19 +2,19 @@ ...@@ -2,19 +2,19 @@
<div class="column-header"> <div class="column-header">
{if $column == 1} {if $column == 1}
<div class="add-column-left"> <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> </div>
{/if} {/if}
<div class="remove-column"> <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> </div>
{if $column == $numcolumns} {if $column == $numcolumns}
<div class="add-column-right"> <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> </div>
{else} {else}
<div class="add-column-center"> <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> </div>
{/if} {/if}
</div> </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