Skip to content
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

Fields notifications #58

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions anapneo/static/css/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,9 @@ img.neo-image {
height: 300px;
border-style: none;
}

.required{
color: red;
margin-right: 5px;

}
8 changes: 7 additions & 1 deletion anapneo/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@
<link href="/static/css/bootstrap-responsive.css" rel="stylesheet">
<link rel="stylesheet/less" type="text/css" href="/static/css/app.less" />
<link rel="shortcut icon" href="/static/img/favicon_32x32.ico">

{% block css %}{% endblock %}
<script src="/static/js/less-1.3.3.min.js" type="text/javascript"></script>

<script src="/static/jquery-ui-1.10.3/ui/jquery-ui.js"></script>
<script>
$(function() {
$( document ).tooltip();
});
</script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="../assets/js/html5shiv.js"></script>
Expand Down
35 changes: 17 additions & 18 deletions anapneo/templates/neo_edit_or_create.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="row">
<div class="span4">
<p>
<label for="id_observation_date">Observation Date:</label>
<label for="id_observation_date"><span class="required">*</span>Observation Date:</label>
<div class="input-append date datetimepicker">
<input data-format="dd/MM/yyyy hh:mm:ss"
type="text"
Expand All @@ -23,11 +23,10 @@
</div>
</p>
<p>
<label for="id_updated">Latest Observation:</label>
<label for="id_updated"><span class="required">*</span>Latest Observation:</label>
<div class="input-append date datetimepicker">
<input data-format="dd/MM/yyyy hh:mm:ss"
type="text"
id="id_updated"
type="text" id="id_updated"
name="updated">
<span class="add-on">
<i data-time-icon="icon-time" data-date-icon="icon-calendar">
Expand All @@ -36,37 +35,37 @@
</div>
</p>
<p>
<label for="id_num_obs">Number of Observations:</label>
<input id="id_num_obs" name="num_obs" type="text" value="" />
<label for="id_num_obs"><span class="required">*</span>Number of Observations:</label>
<input id="id_num_obs" name="num_obs" type="text" value="" title="A Small Description Here"/>
</p>
</div>
<div class="span4">
<p>
<label for="id_position_ra">R.A.</label>
<input id="id_position_ra" maxlength="100" name="position_ra" type="text" value="" />
<label for="id_position_ra"><span class="required">*</span>R.A.</label>
<input id="id_position_ra" maxlength="100" name="position_ra" type="text" value="" title="A Small Description Here"/>
</p>
<p>
<label for="id_position_dec">Declination:</label>
<input id="id_position_dec" maxlength="100" name="position_dec" type="text" value="" />
<label for="id_position_dec"><span class="required">*</span>Declination:</label>
<input id="id_position_dec" maxlength="100" name="position_dec" type="text" value="" title="A Small Description Here"/>
</p>
<p>
<label for="id_magnitude">Magnitude:</label>
<input id="id_magnitude" maxlength="100" name="magnitude" type="text" value="" />
<label for="id_magnitude"><span class="required">*</span>Magnitude:</label>
<input id="id_magnitude" maxlength="100" name="magnitude" type="text" value="" title="A Small Description Here"/>
</p>
<p>
<label for="id_arc">Arc:</label>
<input id="id_arc" name="arc" type="text" value="" />
<label for="id_arc"><span class="required">*</span>Arc:</label>
<input id="id_arc" name="arc" type="text" value="" title="A Small Description Here"/>
</p>
<p>
<label for="id_nominal_h">Nominal H:</label>
<input id="id_nominal_h" name="nominal_h" type="text" value="" />
<input id="id_nominal_h" name="nominal_h" type="text" value="" title="A Small Description Here"/>
</p>
<p>
<label for="id_score">
<label for="id_score"><span class="required">*</span>
Score (%) from <a href="http://www.minorplanetcenter.net/iau/NEO/PossNEO.html"
target="_blank">MPC</a>:
</label>
<input id="id_score" name="score" type="number" value="" />
<input id="id_score" name="score" type="number" value="" title="A Small Description Here"/>
</p>
</div>
<div class="span4">
Expand All @@ -75,7 +74,7 @@
<input id="id_image" name="image" type="file" />
</p>
<p>
<label for="id_note">Notes:</label>
<label for="id_note">Notes:</label> <!--form.note.help_text-->
<textarea cols="40" id="id_note" name="note" rows="15"></textarea>
</p>
</div>
Expand Down