Skip to content

Commit

Permalink
#1766 Rearrange the list of TTPs
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Mar 17, 2021
1 parent e404ddb commit 58cfda3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
6 changes: 3 additions & 3 deletions frontend/app/styles/procedure.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.ttp-item {
margin-bottom: 10px;
margin-bottom: 6px;
border: 1px solid #f5f5f5;
}

Expand Down Expand Up @@ -30,7 +30,7 @@
background-color: #fcfcfc;
}
.ttp-item .ttp-header > div {
padding: 10px;
padding: 2px 10px;
vertical-align: middle;
}

Expand Down Expand Up @@ -76,7 +76,7 @@

.ttp-item-header > div {
font-weight: bold;
padding: 10px;
padding: 4px 10px;
}

.procedure-techniques-list {
Expand Down
20 changes: 13 additions & 7 deletions frontend/app/views/partials/case/case.procedures.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h4>
<i ng-show="$vm.filtering.context.sort.indexOf('-patternId') !== -1" class="fa fa-caret-down"></i>
</a>
</div>
<div class="ttp-user">Created By</div>
<!-- <div class="ttp-user">Created By</div> -->
<div class="ttp-date">
<a href class="text-default" ng-click="$vm.sortByField('occurDate')">
Occur Date
Expand Down Expand Up @@ -81,9 +81,9 @@ <h4>
</div>
</div>

<div class="ttp-user">
<!-- <div class="ttp-user">
<user user-id="proc._createdBy" icon-only="false" icon-size="m"></user>
</div>
</div> -->
<div class="ttp-date">
<a href ng-click="$vm.addFilterValue('occurDate', proc.occurDate)">
<span uib-tooltip="{{proc.occurDate | shortDate}}" tooltip-popup-delay="500" tooltip-placement="bottom">{{proc.occurDate | shortDate}}</span>
Expand All @@ -97,19 +97,25 @@ <h4>
</div>
<div class="ttp-body" ng-show="$vm.expanded[proc._id]">
<div class="row mb-xs">
<div class="col-sm-4">
<div class="col-sm-3">
<label>Created At</label>
<div>
<user-info value="proc._createdBy" field="organisation"></user-info>/<user-info value="proc._createdBy" field="name"></user-info>
</div>
</div>
<div class="col-sm-3">
<label>Created At</label>
<div>
<span uib-tooltip="{{proc._createdAt | shortDate}}" tooltip-popup-delay="500" tooltip-placement="bottom">{{proc._createdAt | shortDate}}</span>
</div>
</div>
<div class="col-sm-4">
<div class="col-sm-3">
<label>Updated At</label>
<div>
<span uib-tooltip="{{proc._updatedAt | shortDate}}" tooltip-popup-delay="500" tooltip-placement="bottom">{{proc._updatedAt | shortDate}}</span>
<span uib-tooltip="{{proc._updatedAt | shortDate}}" tooltip-popup-delay="500" tooltip-placement="bottom">{{(proc._updatedAt | shortDate) || '-'}}</span>
</div>
</div>
<div class="col-sm-4">
<div class="col-sm-3">
<label>Occured At</label>
<div>
<updatable-date on-update="$vm.updateField(proc, 'occurDate', true)" value="proc.occurDate" clearable="false"></updatable-date>
Expand Down

0 comments on commit 58cfda3

Please sign in to comment.