Commit 7f4fc7cb authored by gezzzan's avatar gezzzan

[FIX] Blog listing: missing navigation button, add view action for so that...

[FIX] Blog listing: missing navigation button, add view action for so that action column is not empty for anonymus. Blog post listing: use icon set
parent a71f5692
{* $Id$ *}
{title help="Blogs" admpage="blogs"}{tr}Blogs{/tr}{/title}
{if $tiki_p_create_blogs eq 'y'}
{if $tiki_p_create_blogs eq 'y' or $tiki_p_blog_admin eq 'y'}
<div class="navbar">
{button href="tiki-edit_blog.php" _text="{tr}Create Blog{/tr}" _class="navbar-btn"}
{if $tiki_p_read_blog eq 'y' and $tiki_p_blog_admin eq 'y'}
{button href="tiki-list_posts.php" class="btn btn-default" _text="{tr}List Blog Posts{/tr}"}
{/if}
</div>
{/if}
......@@ -45,7 +48,7 @@
<th><a href="tiki-list_blogs.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'activity_desc'}activity_asc{else}activity_desc{/if}">{tr}Activity{/tr}</a></th>
{/if}
{assign var=numbercol value=$numbercol+1}
<th>{tr}Action{/tr}</th>
<th>{tr}Actions{/tr}</th>
</tr>
{section name=changes loop=$listpages}
<tr>
......@@ -93,6 +96,9 @@
<td class="integer"><span class="badge">{$listpages[changes].activity}</span></td>
{/if}
<td class="action">
{if ($tiki_p_admin eq 'y') or ($listpages[changes].individual eq 'n') or ($listpages[changes].individual_tiki_p_read_blog eq 'y' )}
<a class="tips" href="{$listpages[changes].blogId|sefurl:blog}" title=":{tr}View{/tr}">{icon name="view"}</a>
{/if}
{if ($user and $listpages[changes].user eq $user) or ($tiki_p_blog_admin eq 'y')}
{if ($tiki_p_admin eq 'y') or ($listpages[changes].individual eq 'n') or ($listpages[changes].individual_tiki_p_blog_create_blog eq 'y' )}
<a class="tips" href="tiki-edit_blog.php?blogId={$listpages[changes].blogId}" title=":{tr}Edit{/tr}">{icon name="edit"}</a>
......
{* $Id$ *}
{title help="Blogs"}{if isset($blogTitle)}{tr _0=$blogTitle}Blog: %0{/tr}{else}{tr}Blog{/tr}{/if}{/title}
{title help="Blogs"}{if isset($blogTitle)}{tr _0=$blogTitle}Blog: %0{/tr}{else}{tr}Blog Posts{/tr}{/if}{/title}
<div class="t_navbar form-group">
{button href="tiki-edit_blog.php" class="btn btn-default" _text="{tr}Create Blog{/tr}"}
......@@ -13,7 +13,7 @@
{/if}
{if $posts and $tiki_p_blog_admin eq 'y'}
<form name="checkboxes_on" method="post" action="tiki-list_posts.php">
<form name="checkboxes_on" method="post" action="tiki-list_posts.php" role="form" class="form">
{query _type='form_input'}
{/if}
<div class="table-responsive">
......@@ -56,8 +56,8 @@
<td class="integer">&nbsp;{$posts[changes].size}&nbsp;</td>
<td>&nbsp;{$posts[changes].user}&nbsp;</td>
<td class="action">
<a class="link" href="tiki-blog_post.php?blogId={$posts[changes].blogId}&postId={$posts[changes].postId}">{icon _id='page_edit'}</a>
<a class="link" href="tiki-list_posts.php?{if isset($blogId)}blogId={$blogId}&amp;{/if}offset={$offset}&amp;sort_mode={$sort_mode}&amp;remove={$posts[changes].postId}">{icon _id='cross' alt="{tr}Remove{/tr}"}</a>
<a class="tips" href="tiki-blog_post.php?blogId={$posts[changes].blogId}&postId={$posts[changes].postId}" title=":{tr}Edit{/tr}">{icon name="edit"}</a>
<a class="tips" href="tiki-list_posts.php?{if isset($blogId)}blogId={$blogId}&amp;{/if}offset={$offset}&amp;sort_mode={$sort_mode}&amp;remove={$posts[changes].postId}" title=":{tr}Delete{/tr}">{icon name="delete"}</a>
</td>
</tr>
{sectionelse}
......@@ -67,10 +67,17 @@
</div>
{if $posts and $tiki_p_blog_admin eq 'y'}
<div class="formcolor">
{tr}Perform action with checked:{/tr}
{icon _id='cross' _tag='input_image' name='remove' value='y' alt="{tr}Delete{/tr}"}
</div>
<div class="form-group">
<label for="remove" class="control-label">{tr}Perform action with selected{/tr}</label>
<div class="input-group col-sm-4">
<select name="remove" class="form-control">
<option value="y">{tr}Delete{/tr}</option>
</select>
<div class="input-group-btn">
<input type="submit" class="btn btn-default" name="remove" value="{tr}Ok{/tr}">
</div>
</div>
</div>
</form>
{/if}
......
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