mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 11:12:18 +01:00 
			
		
		
		
	Login is possible
This commit is contained in:
		
							
								
								
									
										121
									
								
								static/bootstrap_datepicker_plus/css/datepicker-widget.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										121
									
								
								static/bootstrap_datepicker_plus/css/datepicker-widget.css
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,121 @@
 | 
			
		||||
@font-face {
 | 
			
		||||
    font-family: 'Glyphicons Halflings';
 | 
			
		||||
    src: url('//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/fonts/glyphicons-halflings-regular.eot');
 | 
			
		||||
    src: url('//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
 | 
			
		||||
     url('//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/fonts/glyphicons-halflings-regular.woff2') format('woff2'),
 | 
			
		||||
     url('//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/fonts/glyphicons-halflings-regular.woff') format('woff'),
 | 
			
		||||
     url('//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/fonts/glyphicons-halflings-regular.ttf') format('truetype'),
 | 
			
		||||
     url('//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.glyphicon {
 | 
			
		||||
    position: relative;
 | 
			
		||||
    top: 1px;
 | 
			
		||||
    display: inline-block;
 | 
			
		||||
    font-family: 'Glyphicons Halflings';
 | 
			
		||||
    font-style: normal;
 | 
			
		||||
    font-weight: normal;
 | 
			
		||||
    line-height: 1;
 | 
			
		||||
    -webkit-font-smoothing: antialiased;
 | 
			
		||||
    -moz-osx-font-smoothing: grayscale;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.glyphicon-time:before {
 | 
			
		||||
    content: "\e023";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.glyphicon-chevron-left:before {
 | 
			
		||||
    content: "\e079";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.glyphicon-chevron-right:before {
 | 
			
		||||
    content: "\e080";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.glyphicon-chevron-up:before {
 | 
			
		||||
    content: "\e113";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.glyphicon-chevron-down:before {
 | 
			
		||||
    content: "\e114";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.glyphicon-calendar:before {
 | 
			
		||||
    content: "\e109";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.glyphicon-screenshot:before {
 | 
			
		||||
    content: "\e087";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.glyphicon-trash:before {
 | 
			
		||||
    content: "\e020";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.glyphicon-remove:before {
 | 
			
		||||
    content: "\e014";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.bootstrap-datetimepicker-widget .btn {
 | 
			
		||||
    display: inline-block;
 | 
			
		||||
    padding: 6px 12px;
 | 
			
		||||
    margin-bottom: 0;
 | 
			
		||||
    font-size: 14px;
 | 
			
		||||
    font-weight: normal;
 | 
			
		||||
    line-height: 1.42857143;
 | 
			
		||||
    text-align: center;
 | 
			
		||||
    white-space: nowrap;
 | 
			
		||||
    vertical-align: middle;
 | 
			
		||||
    -ms-touch-action: manipulation;
 | 
			
		||||
    touch-action: manipulation;
 | 
			
		||||
    cursor: pointer;
 | 
			
		||||
    -webkit-user-select: none;
 | 
			
		||||
    -moz-user-select: none;
 | 
			
		||||
    -ms-user-select: none;
 | 
			
		||||
    user-select: none;
 | 
			
		||||
    background-image: none;
 | 
			
		||||
    border: 1px solid transparent;
 | 
			
		||||
    border-radius: 4px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.bootstrap-datetimepicker-widget.dropdown-menu {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    left: 0;
 | 
			
		||||
    z-index: 1000;
 | 
			
		||||
    display: none;
 | 
			
		||||
    float: left;
 | 
			
		||||
    min-width: 160px;
 | 
			
		||||
    padding: 5px 0;
 | 
			
		||||
    margin: 2px 0 0;
 | 
			
		||||
    font-size: 14px;
 | 
			
		||||
    text-align: left;
 | 
			
		||||
    list-style: none;
 | 
			
		||||
    background-color: #fff;
 | 
			
		||||
    -webkit-background-clip: padding-box;
 | 
			
		||||
    background-clip: padding-box;
 | 
			
		||||
    border: 1px solid #ccc;
 | 
			
		||||
    border: 1px solid rgba(0, 0, 0, .15);
 | 
			
		||||
    border-radius: 4px;
 | 
			
		||||
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
 | 
			
		||||
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.bootstrap-datetimepicker-widget .list-unstyled {
 | 
			
		||||
    padding-left: 0;
 | 
			
		||||
    list-style: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.bootstrap-datetimepicker-widget .collapse {
 | 
			
		||||
    display: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.bootstrap-datetimepicker-widget .collapse.in {
 | 
			
		||||
    display: block;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* fix for bootstrap4 */
 | 
			
		||||
.bootstrap-datetimepicker-widget .table-condensed > thead > tr > th,
 | 
			
		||||
.bootstrap-datetimepicker-widget .table-condensed > tbody > tr > td,
 | 
			
		||||
.bootstrap-datetimepicker-widget .table-condensed > tfoot > tr > td {
 | 
			
		||||
    padding: 5px;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										55
									
								
								static/bootstrap_datepicker_plus/js/datepicker-widget.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										55
									
								
								static/bootstrap_datepicker_plus/js/datepicker-widget.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,55 @@
 | 
			
		||||
jQuery(function ($) {
 | 
			
		||||
    var datepickerDict = {};
 | 
			
		||||
    var isBootstrap4 = $.fn.collapse.Constructor.VERSION.split('.').shift() == "4";
 | 
			
		||||
    function fixMonthEndDate(e, picker) {
 | 
			
		||||
        e.date && picker.val().length && picker.val(e.date.endOf('month').format('YYYY-MM-DD'));
 | 
			
		||||
    }
 | 
			
		||||
    $("[dp_config]:not([disabled])").each(function (i, element) {
 | 
			
		||||
        var $element = $(element), data = {};
 | 
			
		||||
        try {
 | 
			
		||||
            data = JSON.parse($element.attr('dp_config'));
 | 
			
		||||
        }
 | 
			
		||||
        catch (x) { }
 | 
			
		||||
        if (data.id && data.options) {
 | 
			
		||||
            data.$element = $element.datetimepicker(data.options);
 | 
			
		||||
            data.datepickerdata = $element.data("DateTimePicker");
 | 
			
		||||
            datepickerDict[data.id] = data;
 | 
			
		||||
            data.$element.next('.input-group-addon').on('click', function(){
 | 
			
		||||
                data.datepickerdata.show();
 | 
			
		||||
            });
 | 
			
		||||
            if(isBootstrap4){
 | 
			
		||||
                data.$element.on("dp.show", function (e) {
 | 
			
		||||
                    $('.collapse.in').addClass('show');
 | 
			
		||||
                });
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
    $.each(datepickerDict, function (id, to_picker) {
 | 
			
		||||
        if (to_picker.linked_to) {
 | 
			
		||||
            var from_picker = datepickerDict[to_picker.linked_to];
 | 
			
		||||
            from_picker.datepickerdata.maxDate(to_picker.datepickerdata.date() || false);
 | 
			
		||||
            to_picker.datepickerdata.minDate(from_picker.datepickerdata.date() || false);
 | 
			
		||||
            from_picker.$element.on("dp.change", function (e) {
 | 
			
		||||
                to_picker.datepickerdata.minDate(e.date || false);
 | 
			
		||||
            });
 | 
			
		||||
            to_picker.$element.on("dp.change", function (e) {
 | 
			
		||||
                if (to_picker.picker_type == 'MONTH') fixMonthEndDate(e, to_picker.$element);
 | 
			
		||||
                from_picker.datepickerdata.maxDate(e.date || false);
 | 
			
		||||
            });
 | 
			
		||||
            if (to_picker.picker_type == 'MONTH') {
 | 
			
		||||
                to_picker.$element.on("dp.hide", function (e) {
 | 
			
		||||
                    fixMonthEndDate(e, to_picker.$element);
 | 
			
		||||
                });
 | 
			
		||||
                fixMonthEndDate({ date: to_picker.datepickerdata.date() }, to_picker.$element);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
    if(isBootstrap4) {
 | 
			
		||||
        $('body').on('show.bs.collapse','.bootstrap-datetimepicker-widget .collapse',function(e){
 | 
			
		||||
            $(e.target).addClass('in');
 | 
			
		||||
        });
 | 
			
		||||
        $('body').on('hidden.bs.collapse','.bootstrap-datetimepicker-widget .collapse',function(e){
 | 
			
		||||
            $(e.target).removeClass('in');
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
		Reference in New Issue
	
	Block a user