Modal: Calendar Textarea

No notes defined.

<div class="sds-modal modal fade -bodySecondary06" id="calendarModal" aria-hidden="true" tabindex="-1">
    <div class="sds-modal__dialog modal-dialog modal-dialog-scrollable modal-dialog-centered modal-lg">
        <div class="sds-modal__content modal-content">

            <div class="sds-modal__header modal-header">

                <div class="modal-title">Ajout de sortie</div>

                <button type="button" class="sds-btn -iconBtn -btnSecondary -ghost sds-modal__close" data-dismiss="modal" aria-label="Close">

                    <span class="sds-icon sds-icon-close"></span>

                </button>

            </div>

            <div class="sds-modal__body modal-body">

                <div class="sds-box -insetLg">
                    <div class="row row-sm">
                        <div class="col-12 col-sm-6">
                            <div class="form-group">
                                <label for="" class="sds-label -labelForm">
                                    Date

                                </label>
                                <div class="sds-input -hasIcon -calendar js-flatpickr">
                                    <input id="inputCalendar" class="sds-input form-control" type="text" placeholder="11.04.2023" value="">

                                    <div class="sds-input__iconRight">

                                        <span class="sds-icon sds-icon-calendar"></span>

                                    </div>

                                </div>
                            </div>
                        </div>
                        <div class="col-12 col-sm-6">
                            <div class="form-group">
                                <label for="" class="sds-label -labelForm">
                                    Heure

                                </label>
                                <div class="sds-input">
                                    <input id="" class="sds-input form-control js-timepickr" type="text" placeholder="Choisir heure" value="">

                                    <div class="sds-input__hint">Votre plage horaire est comprise entre 7:00 et 19:00</div>

                                </div>
                            </div>
                        </div>
                        <div class="col-12">
                            <div class="form-group">
                                <label for="" class="sds-label -labelForm -labelOptional">
                                    Motif sortie

                                    <span class="sds-label__helper"><span>0</span>/100</span>

                                </label>
                                <div class="sds-textarea">
                                    <textarea class="form-control" id="" rows="1" placeholder="Veuillez saisir votre commentaire"></textarea>

                                </div>

                            </div>
                        </div>
                    </div>
                </div>

            </div>

            <div class="sds-modal__footer modal-footer">

                <div class="sds-btnGroup">
                    <button type="button" class="sds-btn -btnSecondary -btnInverse" data-dismiss="modal">

                        <span class="sds-btn__text">Annuler</span>

                    </button>
                    <button type="button" class="sds-btn -btnPrimary" data-dismiss="modal" disabled="true">

                        <span class="sds-btn__text">Valider</span>

                    </button>
                </div>

            </div>

        </div>
    </div>
</div>
{% extends "@snet-modal-base-frame" %}
{% block header %}
	<div class="modal-title">Ajout de sortie</div>
{% endblock %}
{% block body %}
	<div class="{{ namespace }}box -insetLg">
		<div class="row row-sm">
			<div class="col-12 col-sm-6">
				<div class="form-group">
					{% render "@label--form",{text: "Date"},true %}
					{% render "@msp-input--calendar" %}
				</div>
			</div>
			<div class="col-12 col-sm-6">
				<div class="form-group">
					{% render "@label--form",{text: "Heure"}, true %}
					{% render "@input--hint", {
						classes: ["js-timepickr"],
						placeholder: "Choisir heure"
					}, true %}
				</div>
			</div>
			<div class="col-12">
					<div class="form-group">
						{% render "@label--optional",{
							text: "Motif sortie",
							textOptional: "<span>0</span>/100"
						},true %}
						{% render "@textarea",{
							placeholder: "Veuillez saisir votre commentaire"
						},true %}
					</div>
			</div>
		</div>
	</div>
{% endblock %}
{% block footer %}
	<div class="{{ namespace }}btnGroup">
		{% render "@btn-secondary-inverse", {
			text: "Annuler",
			attrs: {
				"data-dismiss": "modal"
			}
		} ,true %}
		{% render "@btn-primary",{
			text: "Valider",
			attrs: {
				"data-dismiss": "modal",
				"disabled": true
			}
		},true %}
	</div>
{% endblock %}
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}modal {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    
    
    	/* Pseudo Elements */
    
    	&::before {
    	}
    
    	&::after {
    	}
    
    	/*
    	Include elements that are linked to the current element but have to reside at the root level of the stylesheet
    	(e.g: keyframes)
    	*/
    	@at-root {
    	}
    
    
    	/* children - write selector in full in comments in order to facilitate search */
    
    	// modal__headerStepper
    	&__headerStepper {
    
    		// follows same logic as parent
    
    		order: 1000;
    		flex: 1 0 100%;
    		margin: 0 (-(map-deep-get($token-spacer-inline-map, "md"))) (-(map-deep-get($token-spacer-inline-map, "md")));
    
    	}
    
    
    	/* modifiers */
    
    	// modal -hasHeaderStepper
    	&.-hasHeaderStepper {
    
    		// follows same logic as base element
    
    		#{$self}__header {
    
    			flex-wrap: wrap;
    
    		}
    
    	}
    
    	/* random parent element */
    	/* 
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/msp-modal/_modal.scss
  • Filesystem Path: components/my-spuerkeess/organisms/modal/_modal.scss
  • Size: 1.1 KB