Merge branch 'master' into autocomplete

This commit is contained in:
Tom Price
2015-05-19 15:58:22 +01:00
14 changed files with 46 additions and 17583 deletions

View File

@@ -78,7 +78,7 @@ body .fc { /* extra precedence to overcome jqui */
font-size: 1em; font-size: 1em;
text-align: center; text-align: center;
overflow: hidden; overflow: hidden;
font-family: "Courier New", Courier, monospace; font-family: "Open Sans", sans-serif;
} }
/* /*

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -25,7 +25,7 @@ function refreshUpdateHref(obj) {
// console.log('Trying to disable'); // console.log('Trying to disable');
targetObject.attr('disabled', true); targetObject.attr('disabled', true);
} else { } else {
// targetObject.attr('href', update_url); targetObject.attr('href', update_url);
targetObject.attr('disabled', false); targetObject.attr('disabled', false);
} }
} }

View File

@@ -43,7 +43,7 @@ $link-hover-color: darken($link-color, 15%) !default;
// //
//## Font, line-height, and color for body text, headings, and more. //## Font, line-height, and color for body text, headings, and more.
$font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif !default; $font-family-sans-serif: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !default;
$font-family-serif: Georgia, "Times New Roman", Times, serif !default; $font-family-serif: Georgia, "Times New Roman", Times, serif !default;
//** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`. //** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
$font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace !default; $font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace !default;

View File

@@ -52,3 +52,14 @@ textarea {
.item-description { .item-description {
margin-left: 1em; margin-left: 1em;
} }
.overflow-ellipsis {
text-overflow: ellipsis;
display: inline-block;
max-width: 100%;
overflow: hidden;
}
.modal-dialog {
z-index: inherit; // bug fix introduced in 52682ce
}

View File

@@ -1,13 +1,15 @@
{% extends request.is_ajax|yesno:"base_ajax.html,base.html" %} {% extends request.is_ajax|yesno:"base_ajax.html,base.html" %}
{% block title %}Event {% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %}{{ object.pk }} {% block title %}{% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %}{{ object.pk }}{% endif %} | {{object.name}}{% endblock %}
{% endif %}{% endblock %}
{% block content %} {% block content %}
<div class="row"> <div class="row">
{% if not request.is_ajax %} {% if not request.is_ajax %}
<div class="col-sm-12"> <div class="col-sm-12">
<div class="col-sm-8"> <div class="col-sm-8">
<h1>Event {% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %}{{ object.pk }}{% endif %}</h1> <h1>
{% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %}{{ object.pk }}{% endif %}
| {{ object.name }}
</h1>
</div> </div>
</div> </div>
<div class="col-sm-12 text-right"> <div class="col-sm-12 text-right">
@@ -53,7 +55,7 @@
<dt>Email</dt> <dt>Email</dt>
<dd> <dd>
<a href="mailto:{{object.person.email}}" target="_blank"> <a href="mailto:{{object.person.email}}" target="_blank">
{{ object.person.email }} <span class="overflow-ellipsis">{{ object.person.email }}</span>
</a> </a>
</dd> </dd>
@@ -93,7 +95,7 @@
{% endif %} {% endif %}
<div class="col-sm-12 {% if event.is_rig %}col-md-6 col-lg-7{% endif %}"> <div class="col-sm-12 {% if event.is_rig %}col-md-6 col-lg-7{% endif %}">
<div class="panel panel-info"> <div class="panel panel-info">
<div class="panel-heading">{{ object.name }}</div> <div class="panel-heading">Event Info</div>
<div class="panel-body"> <div class="panel-body">
<dl class="dl-horizontal"> <dl class="dl-horizontal">
<dt>Event Venue</dt> <dt>Event Venue</dt>

View File

@@ -424,6 +424,13 @@
{% include "RIGS/item_table.html" %} {% include "RIGS/item_table.html" %}
</div> </div>
</div> </div>
<div class="col-sm-12 text-right">
<div class="btn-group btn-page">
<button type="submit" class="btn btn-default" title="Save"><span
class="glyphicon glyphicon-floppy-disk"></span>
</button>
</div>
</div>
</div> </div>
</form> </form>

View File

@@ -13,6 +13,9 @@
{% endif %} {% endif %}
<h3>There are currently {{ rig_count }} rigs coming up.</h3> <h3>There are currently {{ rig_count }} rigs coming up.</h3>
<a class="btn btn-default" href="{% url 'rigboard' %}">View Rigboard</a> <a class="btn btn-default" href="{% url 'rigboard' %}">View Rigboard</a>
<a class="btn btn-default" href="{% url 'event_create' %}">
New Event <span class="glyphicon glyphicon-plus"></span>
</a>
</div> </div>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">

View File

@@ -11,7 +11,7 @@
<div class="col-sm-4 text-right"> <div class="col-sm-4 text-right">
<a href="{% url 'invoice_void' object.pk %}" class="btn btn-default" title="Void Invoice"> <a href="{% url 'invoice_void' object.pk %}" class="btn btn-default" title="Void Invoice">
<span class="glyphicon glyphicon-text-background"></span> <span class="glyphicon glyphicon-ban-circle"></span>
</a> </a>
</div> </div>
</div> </div>

View File

@@ -34,10 +34,10 @@
<dd>{{object.email}}</dd> <dd>{{object.email}}</dd>
<dt>Last Login</dt> <dt>Last Login</dt>
<dd>{{object.last_login}}</dd> <dd>{{object.last_login|date:"d/m/Y H:i"}}</dd>
<dt>Date Joined</dt> <dt>Date Joined</dt>
<dd>{{object.date_joined}}</dd> <dd>{{object.date_joined|date:"d/m/Y H:i"}}</dd>
<dt>Initials</dt> <dt>Initials</dt>
<dd>{{object.initials}}</dd> <dd>{{object.initials}}</dd>

Binary file not shown.

View File

@@ -11,6 +11,11 @@
<meta name="viewport" content="initial-scale=1"> <meta name="viewport" content="initial-scale=1">
<link rel="icon" type="image/png" href="/static/imgs/pyrigs-avatar.png">
<link rel="apple-touch-icon" href="/static/imgs/pyrigs-avatar.png">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,700,300,400' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="{% static "css/screen.css" %}"> <link rel="stylesheet" type="text/css" href="{% static "css/screen.css" %}">
{% block css %} {% block css %}
{% endblock %} {% endblock %}
@@ -44,6 +49,7 @@
<li><a href="{% url 'rigboard' %}">Rigboard</a></li> <li><a href="{% url 'rigboard' %}">Rigboard</a></li>
<li><a href="{% url 'event_archive' %}">Archive</a></li> <li><a href="{% url 'event_archive' %}">Archive</a></li>
<li><a href="{% url 'web_calendar' %}">Calendar</a></li> <li><a href="{% url 'web_calendar' %}">Calendar</a></li>
<li><a href="{% url 'event_create' %}">New</a></li>
</ul> </ul>
</li> </li>
{% if perms.RIGS.view_invoice %} {% if perms.RIGS.view_invoice %}
@@ -135,7 +141,7 @@
</div> </div>
</div> </div>
<div class="modal fade" id="modal"></div> <div class="modal fade" id="modal" role="dialog" tabindex=-1></div>
<script> <script>
Date.prototype.getISOString = function () { Date.prototype.getISOString = function () {