Skip to content

Commit

Permalink
fix #2046 and fix #3043 (#3047)
Browse files Browse the repository at this point in the history
  • Loading branch information
craigh authored Aug 27, 2016
1 parent f4564b6 commit fc3f702
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function viewAction(Request $request)
}

// sorting
$sort = $request->query->getAlpha('sort', 'date DESC');
$sort = $request->query->get('sort', 'date DESC');
$sort_exp = explode(' ', $sort);
$sortField = $sort_exp[0];
$sortDirection = isset($sort_exp[1]) ? $sort_exp[1] : 'ASC';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
{{ pageSetVar('title', __('Export IDS log')) }}
</h3>

<ul class="navbar navbar-default navbar-modulelinks">
<li class="active"><span class="fa fa-download"> {{ __('Export IDS Log') }}</span></li>
<li><a href="{{ path('zikulasecuritycentermodule_idslog_purge') }}" title="{{ __('Delete the entire log') }}" class="fa fa-trash-o"> {{ __('Purge IDS Log') }}</a></li>
</ul>
<div class="navbar navbar-default navbar-modulelinks">
<ul class="navbar-nav">
<li class="active"><span class="fa fa-download"> {{ __('Export IDS Log') }}</span></li>
<li><a href="{{ path('zikulasecuritycentermodule_idslog_purge') }}" title="{{ __('Delete the entire log') }}" class="fa fa-trash-o"> {{ __('Purge IDS Log') }}</a></li>
</ul>
</div>

{{ form_start(form) }}
{{ form_errors(form) }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
{{ pageSetVar('title', __('Purge IDS log')) }}
</h3>

<ul class="navbar navbar-default navbar-modulelinks">
<li><a href="{{ path('zikulasecuritycentermodule_idslog_export') }}" title="{{ __('Download the entire log to a csv file') }}" class="fa fa-arrow-circle-o-down"> {{ __('Export IDS Log') }}</a></li>
<li class="active"><span class="fa fa-trash-o"> {{ __('Purge IDS Log') }}</span></li>
</ul>
<div class="navbar navbar-default navbar-modulelinks">
<ul class="navbar-nav">
<li><a href="{{ path('zikulasecuritycentermodule_idslog_export') }}" title="{{ __('Download the entire log to a csv file') }}" class="fa fa-arrow-circle-o-down"> {{ __('Export IDS Log') }}</a></li>
<li class="active"><span class="fa fa-trash-o"> {{ __('Purge IDS Log') }}</span></li>
</ul>
</div>

<p class="alert alert-warning">{{ __('Do you really want to delete the entire IDS log?') }}</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
{{ pageSetVar('title', __('View IDS log')) }}
</h3>

<ul class="navbar navbar-default navbar-modulelinks">
<li><a href="{{ path('zikulasecuritycentermodule_idslog_export') }}" title="{{ __('Download the entire log to a CSV file.') }}" class="fa fa-arrow-circle-o-down"> {{ __('Export IDS Log') }}</a></li>
<li><a href="{{ path('zikulasecuritycentermodule_idslog_purge') }}" title="{{ __('Delete the entire log.') }}" class="fa fa-trash-o"> {{ __('Purge IDS Log') }}</a></li>
</ul>
<div class="navbar navbar-default navbar-modulelinks">
<ul class="navbar-nav">
<li><a href="{{ path('zikulasecuritycentermodule_idslog_export') }}" title="{{ __('Download the entire log to a CSV file.') }}" class="fa fa-arrow-circle-o-down"> {{ __('Export IDS Log') }}</a></li>
<li><a href="{{ path('zikulasecuritycentermodule_idslog_purge') }}" title="{{ __('Delete the entire log.') }}" class="fa fa-trash-o"> {{ __('Purge IDS Log') }}</a></li>
</ul>
</div>

{% if logEntries|length > 0 %}
{% form_theme filterForm with [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</fieldset>
{% set eventData = dispatchEvent(constant('Zikula\\UsersModule\\UserEvents::NEW_FORM')) %}
{% for data in eventData %}
{{ data }}
{{ data|raw }}
{% endfor %}
{{ notifyDisplayHooks(constant('Zikula\\UsersModule\\Container\\HookContainer::EDIT_FORM')) }}

Expand Down

0 comments on commit fc3f702

Please sign in to comment.