2013-08-09 16:58:57 -04:00
|
|
|
<div class="staff-action-logs-controls">
|
2014-09-30 12:36:23 -04:00
|
|
|
<a {{action "clearAllFilters"}} {{bind-attr class=":clear-filters :filter filtersExists::invisible"}}>
|
2014-12-08 16:35:49 -05:00
|
|
|
<span class="label">{{i18n 'admin.logs.staff_actions.clear_filters'}}</span>
|
2013-08-09 16:58:57 -04:00
|
|
|
</a>
|
|
|
|
{{#if actionFilter}}
|
2014-09-30 12:36:23 -04:00
|
|
|
<a {{action "clearFilter" "action_name"}} class="filter">
|
2014-12-08 16:35:49 -05:00
|
|
|
<span class="label">{{i18n 'admin.logs.action'}}</span>: {{actionFilter}}
|
2013-12-09 16:27:49 -05:00
|
|
|
<i class="fa fa-times-circle"></i>
|
2013-08-09 16:58:57 -04:00
|
|
|
</a>
|
|
|
|
{{/if}}
|
2013-09-10 21:21:16 -04:00
|
|
|
{{#if filters.acting_user}}
|
2014-09-30 12:36:23 -04:00
|
|
|
<a {{action "clearFilter" "acting_user"}} class="filter">
|
2014-12-08 16:35:49 -05:00
|
|
|
<span class="label">{{i18n 'admin.logs.staff_actions.staff_user'}}</span>: {{filters.acting_user}}
|
2013-12-09 16:27:49 -05:00
|
|
|
<i class="fa fa-times-circle"></i>
|
2013-08-09 16:58:57 -04:00
|
|
|
</a>
|
|
|
|
{{/if}}
|
|
|
|
{{#if filters.target_user}}
|
2014-09-30 12:36:23 -04:00
|
|
|
<a {{action "clearFilter" "target_user"}} class="filter">
|
2014-12-08 16:35:49 -05:00
|
|
|
<span class="label">{{i18n 'admin.logs.staff_actions.target_user'}}</span>: {{filters.target_user}}
|
2013-12-09 16:27:49 -05:00
|
|
|
<i class="fa fa-times-circle"></i>
|
2013-08-09 16:58:57 -04:00
|
|
|
</a>
|
|
|
|
{{/if}}
|
2013-08-20 13:50:51 -04:00
|
|
|
{{#if filters.subject}}
|
2014-09-30 12:36:23 -04:00
|
|
|
<a {{action "clearFilter" "subject"}} class="filter">
|
2014-12-08 16:35:49 -05:00
|
|
|
<span class="label">{{i18n 'admin.logs.staff_actions.subject'}}</span>: {{filters.subject}}
|
2013-12-09 16:27:49 -05:00
|
|
|
<i class="fa fa-times-circle"></i>
|
2013-08-20 13:50:51 -04:00
|
|
|
</a>
|
|
|
|
{{/if}}
|
2013-08-09 16:58:57 -04:00
|
|
|
</div>
|
2013-08-09 10:06:02 -04:00
|
|
|
|
2014-12-06 23:15:22 -05:00
|
|
|
<div class="pull-right">
|
|
|
|
<button class="btn" {{action "exportStaffActionLogs"}} title="{{i18n 'admin.export_csv.button_title.staff_action'}}">{{fa-icon "download"}}{{i18n 'admin.export_csv.button_text'}}</button>
|
|
|
|
</div>
|
|
|
|
</br>
|
|
|
|
|
2014-01-14 12:48:57 -05:00
|
|
|
<div class="staff-action-logs-instructions" {{bind-attr class=":staff-action-logs-instructions showInstructions::invisible"}}>
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.logs.staff_actions.instructions'}}
|
2013-10-31 12:17:06 -04:00
|
|
|
</div>
|
|
|
|
|
2013-08-09 10:06:02 -04:00
|
|
|
<div class='table staff-actions'>
|
|
|
|
<div class="heading-container">
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class="col heading first staff_user">{{i18n 'admin.logs.staff_actions.staff_user'}}</div>
|
|
|
|
<div class="col heading action">{{i18n 'admin.logs.action'}}</div>
|
|
|
|
<div class="col heading subject">{{i18n 'admin.logs.staff_actions.subject'}}</div>
|
|
|
|
<div class="col heading created_at">{{i18n 'admin.logs.staff_actions.when'}}</div>
|
|
|
|
<div class="col heading details">{{i18n 'admin.logs.staff_actions.details'}}</div>
|
|
|
|
<div class="col heading context">{{i18n 'admin.logs.staff_actions.context'}}</div>
|
2013-08-09 10:06:02 -04:00
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
|
2014-11-12 15:10:36 -05:00
|
|
|
{{#loading-spinner condition=loading}}
|
2013-08-09 10:06:02 -04:00
|
|
|
{{#if model.length}}
|
2014-09-11 16:30:47 -04:00
|
|
|
{{view "staff-action-logs-list" content=controller}}
|
2013-08-09 10:06:02 -04:00
|
|
|
{{else}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'search.no_results'}}
|
2013-08-09 10:06:02 -04:00
|
|
|
{{/if}}
|
2014-11-12 15:10:36 -05:00
|
|
|
{{/loading-spinner}}
|
2013-08-09 10:06:02 -04:00
|
|
|
</div>
|