-
Notifications
You must be signed in to change notification settings - Fork 151
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
6 changed files
with
192 additions
and
11 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
2 changes: 1 addition & 1 deletion
2
.../templates/promgen/vue/silence_modal.html → ...tes/promgen/vue/silence_create_modal.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{% load i18n %} | ||
{% load promgen %} | ||
<div id="silenceListModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="silenceModalLabel"> | ||
<div class="modal-dialog modal-lg" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" @click="state.show = false" aria-label="Close"><span aria-hidden="true">×</span></button> | ||
<h4 class="modal-title" id="silenceModalLabel">Silence</h4> | ||
</div> | ||
<div class="modal-body" style="padding:10px 30px;"> | ||
|
||
<div class="row mb-4"> | ||
<div class="col-md-12"> | ||
<div style="display: flex;align-items: center;"> | ||
<input type="text" placeholder="inpout filter matcher label" v-model="form.label" class="form-control"> | ||
<input type="text" placeholder="=~" style="max-width: 50px; text-align: center;" class="form-control ml-2 mr-2" disabled> | ||
<input type="text" placeholder="input filter matcher value" v-model="form.value" class="form-control"> | ||
<button type="button" class="btn btn-primary ml-2" @click="addFilterLabel">+</button> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="row mb-4"> | ||
<div class="col-md-12"> | ||
<div class="labels"> | ||
<ul class="list-inline promgen-labels-list"> | ||
<li v-for="item in state.labels" :key="`${item.label}-${item.value}`"> | ||
<div class="promgen-label-target"> | ||
<span>[[item.label]]=~[[item.value]]</span> | ||
<span @click="removeFilterLabel(item.label, item.value)" aria-hidden="true" class="promgen-label-close">×</span> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<table class="table table-bordered table-condensed table-responsive"> | ||
<thead> | ||
<tr> | ||
<th>Starts</th> | ||
<th>Ends</th> | ||
<th>Matchers</th> | ||
<th>Comment</th> | ||
<th>Created by</th> | ||
<th>Action</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
<template v-for="silence in filteredSilences" :key="silence.id"> | ||
<silence-row :silence="silence" label-color="info" @matcher-click="addFilterLabel" /> | ||
</template> | ||
</tbody> | ||
|
||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |