summaryrefslogtreecommitdiff
path: root/templates/action_logs.tpl
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-09-16 09:57:40 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-09-16 09:57:40 +0000
commit609250f088959af4f27865ba0bc948a99b668a8c (patch)
treecfecc3097690226d31ca83f46d4ff08bf6106877 /templates/action_logs.tpl
parent22f4d3346c2e82d401830ab61165d6a0305f976d (diff)
downloadliberty-609250f088959af4f27865ba0bc948a99b668a8c.tar.gz
liberty-609250f088959af4f27865ba0bc948a99b668a8c.tar.bz2
liberty-609250f088959af4f27865ba0bc948a99b668a8c.zip
add some basic action log admin screen - still needs some work
Diffstat (limited to 'templates/action_logs.tpl')
-rw-r--r--templates/action_logs.tpl60
1 files changed, 60 insertions, 0 deletions
diff --git a/templates/action_logs.tpl b/templates/action_logs.tpl
new file mode 100644
index 0000000..0d0535e
--- /dev/null
+++ b/templates/action_logs.tpl
@@ -0,0 +1,60 @@
+{strip}
+{formfeedback hash=$feedback}
+{form}
+ {legend legend="Liberty Action Logs"}
+ {foreach from=$logSettings key=item item=output}
+ <div class="row">
+ {formlabel label=`$output.label` for=$item}
+ {forminput}
+ {if $output.type == 'input'}
+ <input type='text' name="{$item}" id="{$item}" value="{$gBitSystem->getConfig($item)}" />
+ {else}
+ {html_checkboxes name="$item" values="y" checked=$gBitSystem->getConfig($item) labels=false id=$item}
+ {/if}
+ {formhelp note=`$output.note` page=`$output.page`}
+ {/forminput}
+ </div>
+ {/foreach}
+
+ <div class="row submit">
+ <input type="submit" name="apply_settings" value="{tr}Apply Settings{/tr}" />
+ </div>
+ {/legend}
+{/form}
+
+<h1>Need to add some filtering options here</h1>
+
+{minifind}
+
+<table class="data">
+ <caption>{tr}Action Logs{/tr}</caption>
+ <tr>
+ <th>{smartlink ititle="ID" isort=content_id page=$listInfo.page}</th>
+ <th>{smartlink ititle="Title" isort=title page=$listInfo.page}</th>
+ <th>{smartlink ititle="Log Entry" isort=action_log page=$listInfo.page}</th>
+ <th>{smartlink ititle="Content Type" isort=content_dscription page=$listInfo.page}</th>
+ <th>{smartlink ititle="Log time" isort=last_modified page=$listInfo.page idefault=1}</th>
+ <th>{smartlink ititle="Modified by" isort=user_id page=$listInfo.page} [{smartlink ititle="IP" isort=ip page=$listInfo.page}]</th>
+ <th>{tr}Actions{/tr}</th>
+ </tr>
+ {foreach from=$actionLogs item=log}
+ <tr class="{cycle values="odd,even"}">
+ <td>{if $log.content_id}<a href="{$smarty.const.BIT_ROOT_URL}index.php?content_id={$log.content_id}">{$log.content_id}{/if}</a></td>
+ <td>{$log.title}</td>
+ <td>
+ {$log.log_message|nl2br}
+ {$log.error_message|nl2br}
+ </td>
+ <td>{$log.content_description}</td>
+ <td>{$log.last_modified|bit_short_datetime}</td>
+ <td>{$log.display_name} [{$log.ip}]</td>
+ <td class="actionicon">
+ <a href="">{biticon ipackage=icons iname=edit-delete iexplain="Remove Entry"}</a>
+ </td>
+ </tr>
+ {/foreach}
+</table>
+
+{pagination}
+
+{/strip}