-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
239 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
example/src/AppBundle/Resources/views/Audit/associate.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div class="alert alert-success" role="alert"> | ||
<strong>{{ log.source.typLabel }}</strong> | ||
<a class="alert-link" href="#">{{ log.source.label }}</a> was associated with | ||
|
||
<strong>{{ log.target.typLabel }}</strong> | ||
<a class="alert-link" href="#">{{ log.target.label }}</a> | ||
{% if log.blame %} | ||
by <a class="alert-link" href="#">{{ log.blame.label }}</a> | ||
{% endif %} | ||
<span class="badge">{{ log.loggedAt|ago }}</span> | ||
</div> |
1 change: 1 addition & 0 deletions
1
example/src/AppBundle/Resources/views/Audit/association.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<a href="#">{{ val.label }}</a> |
11 changes: 11 additions & 0 deletions
11
example/src/AppBundle/Resources/views/Audit/dissociate.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div class="alert alert-danger" role="alert"> | ||
<strong>{{ log.source.typLabel }}</strong> | ||
<a class="alert-link" href="#">{{ log.source.label }}</a> was dissociated from | ||
|
||
<strong>{{ log.target.typLabel }}</strong> | ||
<a class="alert-link" href="#">{{ log.target.label }}</a> | ||
{% if log.blame %} | ||
by <a class="alert-link" href="#">{{ log.blame.label }}</a> | ||
{% endif %} | ||
<span class="badge">{{ log.loggedAt|ago }}</span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
example/src/AppBundle/Resources/views/Audit/insert.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<div class="alert alert-success" role="alert"> | ||
New <strong>{{ log.source.typLabel }}</strong> | ||
<a class="alert-link" href="#">{{ log.source.label }}</a> was inserted, | ||
{% if log.blame %} | ||
by <a class="alert-link" href="#">{{ log.blame.label }}</a>, | ||
{% endif %} | ||
show <a class="alert-link" data-toggle="modal" data-target="#audit-{{ log.id }}" href="#">details</a> | ||
<span class="badge">{{ log.loggedAt|ago }}</span> | ||
</div> | ||
|
||
<div class="modal fade" id="audit-{{ log.id }}" tabindex="-1" role="dialog" aria-labelledby="audit-label-{{ log.id }}"> | ||
<div class="modal-dialog" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | ||
<h4 class="modal-title" id="audit-label-{{ log.id }}">{{ log.source.label }}</h4> | ||
</div> | ||
<div class="modal-body"> | ||
<ul class="list-group"> | ||
{% for field, change in log.diff %} | ||
<li class="list-group-item"> | ||
<span class="badge">{{ audit_value(change.new) }}</span> | ||
{{ field }} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="alert alert-danger" role="alert"> | ||
<strong>{{ log.source.typLabel }}</strong> #{{ log.source.fk }} | ||
labeled as <strong>{{ log.source.label }}</strong> was removed | ||
{% if log.blame %} | ||
by <a class="alert-link" href="#">{{ log.blame.label }}</a> | ||
{% endif %} | ||
<span class="badge">{{ log.loggedAt|ago }}</span> | ||
</div> |
39 changes: 39 additions & 0 deletions
39
example/src/AppBundle/Resources/views/Audit/update.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<div class="alert alert-info" role="alert"> | ||
<strong>{{ log.source.typLabel }}</strong> | ||
<a class="alert-link" href="#">{{ log.source.label }}</a> was updated, | ||
{% if log.blame %} | ||
by <a class="alert-link" href="#">{{ log.blame.label }}</a>, | ||
{% endif %} | ||
show <a class="alert-link" data-toggle="modal" data-target="#audit-{{ log.id }}" href="#">details</a> | ||
<span class="badge">{{ log.loggedAt|ago }}</span> | ||
</div> | ||
|
||
<div class="modal fade" id="audit-{{ log.id }}" tabindex="-1" role="dialog" aria-labelledby="audit-label-{{ log.id }}"> | ||
<div class="modal-dialog" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | ||
<h4 class="modal-title" id="audit-label-{{ log.id }}">{{ log.source.label }}</h4> | ||
</div> | ||
<div class="modal-body"> | ||
<table class="table table-striped"> | ||
<tr> | ||
<th>Field</th> | ||
<th>Old</th> | ||
<th>New</th> | ||
</tr> | ||
{% for field, change in log.diff %} | ||
<tr> | ||
<td>{{ field }}</td> | ||
<td>{{ audit_value(change.old) }}</td> | ||
<td>{{ audit_value(change.new) }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.