Skip to content

Commit

Permalink
#237 show file information in alert preview using new format
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jun 23, 2017
1 parent a8d3cc5 commit b9b0e56
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ui/app/views/partials/alert/event.dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,11 @@ <h4 class="vpad10 text-primary">
<td class="wrap" ng-if="attribute.dataType !== 'file'">
{{attribute.data | fang | ellipsis:250}}
</td>
<td class="wrap" ng-if="attribute.dataType === 'file'">
{{(attribute.data.filename || attribute.data.split(';')[0]) | fang | ellipsis:250}}
<td class="wrap" ng-if="attribute.dataType === 'file' && attribute.attachment">
{{attribute.attachment.name}} ({{attribute.attachment.size}} bytes)
</td>
<td class="wrap" ng-if="attribute.dataType === 'file' && attribute.remoteAttachment">
{{attribute.remoteAttachment.filename}}
</td>
</tr>
</tbody>
Expand Down Expand Up @@ -133,15 +136,15 @@ <h4 class="vpad10 text-primary">
<label class="col-sm-4 control-label">Import alert as</label>
<div class="col-sm-8 input-group">
<!-- <input type="text" class="form-control" placeholder="Search for..."> -->
<select class="form-control" ng-model="dialog.event.caseTemplate" ng-options="template for template in dialog.templates" required>
<select class="form-control" ng-model="dialog.event.caseTemplate" ng-options="template for template in dialog.templates">
<option value="">Empty case</option>
</select>
<!-- <select class="form-control">
<option value="MISP">MISP</option>
</select> -->
<span class="input-group-btn">
<button class="btn btn-primary" type="submit" ng-disabled="eventForm.$invalid || dialog.loading">Yes, Import</button>
<button class="btn btn-primary" type="submit" ng-disabled="dialog.loading">Yes, Import</button>
</span>
</div>

Expand Down

0 comments on commit b9b0e56

Please sign in to comment.