Skip to content
Snippets Groups Projects
Commit 4e57421c authored by Fan Zhang's avatar Fan Zhang
Browse files

Updated event detail from Fan.

parent 1c89bde7
No related branches found
No related tags found
No related merge requests found
......@@ -633,252 +633,6 @@
{% include "gracedb/neighbors_frag.html" %}
</p>
<!-- Single Inspiral Data -->
<div id="bulletin_board" data-dojo-type="dijit/TitlePane"
data-dojo-props="title: 'EM Follow-up Bulletin Board, Fan', open: false">
<script>
require(["dojo/dom-construct", "dojo/dom", "dojo/on", "dojo/domReady!"],
function(domConstruct, dom, on){
on(dom.byId("button2"), "click", function(){
var subm = document.getElementById('submitter').value;
var faci = document.getElementById('facility').value;
var filt = document.getElementById('filter').value;
var rahh = document.getElementById('ra1').value;
var ramm = document.getElementById('ra2').value;
var rass = document.getElementById('ra3').value;
var decl = document.getElementById('dec').value;
var tsta = document.getElementById('ts').value;
var tend = document.getElementById('te').value;
var lima = document.getElementById('lm').value;
var comm = document.getElementById('cm').value;
var tgla = document.getElementById('tgla').value;
var tgln = document.getElementById('tgln').value;
var tela = document.getElementById('tela').value;
var teln = document.getElementById('teln').value;
var row = domConstruct.toDom("<tr><td>" + "" +
"</td><td>" + subm +
"</td><td>" + faci +
"</td><td>" + filt +
"</td><td>" + rahh + "hh" + ramm + "mm" + rass + "ss" +
"</td><td>" + decl +
"</td><td>" + tsta +
"</td><td>" + tend +
"</td><td>" + lima +
"</td><td>" + comm +
"</td><td>" + tgla +
"</td><td>" + tgln +
"</td><td>" + tela +
"</td><td>" + teln +
"</td></tr>");
domConstruct.place(row, "bb_log");
});
});
</script>
<div data-dojo-type="dijit/form/Form" id="myForm"
data-dojo-id="myForm" encType="multipart/form-data" action=""
method="">
<script>
require(["dojo/parser", "dijit/form/Form", "dijit/form/Button", "dijit/form/ValidationTextBox", "dijit/form/DateTextBox"]);
</script>
<script type="dojo/on" data-dojo-event="reset">
return confirm('Press OK to reset widget values');
</script>
<script type="dojo/on" data-dojo-event="submit">
if(this.validate()){
return confirm('Form is valid, press OK to submit');
}else{
alert('Form contains invalid data. Please correct first');
return false;
}
return true;
</script>
Make a Bulletin Board Entry Here
<table id="subcontent" width="430" BORDER="1">
<tr>
<td width="150"><label for="submitter">Submitter:</label>
</td>
<td width="250"><input type="text" id="submitter"
name="submitter" size="45"
data-dojo-type="dijit/form/ValidationTextBox" /></td>
</tr>
<tr>
<td><label for="facility">Facility:</label>
</td>
<td><input type="text" id="facility" name="facility"
size="45" data-dojo-type="dijit/form/ValidationTextBox" />
</td>
</tr>
<tr>
<td><label for="filter">Filter Name:</label>
</td>
<td><input type="text" id="filter" name="filter" size="45"
data-dojo-type="dijit/form/ValidationTextBox" />
</td>
</tr>
<tr>
<td><label for="ra">RA (Right Ascention):</label></td>
<td><input type="number" id="ra1" name="ra1" value="00" style="width: 3em;" min="0"
max="23" data-dojo-type="dijit/form/ValidationTextBox" required="true"
data-dojo-props="regExp:'\\d{2}', invalidMessage:'Two digit number only.'" />
<label for="ra1">hh</label>
<input type="number" id="ra2" name="ra2" value="00" style="width: 3em;" min="0"
max="59" data-dojo-type="dijit/form/ValidationTextBox" required="true"
data-dojo-props="regExp:'\\d{2}', invalidMessage:'Two digit number only.'" />
<label for="ra2">mm</label>
<input type="number" id="ra3" name="ra3" value="00" style="width: 3em;" min="0"
max="59" data-dojo-type="dijit/form/ValidationTextBox" required="true"
data-dojo-props="regExp:'\\d{2}', invalidMessage:'Two digit number only.'" />
<label for="ra3">ss</label>
</td>
</tr>
<tr>
<td width="150"><label for="ra">Dec (Declination):</label>
</td>
<td><input type="text" ID="dec" name="dec" size="45" required="true"
data-dojo-type="dijit/form/ValidationTextBox" />
</td>
</tr>
<tr>
<td width="150"><label for="ra">Time Start:</label>
</td>
<td><input type="TIME" ID="ts" name="ts" size="45"
data-dojo-type="dijit/form/ValidationTextBox" />
</td>
</tr>
<tr>
<td width="150"><label for="ra">Time End:</label>
</td>
<td><input type="TIME" ID="te" name="te" size="45"
data-dojo-type="dijit/form/ValidationTextBox" />
</td>
</tr>
<tr>
<td width="150"><label for="ra">Limiting Mag:</label>
</td>
<td><input type="text" ID="lm" name="lm" size="45"
data-dojo-type="dijit/form/ValidationTextBox" />
</td>
</tr>
<tr>
<td width="150"><label for="ra">Comments:</label>
</td>
<td><input type="text" ID="cm" name="cm" size="45"
data-dojo-type="dijit/form/ValidationTextBox" />
</td>
</tr>
<tr>
<td width="150"><label for="ra">Target Galactic Lat:</label>
</td>
<td><input type="text" ID="tgla" name="tgla" size="45"
data-dojo-type="dijit/form/ValidationTextBox" />
</td>
</tr>
<tr>
<td width="150"><label for="ra">Target Galactic Lon:</label>
</td>
<td><input type="text" ID="tgln" name="tgln" size="45"
data-dojo-type="dijit/form/ValidationTextBox" />
</td>
</tr>
<tr>
<td width="150"><label for="ra">Target Ecliptic Lat:</label>
</td>
<td><input type="text" ID="tela" name="tela" size="45"
data-dojo-type="dijit/form/ValidationTextBox" />
</td>
</tr>
<tr>
<td width="200"><label for="ra">Target Ecliptic Lon:</label>
</td>
<td><input type="text" ID="teln" name="teln" size="45"
data-dojo-type="dijit/form/ValidationTextBox" />
</td>
</tr>
</table>
<!-- <button data-dojo-type="dijit/form/Button" type="button" id="button2">Get Values from form!</button>
why data-dojo-type doesn't work here?-->
<button id="button2" type="button">Add a row</button>
<button type="submit"
name="submitButton" value="Submit" >Submit</button>
<button type="reset">Reset</button>
</div>
<!-- Bulletin Board Log -->
<div data-dojo-type="dijit/TitlePane"
data-dojo-props="title: 'Bulletin Board Log', open: false">
<table id="bb_2" class="event" border="1">
<thead>
<tr>
<th>id</th>
<th>Submitter</th>
<th>Facility</th>
<th>Filter</th>
<th>RA</th>
<th>DEC</th>
<th>
<form>
<select onchange="changeTime(this, 'gps')"><option
value="gps" selected>GPS Time</option>
<option value="llo">LLO Local</option>
<option value="lho">LHO Local</option>
<option value="virgo">Virgo Local</option>
<option value="utc">UTC</option>
</select>
</form> Time Start</th>
<th>
<form>
<select onchange="changeTime(this, 'created')"><option
value="gps">GPS Time</option>
<option value="llo">LLO Local</option>
<option value="lho">LHO Local</option>
<option value="virgo">Virgo Local</option>
<option value="utc" selected>UTC</option>
</select>
</form> Time End</th>
<th>Limiting Mag</th>
<th>Comments</th>
<th>Target Galactic Lat</th>
<th>Target Galactic Lon</th>
<th>Target Ecliptic Lat</th>
<th>Target Ecliptic Lon</th>
</tr>
</thead>
<tbody id="bb_log" >
</tbody>
</table>
</div>
</div>
<!-- Single Inspiral Data -->
<div id="bulletin_board" data-dojo-type="dijit/TitlePane"
data-dojo-props="title: 'EM Follow-up Bulletin Board', open: false">
<script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment