Commit 04e9e682 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Minor changes to edit/delete icons


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 3b4ff90c
......@@ -87,15 +87,15 @@ function displaymenuitems(itemlist) {
// Creates one table row
function formatrow (item) {
// item has id, type, name, link, linkedto
var edit = INPUT({'type':'button','class':'icon btn-big-edit','value':{$getstring['edit']}});
connect(edit, 'onclick', function () { edititem(item); });
var del = INPUT({'type':'button','class':'icon btn-big-del','value':{$getstring['delete']}});
connect(del, 'onclick', function () { delitem(item.id); });
var edit = INPUT({'type':'image','src':config.theme['images/edit.gif'],'title':{$getstring['edit']}});
connect(edit, 'onclick', function (e) { e.stop(); edititem(item); });
var del = INPUT({'type':'image','src':config.theme['images/icon_close.gif'],'title':{$getstring['delete']}});
connect(del, 'onclick', function (e) { e.stop(); delitem(item.id); });
var cells = map(
partial(TD,null),
[
item.name,
[edit,del]
[edit,' ',del]
]
);
return TR({'id':'menuitem_'+item.id},cells);
......
......@@ -578,8 +578,9 @@ class ArtefactTypeComment extends ArtefactType {
'comment' => array('type' => 'hidden', 'value' => $id),
'submit' => array(
'type' => 'image',
'src' => $THEME->get_url('images/icon_close.gif'),
'src' => $THEME->get_url('images/icon_close.gif'),
'value' => get_string('delete'),
'elementtitle' => get_string('delete'),
'confirm' => get_string('reallydeletethiscomment', 'artefact.comment'),
),
),
......
......@@ -824,6 +824,7 @@ function themepaths() {
$paths = array(
'mahara' => array(
'images/icon_close.gif',
'images/edit.gif',
'images/failure.gif',
'images/loading.gif',
'images/success.gif',
......
......@@ -530,6 +530,12 @@ form#uploadcsv {
}
/* MANAGE INSTITUTIONS > INSTITUTIONS */
#adminstitutionslist .controls {
width: 3em;
}
#adminstitutionslist .controls form {
display: inline;
}
/* MANAGE INSTITUTIONS > INSTITUTION MEMBERS */
#usertypeselect table td,
......
......@@ -9,6 +9,10 @@
{/if}
<td class="center">{$group->visibility}</td>
<td class="center s"><a class="icon btn-manage" href="{$WWWROOT}admin/groups/manage.php?id={$group->id}">{str tag="groupmanage" section="admin"}</a></td>
<td class="center s"><a class="icon btn-big-del" href="{$WWWROOT}admin/groups/delete.php?id={$group->id}">{str tag="groupdelete" section="admin"}</a></td>
<td class="center">
<a title="{str tag="delete"}" href="{$WWWROOT}admin/groups/delete.php?id={$group->id}">
<img src="{theme_url filename="images/icon_close.gif"}" alt="[x]">
</a>
</td>
</tr>
{/foreach}
\ No newline at end of file
......@@ -11,12 +11,21 @@
<td class="center">{$institution->maxuseraccounts}</td>
<td class="center"><a href="{$WWWROOT}admin/users/institutionstaff.php?institution={$institution->name}">{$institution->staff}</a></td>
<td class="center"><a href="{$WWWROOT}admin/users/institutionadmins.php?institution={$institution->name}">{$institution->admins}</a></td>
<td class="right">
<td class="controls right">
<div class="left">
<form action="" method="post">
<input type="hidden" name="i" value="{$institution->name}">
{if $siteadmin && !$institution->members && $institution->name != 'mahara'}<input type="submit" class="btn-big-del icon s" name="delete" value="{str tag="delete"}">{/if}
<input type="submit" class="btn-big-edit icon s" name="edit" value="{str tag="edit"}">
<input type="hidden" name="edit" value=1>
<input type="image" name="edit" title="{str tag="edit"}" src="{theme_url filename="images/edit.gif"}">
</form>
{if $siteadmin && !$institution->members && $institution->name != 'mahara'}
<form action="" method="post">
<input type="hidden" name="i" value="{$institution->name}">
<input type="hidden" name="delete" value="1">
<input type="image" name="delete" title="{str tag="delete"}" src="{theme_url filename="images/icon_close.gif"}">
</form>
{/if}
</div>
</td>
<td class="center">{if $institution->suspended}<span class="suspended">{str tag="suspendedinstitution" section=admin}</span>{/if}</td>
</tr>
......
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