{% extends 'admin/baseAdmin.html.twig' %}
{% block page_title %}Lister les ponits fort {% endblock %}
{% block breadcump_main %}Experiences{% endblock %}
{% block breadcump_subtitle %}Points fort{% endblock %}
{% block menu_left_sidebar %}
{% include 'include/menu/menuAdmin.html.twig' with { menu_active_event : '2'} %}
{% endblock %}
{% block stylesheets %}
<link href="{{ asset('admin/libs/select2/css/select2.min.css') }}" rel="stylesheet" type="text/css">
<link href="{{ asset('admin/css/tailwind.min.css') }}" rel="stylesheet" type="text/css">
<link href="{{ asset('admin/css/tailwind2.css') }}" rel="stylesheet" type="text/css">
{% endblock %}
{% block content %}
<form id="form-general" class="general-info custom-validation" method="POST" action="{{ path('add_highlights',{'id':experience.id}) }}" enctype="multipart/form-data" >
<div class="container-fluid">
<div class="row">
<div class="col-xl-12 px-0">
<div class="card">
<div class="card-body">
<div class="bar-top sm:flex block gap-2 bg-white p-2 pb-3 mb-8 text-uppercase rounded-2xl flex-wrap border-b border-gray-200">
<h3 class="text-sm cursor-pointer hover:text-orange pt-2 " id="general-info">General Info</h3>
<span class="border-r mx-2 h-6 hidden sm:flex"></span>
<h3 class="text-sm cursor-pointer hover:text-orange pt-2 " id="gallery">Hébergement</h3>
<span class="border-r mx-2 h-6 hidden sm:flex"></span>
<h3 class="text-sm cursor-pointer hover:text-orange pt-2 " id="gallery">Gallery</h3>
<span class="border-r mx-2 h-6 hidden sm:flex"></span>
<h3 class="text-sm cursor-pointer hover:text-orange pt-2 " id="itineraire">Programme</h3>
<span class="border-r mx-2 h-6 hidden sm:flex"></span>
<h3 class="text-sm cursor-pointer hover:text-orange pt-2 " id="highlights">Description</h3>
<span class="border-r mx-2 h-6 hidden sm:flex"></span>
<h3 class="text-sm cursor-pointer hover:text-orange pt-2 " id="dispo">Disponibilité</h3>
<span class="border-r mx-2 h-6 hidden sm:flex"></span>
<h3 class="text-sm cursor-pointer hover:text-orange pt-2 " id="disponibilite">Tarification</h3>
<span class="border-r mx-2 h-6 hidden sm:flex"></span>
<h3 class="text-sm cursor-pointer hover:text-orange pt-2 active-nav" id="faq">Points Forts</h3>
</div>
<div class="sm:p-4 p-2 pb-0 pt-1" id="myform2">
<div class="row">
<div class="col-md-6">
<div class="form-floating mb-3">
<label class="form-label">Destination</label>
<select required="" name="destination" class="form-select form-select6LG select2-tags" id="floatingSelectGrid" aria-label="Floating label select example">
{% for destination in country.destinations %}
<option value="{{ destination.id }}" >{{ destination.name }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="col-md-6">
<div class="form-floating mb-3">
<label class="form-label">Sous catégorie</label>
<select required="" name="subcategory" class="form-select form-select6LG select2" id="floatingSelect" aria-label="Floating label select example">
{% for subcategory in category.subcategories %}
<option value="{{ subcategory.id }}" >{{ subcategory.name }}</option>
{% endfor %}
</select>
</div>
</div>
</div>
<h5 class="text-lg font-semibold mt-5 ">Points Forts</h5>
<p class="text-gray-700 text-sm">Ajouter les points forts qui marque votre expérience. </p>
<div class="divider w-2/6 mt-1 mb-5"></div>
<div id="faq-forms">
<div class="row mb-4 text-sm highlight-block ">
<div class="flex items-center">
<div class="relative col-8 flex">
<input required="" type="text" id="highlight1" name="highlights[]"
class="form-control form-control-lg sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5"
placeholder="Points fort ">
<div class="absolute" style="top: 7px;left: 6px;color: #a1a1a1;">
<i class="bx bx-list-check" style="font-size: 29px;"></i>
</div>
<div class="h-6 rounded cursor-pointer ps-2 delete-icon"><i class="bx bx-x-circle text-2xl"></i></div>
</div>
</div>
</div>
</div>
<div id="add-faq" class="mt-4 py-2 flex items-center justify-end gap-2 rounded cursor-pointer ">
<p class="text-base m-0 font-semibold">Ajouter</p>
<i class="bx bx-plus-circle text-orange text-2xl"></i>
</div>
</div>
</div>
<!-- end card body -->
</div>
<!-- end card -->
</div>
<!-- end col -->
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<div class="flex mt-4 row">
<div class="col-md-6">
<p class="text-xs text-gray-900 mb-2">En cliquant sur le bouton d'enregistrement, vous mettez à jours les informations
enregistrer par ce formulaire </p> </div>
<div class="col-md flex justify-end">
<button type="reset" style=" color: #ffaa00; border: 1px solid;" class="font-medium h-10 py-2.5 rounded-lg text-center text-sm w-40 me-2">
Annuler</button>
<button type="submit" style=" background: #ffaa00;" class="font-medium hover:bg-primary-700 h-10 py-2.5 rounded-lg text-center text-sm text-white w-40">Enregistrer</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end col -->
</div>
</div> <!-- container-fluid -->
</form>
{% endblock %}
{% block javascripts %}
<!-- apexcharts -->
<script src="{{ asset('admin/libs/parsleyjs/parsley.min.js')}}"></script>
<script src="{{ asset('admin/libs/select2/js/select2.min.js')}}"></script>
<script src="{{ asset('admin/libs/bootstrap-maxlength/bootstrap-maxlength.min.js')}}"></script>
<script src="{{ asset('admin/js/pages/form-validation.init.js')}}"></script>
<script src="{{ asset('admin/js/app.js')}}"></script>
<script src="{{ asset('admin/js/pages/Highlights.js')}}"></script>
<script>
/*
Template Name: Skote - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: themesbrand@gmail.com
File: Form Advanced Js File
*/
!function ($) {
"use strict";
var AdvancedForm = function () { };
AdvancedForm.prototype.init = function () {
// Select2
if ($('.select2').length > 0) {
$(".select2").select2();
}
if ($('.select2-tags').length > 0) {
$(".select2-tags").select2({
tags: true
});
}
if ($('.select2-limiting-3').length > 0) {
$(".select2-limiting-3").select2({
maximumSelectionLength: 3
});
}
//Bootstrap-MaxLength
$('input#defaultconfig').maxlength({
warningClass: "badge bg-info",
limitReachedClass: "badge bg-warning"
});
$('input#thresholdconfig').maxlength({
threshold: 20,
warningClass: "badge bg-info",
limitReachedClass: "badge bg-warning"
});
$('input#moreoptions').maxlength({
alwaysShow: true,
warningClass: "badge bg-success",
limitReachedClass: "badge bg-danger"
});
$('input#alloptions').maxlength({
alwaysShow: true,
warningClass: "badge bg-success",
limitReachedClass: "badge bg-danger",
separator: ' out of ',
preText: 'You typed ',
postText: ' chars available.',
validate: true
});
$('textarea#textarea').maxlength({
alwaysShow: true,
warningClass: "badge bg-info",
limitReachedClass: "badge bg-warning"
});
$('input#placement').maxlength({
alwaysShow: true,
placement: 'top-left',
warningClass: "badge bg-info",
limitReachedClass: "badge bg-warning"
});
},
//init
$.AdvancedForm = new AdvancedForm, $.AdvancedForm.Constructor = AdvancedForm
}(window.jQuery),
//Datepicker
function ($) {
"use strict";
$.AdvancedForm.init();
}(window.jQuery);
</script>
{% endblock %}