Skip to content
Snippets Groups Projects

Add manual RAVEN alert in flask app

Files
3
@@ -253,6 +253,64 @@
</form>
</div>
</div>
<div class="card mb-3">
<div class=card-header>
Designate External Coincidence
</div>
<div class=card-body>
<form method=post action="{{ url_for('apply_raven_labels') }}">
<div class=form-row>
<div class=form-group>
<div class=form-text>Apply RAVEN alert labels. These will launch a public alert if none have been issued for the superevent.</div>
</div>
</div>
<div class="form-row">
<div class=form-group>
<p class="text-danger">Warning: this assumes a coincidence has been found, denoted by the presence of a EM_COINC label.</p>
</div>
</div>
<div class="form-row">
<div class="form-group col-md">
<label for=superevent_id>Superevent ID</label>
<input required name=superevent_id class="form-control typeahead">
</div>
<div class="form-group col-md">
<label for=ext_id>External event ID</label>
<input required name=ext_id class="form-control typeahead">
</div>
<div class="form-group col-md">
<label for=event_id>Preferred event ID</label>
<input required name=event_id class="form-control typeahead" data-typeahead-url-template="{{ url_for('typeahead_event_id', superevent_id='SUPEREVENT_ID') }}">
</div>
<div class="form-group col-md">
<label for=submit-button class=w-100>&nbsp;</label>
<button type=submit id=submit-button name=submit-button class="btn btn-primary">Submit</button>
</div>
</div>
<div class="modal fade" tabindex=-1 role=dialog aria-labelledby=apply_raven_labels>
<div class=modal-dialog role=document>
<div class=modal-content>
<div class=modal-header>
<h5 class=modal-title id=apply_raven_labels>
Really apply RAVEN alert label?
</h5>
<button type=button class=close data-dismiss=modal aria-label=Close>
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class=modal-body>
Are you sure that you want to apply RAVEN alert label?
</div>
<div class=modal-footer>
<button type=button class="btn btn-secondary" data-dismiss=modal>Cancel</button>
<button type=submit class="btn btn-danger">Submit</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
<div class="card mb-3">
<div class=card-header>
Issue Mock Event
Loading