Skip to content

Details added to existing operations #2558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jul 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 120 additions & 13 deletions templates/operations.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@ <h2>Operations</h2>
</form>

<template x-if="selectedOperation && selectedOperationID">
<div class="section p-0 pb-2">
<div>
<h3 x-text="selectedOperation.name"></h3>
</div>
<div class="section p-2 pb-2">
<div class="control-buttons is-flex is-flex-direction-row is-justify-content-space-between">
<div class="is-flex is-flex-direction-row">
<button title="download reports" class="button is-primary is-small mr-2"
x-on:click="openModal = 'showDownloadMenu'"><em class="pr-1 fas fa-arrow-down"></em>
Download
<div class="buttons">
<button class="button is-small" x-on:click="openModal='showOperationDetails'" title="view operation details">Operation Details</button>
<button title="download reports" class="button is-primary is-small" x-on:click="openModal = 'showDownloadMenu'">
<span class="icon">
<em class="fas fa-arrow-down"></em>
</span>
<span>Download</span>
</button>
<button type="button" title="delete operation"
class="button is-danger is-outlined is-small"
x-on:click="openModal = 'deleteOperationModal'"><em
class="pr-1 fas fa-trash"></em>
Delete
<button type="button" title="delete operation" class="button is-danger is-outlined is-small" x-on:click="openModal = 'deleteOperationModal'">
<span class="icon">
<em class="fas fa-trash"></em>
</span>
<span>Delete</span>
</button>
<div class="vr"></div>
<span>Current state: <span class="level-item tag is-medium m-0"><span
Expand Down Expand Up @@ -737,6 +737,113 @@ <h3 x-text="selectedOperation.name"></h3>
</div>
</template>

<template x-if="openModal === 'showOperationDetails'">
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">Operation Details</p>
</header>
<section class="modal-card-body">
<table>
<col width="35%">
<col width="65%">
<tbody>
<tr>
<td>
<label class="label">Operation Name</label>
</td>
<td>
<span x-text="selectedOperation.name"></span>
</td>
</tr>
<tr>
<td>
<label class="label">Adversary</label>
</td>
<td>
<span x-text="selectedOperation.adversary.name"></span>
</td>
</tr>
<tr>
<td>
<label class="label">Fact Source</label>
</td>
<td>
<span x-text="selectedOperation.source.name"></span>
</td>
</tr>
<tr>
<td>
<label class="label">Group</label>
</td>
<td>
<span x-text="(selectedOperation.group ? selectedOperation.group : 'all')"></span>
</td>
</tr>
<tr>
<td>
<label class="label">Planner</label>
</td>
<td>
<span x-text="selectedOperation.planner.name"></span>
</td>
</tr>
<tr>
<td>
<label class="label">Obfuscator</label>
</td>
<td>
<span x-text="selectedOperation.obfuscator"></span>
</td>
</tr>
<tr>
<td>
<label class="label">Autonomous</label>
</td>
<td>
<span x-text="(selectedOperation.autonomous === 0 ? 'manual' : 'autonomous')"></span>
</td>
</tr>
<tr>
<td>
<label class="label">Parser</label>
</td>
<td>
<span x-text="selectedOperation.use_learning_parsers"></span>
</td>
</tr>
<tr>
<td>
<label class="label">Auto Close</label>
</td>
<td>
<span x-text="selectedOperation.auto_close"></span>
</td>
</tr>
<tr>
<td>
<label class="label">Jitter</label>
</td>
<td>
<span x-text="selectedOperation.jitter"></span>
</td>
</tr>
</tbody>

</table>
</section>
<footer class="modal-card-foot">
<nav class="level">
<div class="level-left"></div>
<div class="level-right">
<div class="level-item">
<button class="button is-small" @click="openModal = null">Close</button>
</div>
</div>
</nav>
</footer>
</div>
</template>

<template x-if="openModal === 'addLink'">
<div class="modal-card wide" x-init="getAbilities()">
<header class="modal-card-head">
Expand Down