mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 14:11:10 +00:00
Big refactoring of registration
- Added datatable gem - Addaed datatable to events, users (#422), registrations
This commit is contained in:
parent
0f1051d24e
commit
d21e19b977
34 changed files with 435 additions and 12988 deletions
|
|
@ -12,7 +12,8 @@
|
|||
//
|
||||
//= require jquery
|
||||
//= require jquery_ujs
|
||||
//= require jquery.dataTables
|
||||
//= require dataTables/jquery.dataTables
|
||||
//= require dataTables/bootstrap/3/jquery.dataTables.bootstrap
|
||||
//= require cocoon
|
||||
//= require bootstrap
|
||||
//= require Chart
|
||||
|
|
@ -27,6 +28,7 @@
|
|||
//= require moment
|
||||
//= require bootstrap-datetimepicker
|
||||
//= require osem-datepickers
|
||||
//= require osem-datatables
|
||||
|
||||
$(document).ready(function() {
|
||||
$('a[disabled=disabled]').click(function(event){
|
||||
|
|
|
|||
12099
app/assets/javascripts/jquery.dataTables.js
vendored
12099
app/assets/javascripts/jquery.dataTables.js
vendored
File diff suppressed because it is too large
Load diff
11
app/assets/javascripts/osem-datatables.js
Normal file
11
app/assets/javascripts/osem-datatables.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$(function () {
|
||||
$(document).ready(function() {
|
||||
$('#registrations-datatable').dataTable();
|
||||
} );
|
||||
$(document).ready(function() {
|
||||
$('#users-datatable').dataTable();
|
||||
} );
|
||||
$(document).ready(function() {
|
||||
$('#events-datatable').dataTable();
|
||||
} );
|
||||
} );
|
||||
|
|
@ -1,4 +1,12 @@
|
|||
$(function () {
|
||||
$("#registration-arrival-datepicker").datetimepicker({
|
||||
pickTime: true,
|
||||
format: "YYYY-MM-DD hh:mm"
|
||||
});
|
||||
$("#registration-departure-datepicker").datetimepicker({
|
||||
pickTime: true,
|
||||
format: "YYYY-MM-DD hh:mm"
|
||||
});
|
||||
$("#conference-start-datepicker").datetimepicker({
|
||||
pickTime: false,
|
||||
format: "YYYY-MM-DD"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,17 @@
|
|||
$(function () {
|
||||
/**
|
||||
* Displays a modal with the questions of the registration.
|
||||
*/
|
||||
$(document).ready(function(){
|
||||
$(".question-btn").click(function(){
|
||||
var id = $(this).data('id');
|
||||
$("#question-modal-body").empty();
|
||||
$("#question-modal-body").html($(".question" + id).clone().show());
|
||||
$("#question-modal-header").text('Questions for ' + $(this).data('name'));
|
||||
$('#questions').modal('show');
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* Toggles email template help below email body textarea field.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue