Commit 41be8bcf authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Move publish button & change edit link to button to fix display


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 1586c49d
......@@ -743,6 +743,7 @@ class ArtefactTypeBlogPost extends ArtefactType {
),
'submit' => array(
'type' => 'submit',
'class' => 'publish',
'value' => get_string('publish', 'artefact.blog'),
),
),
......
......@@ -15,6 +15,7 @@
color: #ca0000;
}
#postlist input.publish,
#postlist input.edit {
color: #4C711D;
}
......
......@@ -2,14 +2,21 @@
<tr id="posttitle_{$post->id}">
<th class="posttitle">{$post->title}</th>
<th id="poststatus{$post->id}">
{if $post->published}{str tag=published section=artefact.blog}{else}{str tag=draft section=artefact.blog}{/if}
{if $post->published}
{str tag=published section=artefact.blog}
{else}
{str tag=draft section=artefact.blog}
{if !$post->locked && !$post->published}&nbsp;{$post->publish|safe}{/if}
{/if}
</th>
<th class="controls">
{if $post->locked}
{str tag=submittedforassessment section=view}
{else}
{if !$post->published}{$post->publish|safe}{/if}
<a class="btn-edit" href="{$WWWROOT}artefact/blog/post.php?id={$post->id}">{str tag=edit section=artefact.blog}</a>
<form name="edit_{$post->id}" action="{$WWWROOT}artefact/blog/post.php">
<input type="hidden" name="id" value="{$post->id}">
<input type="submit" class="edit submit" value="{str tag=edit section=artefact.blog}">
</form>
{$post->delete|safe}
{/if}
</th>
......
......@@ -40,6 +40,7 @@
cursor: pointer;
color: #333;
}
#postlist input.publish,
#postlist input.edit {
font-size: .9167em;
background: url(../images/icon-edit.gif) no-repeat left center;
......@@ -48,8 +49,8 @@
cursor: pointer;
color: #333;
}
#postlist th.controls form,
#postlist th.controls form div {
#postlist th form,
#postlist th form div {
display: inline;
}
#postlist p {
......
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