diff --git a/RIGS/templates/event_table.html b/RIGS/templates/event_table.html index 68f17805..29bbe295 100644 --- a/RIGS/templates/event_table.html +++ b/RIGS/templates/event_table.html @@ -1,65 +1,34 @@
- - - - - - + + + + + + + + + + {% for event in events %} + {% if event.cancelled %} + active text-muted + {% elif not event.is_rig %} + info + {% endif %}"> + + - + - + + + + + + {% endfor %}
#Event DateEvent DetailsEvent TimingsMIC
#Event DateEvent TimingsEvent DetailsStatusAuthorisationMIC
{{ event.pk }}
{{ event.start_date|date:"D d/m/Y" }}
{% if event.end_date and event.end_date != event.start_date %}
{{ event.end_date|date:"D d/m/Y" }}
{% endif %} - {{ event.get_status_display }} -
-

- - {{ event.name }} - - {% if event.venue %} - at {{ event.venue }} - {% endif %} - {% if event.dry_hire %} - Dry Hire - {% endif %} - {% if event.is_rig and perms.RIGS.view_event and event.authorised %} - - {% endif %} -

- {% if event.is_rig and not event.cancelled %} -
- {{ event.person.name }} - {% if event.organisation %} - for {{ event.organisation.name }} - {% endif %} -
- {% endif %} - {% if not event.cancelled and event.description %} -
- {{ event.description|linebreaksbr }} -
- {% endif %}
{% if not event.cancelled %}
@@ -84,9 +53,48 @@
{% endif %}
+ + +

+ + {{ event.name }} + + {% if event.venue %} + at {{ event.venue }} + {% endif %} + {% if event.dry_hire %} + Dry Hire + {% endif %} + +

+ {% if event.is_rig and not event.cancelled %} +
+ {{ event.person.name }} + {% if event.organisation %} + for {{ event.organisation.name }} + {% endif %} +
+ {% endif %} + {% if not event.cancelled and event.description %} +
+ {{ event.description|linebreaksbr }} +
+ {% endif %} +
+ {{ event.get_status_display }} + + {% if event.is_rig and perms.RIGS.view_event and event.authorised %} + + {% endif %} + {% if event.mic %} - {{ event.mic.initials }} + "{{ event.mic.initials }}"
{% if perms.RIGS.view_profile %} @@ -97,11 +105,11 @@ {% endif %}
{% elif event.is_rig %} - + {% endif %}
-
+ \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 88791a0e..db85bf3f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -7,20 +7,26 @@ var rename = require('gulp-rename'); var terser = require('gulp-terser'); var sass = require('gulp-sass'); var flatten = require('gulp-flatten'); -let cleanCSS = require('gulp-clean-css'); +var cleanCSS = require('gulp-clean-css'); +var autoprefixer = require('autoprefixer') +var postcss = require('gulp-postcss') +var sourcemaps = require('gulp-sourcemaps'); sass.compiler = require('node-sass'); gulp.task('sass', function () { return gulp.src('web_assets/scss/**/*.scss') + .pipe(sourcemaps.init()) .pipe(flatten()) .pipe(sass().on('error', sass.logError)) .pipe(cleanCSS({compatibility: 'ie8'})) + .pipe(postcss([ autoprefixer() ])) + .pipe(sourcemaps.write()) .pipe(gulp.dest('RIGS/static/css')); }); gulp.task('scripts', function() { - return gulp.src(['web_assets/js/**/*.js', 'node_modules/bootstrap/**/bootstrap.min.js', 'node_modules/popper\.js/**/popper.js', 'node_modules/moment/**/moment.js', 'node_modules/@fortawesome/fontawesome-free/js/all.js']) + return gulp.src(['web_assets/js/**/*.js', 'node_modules/bootstrap/**/bootstrap.min.js', 'node_modules/popper\.js/**/popper.js', 'node_modules/moment/moment.js', 'node_modules/@fortawesome/fontawesome-free/js/all.js', 'node_modules/jquery/dist/jquery.js']) .pipe(flatten()) .pipe(terser()) .pipe(gulp.dest('RIGS/static/js')); diff --git a/package.json b/package.json index 68b89ccb..cc76fe8a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "license": "MIT", "dependencies": { "@fortawesome/fontawesome-free": "^5.12.1", - "animation": "^0.1.3", + "autoprefixer": "^9.7.4", "bootstrap": "^4.4.1", "fullcalendar": "^3.10.1", "gulp-flatten": "^0.4.0", @@ -16,11 +16,14 @@ "transform": "^1.1.2" }, "devDependencies": { + "animate-sass": "^0.8.2", "gulp": "^4.0.2", "gulp-clean-css": "^4.2.0", "gulp-concat": "^2.6.1", + "gulp-postcss": "^8.0.0", "gulp-rename": "^2.0.0", "gulp-sass": "^4.0.2", + "gulp-sourcemaps": "^2.6.5", "gulp-terser": "^1.2.0", "node-sass": "^4.13.1" } diff --git a/templates/base.html b/templates/base.html index f254dce9..1c5ff670 100644 --- a/templates/base.html +++ b/templates/base.html @@ -21,8 +21,6 @@ {% block css %} {% endblock %} - - {% block preload_js %} @@ -87,9 +85,13 @@ + + + + - +
@@ -81,3 +68,18 @@ {% endblock %} +{% block js %} + +{% endblock %} diff --git a/web_assets/scss/_vars.scss b/web_assets/scss/_vars.scss new file mode 100644 index 00000000..4c59ad01 --- /dev/null +++ b/web_assets/scss/_vars.scss @@ -0,0 +1,2 @@ +$use-spinPulse: true; +$use-spinoffPulse: true; diff --git a/web_assets/scss/screen.scss b/web_assets/scss/screen.scss index 31d2ddfa..8e7470f3 100644 --- a/web_assets/scss/screen.scss +++ b/web_assets/scss/screen.scss @@ -1,5 +1,6 @@ @import "node_modules/bootstrap/scss/bootstrap"; -//@import "node_modules/animation/animation"; +@import "vars"; +@import "node_modules/animate-sass/animate"; //@import "node_modules/transform/transform"; body, .pad-top { @@ -95,7 +96,7 @@ ins { width: 50px; height: 50px; margin: 0 auto; - //@include animation(spinPulse 1s infinite ease-in-out); + //@include animated(spinPulse 1s infinite ease-in-out); } .circle1 { @@ -111,10 +112,10 @@ ins { margin: 0 auto; position: relative; top: -40px; - //@include animation(spinoffPulse 1s infinite linear); + //@include animated(spinoffPulse 1s infinite linear); } - /*@include keyframes(spinPulse) { + /*@include animate-keyframe(spinPulse) { 0% { @include rotate(160deg); opacity: 0; @@ -132,7 +133,7 @@ ins { }; } - @include keyframes(spinoffPulse) { + @include animate-keyframe(spinoffPulse) { 0% { @include rotate(0deg); }