From: soufiane Date: Mon, 26 Aug 2024 09:26:13 +0000 (+0200) Subject: wip #7041 @10:00 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a6837d8eca85bdf6441daeaf3358b97c437d66cc;p=ccv-wordpress.git wip #7041 @10:00 --- diff --git a/wp-content/mu-plugins/cube/src/Elementor/Setup.php b/wp-content/mu-plugins/cube/src/Elementor/Setup.php index 806e8f6..a44b30e 100644 --- a/wp-content/mu-plugins/cube/src/Elementor/Setup.php +++ b/wp-content/mu-plugins/cube/src/Elementor/Setup.php @@ -6,6 +6,7 @@ use Elementor\Element_Base; use Elementor\Controls_Manager; use Elementor\Plugin; + class Setup { public function register() { @@ -20,7 +21,6 @@ class Setup { add_action('elementor/widgets/widgets_registered', [$this, 'register_widgets']); } - public function register_customisations() { $this->_customise_sections(); diff --git a/wp-content/mu-plugins/cube/src/Elementor/Widgets/HeaderSlideshow.php b/wp-content/mu-plugins/cube/src/Elementor/Widgets/HeaderSlideshow.php index d4fa7f5..939752d 100644 --- a/wp-content/mu-plugins/cube/src/Elementor/Widgets/HeaderSlideshow.php +++ b/wp-content/mu-plugins/cube/src/Elementor/Widgets/HeaderSlideshow.php @@ -82,6 +82,24 @@ class HeaderSlideshow extends _Base { ] ); + $this->add_control( + 'link_url', + [ + 'label' => __('Link url'), + 'type' => Controls_Manager::URL, + 'default' => '' + ] + ); + + $this->add_control( + 'link_text', + [ + 'label' => __('Link text'), + 'type' => Controls_Manager::TEXTAREA, + 'default' => '' + ] + ); + $this->add_control( 'images_desktop', [ @@ -118,6 +136,8 @@ class HeaderSlideshow extends _Base { $id = 'header_slideshow_' . $this->get_id(); $title = $this->get_settings('title'); $body = $this->get_settings('body'); + $linkUrl = $this->get_settings('link_url')['url']; + $linkText = $this->get_settings('link_text'); $images_desktop = $this->get_settings('images_desktop'); $images_mobile = $this->get_settings('images_mobile'); @@ -172,6 +192,8 @@ class HeaderSlideshow extends _Base { data-element_type="section"> +
+ diff --git a/wp-content/mu-plugins/cube/src/Elementor/Widgets/LinkCarousel.php b/wp-content/mu-plugins/cube/src/Elementor/Widgets/LinkCarousel.php index 60a808e..66de1ae 100644 --- a/wp-content/mu-plugins/cube/src/Elementor/Widgets/LinkCarousel.php +++ b/wp-content/mu-plugins/cube/src/Elementor/Widgets/LinkCarousel.php @@ -9,9 +9,12 @@ use Elementor\Utils; use function Roots\view; use function Roots\asset; - class LinkCarousel extends _Base { + public function __construct($data = [], $args = null) { + parent::__construct($data, $args); + wp_register_script( 'cube-link-carousel', asset('scripts/link-carousel.js'), [ 'swiper' ], '1.0.0', true ); + } // Widget name / ID public function get_name() { return 'cube-link-carousel'; @@ -35,16 +38,8 @@ class LinkCarousel extends _Base { * @access public * @return array Widget scripts dependencies. */ - public function get_script_depends() { - - wp_register_script( - 'cube-link-carousel', - asset('scripts/link-carousel.js'), - ['jquery', 'swiper'], // Dependencies - null, // Version - true // In footer? - ); - + public function get_script_depends() + { // Using Swiper because it is already included and heavily used by Elementor return [ 'cube-link-carousel' ]; diff --git a/wp-content/mu-plugins/cube/src/Forms/Appointment.php b/wp-content/mu-plugins/cube/src/Forms/Appointment.php new file mode 100644 index 0000000..48cdc9b --- /dev/null +++ b/wp-content/mu-plugins/cube/src/Forms/Appointment.php @@ -0,0 +1,36 @@ +set_form_title(__('Rendez-vous', 'ccv')); + $this->doctors = [ + __('Première disponiblité') => [ 'legend' => 'La première date disponible vous sera proposée.', 'url' => @asset('images/doctors/premiere_dispo.jpg')], + __('Dr Martin GRAU ORTIZ') => [ 'legend' => 'Chirurgien orthopédiste spécialisé en chirurgie vertébrale.', 'url' => @asset('images/doctors/martin_grau_ortiz.jpg')], + __('Dr Guilhaume GENESTE') => [ 'legend' => 'Chirurgien orthopédiste spécialisé en chirurgie vertébrale.', 'url' => @asset('images/doctors/guilhaume_geneste.jpg')], + __('Dr Caroline HIRSCH') => [ 'legend' => 'Chirurgien orthopédiste spécialisé en chirurgie vertébrale.', 'url' => @asset('images/doctors/caroline_hirsch.jpg')], + __('Dr Grégory EDGARD-ROSA') => [ 'legend' => 'Chirurgien orthopédiste spécialisé en chirurgie vertébrale.', 'url' => @asset('images/doctors/gregory_edgard_rosa.jpg')] + ]; + } + + function register_fields() { + parent::register_fields(); + $this->add_fields([ + Radio::field('doctor', __('Choisissez un chirurgien', 'ccv')) + ->options([ + __('Première disponiblité'), + __('Dr Martin GRAU ORTIZ'), + __('Dr Guilhaume GENESTE'), + __('Dr Caroline HIRSCH'), + __('Dr Grégory EDGARD-ROSA') + ]), + ]); + } +} \ No newline at end of file diff --git a/wp-content/mu-plugins/cube/src/Forms/Base.php b/wp-content/mu-plugins/cube/src/Forms/Base.php index 63fdf94..f88a137 100644 --- a/wp-content/mu-plugins/cube/src/Forms/Base.php +++ b/wp-content/mu-plugins/cube/src/Forms/Base.php @@ -15,6 +15,7 @@ class Base 'consultation' => Consultation::class, 'training' => Training::class, 'contact' => Contact::class, + 'appointment' => Appointment::class, ]; protected $fields = []; @@ -25,6 +26,8 @@ class Base public $builder; + public $doctors; + // Early setup called by Init.php in mu-plugin to register // This is separated from init() so we can set up hooks for every request // but only register scripts when we are going to display the form... @@ -48,7 +51,7 @@ class Base $this->register_fields(); $this->register_scripts(); - $this->builder = new FormBuilder($this->get_fields()); + $this->builder = new FormBuilder($this->get_fields(),$this->doctors); } public function register_scripts() { @@ -407,5 +410,4 @@ class Base return $value; } - } diff --git a/wp-content/mu-plugins/cube/src/Forms/Builder/Fields/Password.php b/wp-content/mu-plugins/cube/src/Forms/Builder/Fields/Password.php new file mode 100644 index 0000000..e54f9f9 --- /dev/null +++ b/wp-content/mu-plugins/cube/src/Forms/Builder/Fields/Password.php @@ -0,0 +1,12 @@ +get_name() .'" placeholder="'. $settings['placeholder'] .'" '. $settings['validation'] .'>'; + } +} diff --git a/wp-content/mu-plugins/cube/src/Forms/Builder/Form.php b/wp-content/mu-plugins/cube/src/Forms/Builder/Form.php index 74e47b2..c992d52 100644 --- a/wp-content/mu-plugins/cube/src/Forms/Builder/Form.php +++ b/wp-content/mu-plugins/cube/src/Forms/Builder/Form.php @@ -7,8 +7,9 @@ use Cube\Forms\Base; // HTML Form Builder class Form extends Base { - public function __construct($fields) { + public function __construct($fields, $doctors) { $this->fields = $fields; + $this->doctors = $doctors; } /** diff --git a/wp-content/mu-plugins/cube/src/Forms/Consultation.php b/wp-content/mu-plugins/cube/src/Forms/Consultation.php index 7bc7973..bcea944 100644 --- a/wp-content/mu-plugins/cube/src/Forms/Consultation.php +++ b/wp-content/mu-plugins/cube/src/Forms/Consultation.php @@ -7,6 +7,7 @@ use Cube\Forms\Builder\Fields\Checkbox; use Cube\Forms\Builder\Fields\Date; use Cube\Forms\Builder\Fields\Email; use Cube\Forms\Builder\Fields\Hidden; +use Cube\Forms\Builder\Fields\Password; use Cube\Forms\Builder\Fields\Radio; use Cube\Forms\Builder\Fields\Select; use Cube\Forms\Builder\Fields\Text; @@ -43,15 +44,34 @@ class Consultation extends Base { Text::field('country', __('Pays', 'ccv')), Text::field('phone', __('Tel', 'ccv')), Email::field('email', __('Email', 'ccv')), - Radio::field('sex', __('Sexe', 'ccv')) + Radio::field('sex', __('Sexe :', 'ccv')) ->options([ _x('M', 'Sexe (M)', 'ccv'), _x('F', 'Sexe (F)', 'ccv'), ]), Text::field('age', __('Âge :', 'ccv')), + Date::field('birthdate', __('Date de naissance')), Textarea::field('message', __('Avez vous un message (ou une demande) spécifique à nous formuler ?', 'ccv'))->required(false), - - // Special field: if a surgeon is selected, their e-mail address will be override the default delivery address + Text::field('size', __('Taille :', 'ccv')), + Text::field('weight', __('Poids :', 'ccv')), + + // Social cover + Radio::field('social-cover', __('Couverture sociale :', 'ccv')) + ->options([ + __('Sécurité sociale', 'ccv'), + __('Assurance privée', 'ccv'), + __('Régime de la CMU/ACS', 'ccv'), + __('Accident du travail', 'ccv'), + ]), + + // Chirurgical solutions + Radio::field('chirurgical-solutions', __('Êtes-vous à la recherche de solutions chirurgicales pour votre problème de dos ?', 'ccv')) + ->options([ + __('Oui, s\'il existe des solutions satisfaisantes', 'ccv'), + __('Non, pas encore à ce stade', 'ccv'), + ]), + + // Special field: if a surgeon is selected, their e-mail address will be override the default delivery address Select::field('surgeon', __('Chirurgien spécifique', 'ccv')) ->required(false) ->options([ @@ -61,6 +81,8 @@ class Consultation extends Base { 'Dr Caroline HIRSH' => 'dr.hirsch@ccv-montpellier.fr', ]), + Date::field('work-accident', __('Si accident de travail à quelle date ? ')), + //=== IMAGERY // This is a special case and will be output manually so only using this for the e-mail label Radio::field('imagery-type', __('Imagerie', 'ccv'))->required(false), @@ -111,14 +133,34 @@ class Consultation extends Base { Binary::field('strength-loss', __('Avez-vous une perte de force importante dans un des membres ?', 'ccv')), Date::field('strength-loss-date', __('Si oui depuis quand ?', 'ccv'))->required(false), + Textarea::field('symptoms', __('Dites-nous en quelques mots ce qui vous invalide le plus dans vos symptômes :', 'ccv')), + //=== TREATMENTS Textarea::field('medication', __('Indiquez ici les médicaments que vous avez pris pour vos douleurs (le cas échéant)', 'ccv'))->required(false), - Binary::field('kine-osteo', __('Kinésithérapie ou ostéopathie', 'ccv')), + Binary::field('kine-osteo', __('Kinésithérapie ou ostéopathie', 'ccv')), Binary::field('corset', __('Corset ou ceinture lombaire', 'ccv')), Binary::field('hospitalisation', __('Séjour en hospitalisation', 'ccv')), Binary::field('infiltration', __('Infiltration ou thermocoagulation', 'ccv')), - Textarea::field('surgeries', __('Indiquez ici vos précédentes chirurgies de la colonne et leurs dates (le cas échéant)', 'ccv'))->required(false), - + Binary::field('rheumatological', __('Suivi rhumatologique ou médecine spécialisée', 'ccv')), + Textarea::field('surgeries', __('Indiquez ici vos précédentes chirurgies de la colonne et leurs dates (le cas échéant)', 'ccv'))->required(false), + + Radio::field('imagery-condition', __('', 'ccv')) + ->options([ + __('J\'ai bien noté que mon dossier ne pourra être étudié si je fournis pas une IRM de moins de 6 mois', 'ccv'), + ]), + + Text::field('link_1', __('Lien internet 1', 'ccv')), + Text::field('id_1', __('Identifiant', 'ccv')), + Password::field('pwd_1', __('Mot de passe', 'ccv')), + Text::field('link_2', __('Lien internet 2', 'ccv')), + Text::field('id_2', __('Identifiant', 'ccv')), + Password::field('pwd_2', __('Mot de passe', 'ccv')), + Text::field('link_3', __('Lien internet 3', 'ccv')), + Text::field('id_3', __('Identifiant', 'ccv')), + Password::field('pwd_3', __('Mot de passe', 'ccv')), + Text::field('link_4', __('Lien internet 4', 'ccv')), + Text::field('id_4', __('Identifiant', 'ccv')), + Password::field('pwd_4', __('Mot de passe', 'ccv')), ]); } diff --git a/wp-content/themes/CCV/resources/assets/images/doctors/caroline_hirsch.jpg b/wp-content/themes/CCV/resources/assets/images/doctors/caroline_hirsch.jpg new file mode 100644 index 0000000..1a5cd43 Binary files /dev/null and b/wp-content/themes/CCV/resources/assets/images/doctors/caroline_hirsch.jpg differ diff --git a/wp-content/themes/CCV/resources/assets/images/doctors/gregory_edgard_rosa.jpg b/wp-content/themes/CCV/resources/assets/images/doctors/gregory_edgard_rosa.jpg new file mode 100644 index 0000000..cb06b86 Binary files /dev/null and b/wp-content/themes/CCV/resources/assets/images/doctors/gregory_edgard_rosa.jpg differ diff --git a/wp-content/themes/CCV/resources/assets/images/doctors/guilhaume_geneste.jpg b/wp-content/themes/CCV/resources/assets/images/doctors/guilhaume_geneste.jpg new file mode 100644 index 0000000..804241e Binary files /dev/null and b/wp-content/themes/CCV/resources/assets/images/doctors/guilhaume_geneste.jpg differ diff --git a/wp-content/themes/CCV/resources/assets/images/doctors/martin_grau_ortiz.jpg b/wp-content/themes/CCV/resources/assets/images/doctors/martin_grau_ortiz.jpg new file mode 100644 index 0000000..5571dff Binary files /dev/null and b/wp-content/themes/CCV/resources/assets/images/doctors/martin_grau_ortiz.jpg differ diff --git a/wp-content/themes/CCV/resources/assets/images/doctors/premiere_dispo.jpg b/wp-content/themes/CCV/resources/assets/images/doctors/premiere_dispo.jpg new file mode 100644 index 0000000..58b18a9 Binary files /dev/null and b/wp-content/themes/CCV/resources/assets/images/doctors/premiere_dispo.jpg differ diff --git a/wp-content/themes/CCV/resources/assets/images/rendezvous.svg b/wp-content/themes/CCV/resources/assets/images/rendezvous.svg index 4632889..34250f1 100644 --- a/wp-content/themes/CCV/resources/assets/images/rendezvous.svg +++ b/wp-content/themes/CCV/resources/assets/images/rendezvous.svg @@ -1,26 +1,18 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/wp-content/themes/CCV/resources/assets/styles/components/forms.styl b/wp-content/themes/CCV/resources/assets/styles/components/forms.styl index c58c986..f763bc9 100644 --- a/wp-content/themes/CCV/resources/assets/styles/components/forms.styl +++ b/wp-content/themes/CCV/resources/assets/styles/components/forms.styl @@ -28,7 +28,7 @@ input, textarea, select textarea @apply bg-white -input[type="text"], input[type="email"], input[type="number"], select +input[type="text"], input[type="email"], input[type="number"], input[type="password"], select appearance: none border: none border-radius: 0 diff --git a/wp-content/themes/CCV/resources/assets/styles/pages/appointement.styl b/wp-content/themes/CCV/resources/assets/styles/pages/appointement.styl new file mode 100644 index 0000000..4c93218 --- /dev/null +++ b/wp-content/themes/CCV/resources/assets/styles/pages/appointement.styl @@ -0,0 +1,8 @@ +.doctors-block + margin-bottom: 0 + .form-field-input + gap: 43px 0 + .img-block + width: 112px + img + width: 100% diff --git a/wp-content/themes/CCV/resources/assets/styles/pages/consultation.styl b/wp-content/themes/CCV/resources/assets/styles/pages/consultation.styl index f9cdbd9..70f704c 100644 --- a/wp-content/themes/CCV/resources/assets/styles/pages/consultation.styl +++ b/wp-content/themes/CCV/resources/assets/styles/pages/consultation.styl @@ -55,3 +55,21 @@ input[name="imagery-type"] // Change icon bg colour when selected &:checked + .imagery-icon circle fill: theme('colors.purple') + +.imagery-link-block + &:nth-child(1), + &:nth-child(2) + margin-bottom: 124px + +.social-cover-block, +.chirurgical-solutions-block + .form-field-input + display: flex + gap: 1.5rem 0 + label + margin: 0 !important + +.social-cover-block, +.doctors-block + .parsley-errors-list + bottom: -4em diff --git a/wp-content/themes/CCV/resources/views/forms/appointment.blade.php b/wp-content/themes/CCV/resources/views/forms/appointment.blade.php new file mode 100644 index 0000000..63b63a4 --- /dev/null +++ b/wp-content/themes/CCV/resources/views/forms/appointment.blade.php @@ -0,0 +1,33 @@ +@php /* @var $form \Cube\Forms\Builder\Form */ @endphp + +{{-- DOCTOR --}} +@if($form->doctors) +
+

{{ __('Votre demande', 'ccv') }}

+ +
+
+
{{ __('Choisissez un chirurgien') }}
+
+
+ @foreach($form->doctors as $doctor => $infos) + + @endforeach +
+ +
+
+
+
+@endif + +@include('partials.content-form') diff --git a/wp-content/themes/CCV/resources/views/forms/consultation.blade.php b/wp-content/themes/CCV/resources/views/forms/consultation.blade.php index 12a8cb8..ad31780 100644 --- a/wp-content/themes/CCV/resources/views/forms/consultation.blade.php +++ b/wp-content/themes/CCV/resources/views/forms/consultation.blade.php @@ -1,393 +1,2 @@ -{{-- CONSULTATION FORM --}} @php /* @var $form \Cube\Forms\Builder\Form */ @endphp - -{{-- SYMPTOMS --}} -
-

{{ __('1. Vos symptômes', 'ccv') }}

- - @php $date_placeholder = __('JJ/MM/AAAA', 'ccv'); @endphp - -
- -
    -
  • {!! $form->field('main-problem') !!}
  • -
  • - {!! - $form->field('date-first-symptoms', [ - 'placeholder' => $date_placeholder, - 'class' => 'flex items-center spaced-horizontal', - 'title_class' => 'mb-0', - 'input_class' => 'date-field-compact', - 'flatpickr' => [ - 'maxDate' => 'today' - ] - ]) - !!} -
  • -
  • - {!! - $form->field('date-pain-since', [ - 'placeholder' => $date_placeholder, - 'class' => 'flex items-center spaced-horizontal', - 'title_class' => 'mb-0', - 'input_class' => 'date-field-compact', - 'flatpickr' => [ - 'maxDate' => 'today' - ] - ]) - !!} -
  • -
  • - {!! $form->field('pain-arms-legs') !!} - -
    - {!! $form->title('pain-arms-legs-detail', ['title_class' => 'pr-4']) !!} -
    -
    - - - {{ __('Droite', 'ccv') }} - {{ __('Gauche', 'ccv') }} - - @foreach ($form->get_field('pain-arms-legs-detail')->get_options() as $option) - - @endforeach -
    -
    -
    - -
  • -
- -
    -
  • {!! $form->field('main-pain') !!}
  • -
  • {!! $form->field('tingling-numbness') !!}
  • -
  • - {!! - $form->field('tingling-numbness-date', [ - 'placeholder' => $date_placeholder, - 'class' => 'flex items-center spaced-horizontal', - 'title_class' => 'mb-0', - 'input_class' => 'date-field-compact', - 'flatpickr' => [ - 'maxDate' => 'today' - ] - ]) - !!} -
  • -
  • {!! $form->field('strength-loss') !!}
  • -
  • - {!! - $form->field('strength-loss-date', [ - 'placeholder' => $date_placeholder, - 'class' => 'flex items-center spaced-horizontal', - 'title_class' => 'mb-0', - 'input_class' => 'date-field-compact', - 'flatpickr' => [ - 'maxDate' => 'today' - ] - ]) - !!} -
  • -
- -
- -
- -{{-- TREATMENTS --}} -
-

{{ __('2. Vos traitements réalisés', 'ccv') }}

- -
- {!! $form->field('medication', ['title_class' => 'font-light']) !!} - -
- {!! $form->field('kine-osteo') !!} - {!! $form->field('corset') !!} - {!! $form->field('hospitalisation') !!} - {!! $form->field('infiltration') !!} -
- - {!! $form->field('surgeries', ['title_class' => 'font-light']) !!} -
- -
- -{{-- IMAGERY --}} -
-

{{ __('3. Votre imagerie', 'ccv') }}

- -

- {{ __("IRM, Scanner, Radiographies, faites-nous parvenir vos imageries les plus récentes en utilisant l'une des méthodes suivantes :", 'ccv') }} -

- -
- - {{-- IMAGES FROM CD --}} -
- - -
-
- {{ __('Vos images sont sur un CD ?', 'ccv') }} -
-

- {{ __("Envoyez-nous l'ensemble des fichiers contenus sur votre CD :", "ccv") }} -

- - {{ __('Parcourir', 'ccv') }} - - {{-- IMAGE UPLOAD POPUP --}} -
- -

- {{ __('Envoyez vos images au CCV Montpellier en vue d’une téléconsultation', 'ccv') }} -

- -

- {{ __('1. Munissez-vous du CD de votre examen (scanner, IRM, etc) et copiez-le sur votre ordinateur. Un dossier avec le nom du CD va être automatiquement généré.', 'ccv') }} -

- -

- {{ __('2. Glissez ce dossier dans la zone ci-dessous. Ou cliquez sur le bouton « Folders and Disks » et sélectionnez le dossier entier correspondant à votre CD.', 'ccv') }} -
- {{ __('Le téléchargement des images se fait automatiquement.', 'ccv') }} -

- -

- {{ __('Les fichiers de scanner et IRM comportent souvent de nombreuses images et le téléchargement peut prendre plusieurs minutes, c’est normal.', 'ccv') }} -

- - - -{{-- --}} - -

- {{ __('3. Une fois vos images envoyées, la barre de chargement disparait et le descriptif des images apparaît. Le CCV Montpellier aura accès de son côté à vos images.', 'ccv') }} -

- -

- {{ __('4. Vous pouvez fermer cette fenêtre et terminer de compléter le formulaire de demande d’avis médical.', 'ccv') }} -

-
- -
-
- - {{-- IMAGES ONLINE --}} -
- - -
-
- {{ __('Vous avez reçu un lien pour consulter vos images en ligne ?', 'ccv') }} -
-

- {{ __('Collez votre lien ci-dessous ainsi que vos identifiant et mot de passe :', 'ccv') }} -

- -
-
- - {{-- IMAGES FROM PHONE (NAS UPLOAD) --}} -
- {!! $form->input('imagery-phone-token') !!} - {{-- ### NOTE: when this option isn't selected, the 'imagery-phone-token' field will be removed from the form --}} - {{-- This field is matched based on the value of the translated text below, so make sure to update Consultation::pre_process() too --}} - - -
-
- {{ __('Vous remplissez cette demande depuis votre téléphone ?', 'ccv') }} -
-

- {{ __('Prenez vos images en photo et envoyez-les directement depuis votre téléphone :', 'ccv') }} -

- - {{-- Results from AJAX upload (intially hidden) --}} - - - {{ __('Parcourir', 'ccv') }} -
-
- - {{-- IMAGES SENT BY POST --}} -
- - -
-
- {{ __('Vous pouvez aussi nous envoyer vos images par courrier :', 'ccv') }} -
-

- CCV MONTPELLIER
- AVIS MEDICAL
- Clinique du parc - 50 Rue Emile Combes,
- 34170 Castelnau-le-Lez
-

- -
- -
-
-
-
- -

- {{ __("Aucune demande d’avis ne pourra être étudiée sans imagerie médicale associée.", 'ccv') }} -

- -
- -{{-- CONTACT DETAILS --}} -
-

{{ __('4. Vos informations', 'ccv') }}

- -
- -
- {!! $form->field('last-name', ['show_title' => false]) !!} - {!! $form->field('first-name', ['show_title' => false]) !!} - {!! $form->field('profession', ['show_title' => false]) !!} - {!! $form->field('postcode', ['show_title' => false]) !!} - {!! $form->field('city', ['show_title' => false]) !!} - {!! $form->field('country', ['show_title' => false]) !!} - {!! $form->field('phone', ['show_title' => false]) !!} - {!! $form->field('email', ['show_title' => false]) !!} -
- -
- {!! $form->field('sex', ['class' => 'flex items-center spaced-horizontal', 'title_class' => 'font-light mb-0']) !!} - {!! $form->field('age', [ - 'class' => 'flex items-center spaced-horizontal', - 'title_class' => 'font-light mb-0', - 'input_class' => 'flex items-center w-16', - 'placeholder' => '', - 'field_after' => __('ans', 'ccv') - ]) !!} - {!! $form->field('message', ['class' => 'mt-6', 'title_class' => 'font-light']) !!} - -
-
- -
- {{ __("ou je souhaite l'envoyer à un chirurgien spécifique :", 'ccv') }} - - @php - // The options for this field contains the e-mail address as the value but we don't want to expose that here - // so we override options with a new array made up of just their names as both the key and value. - // Once the form is processed, this will be used to look up the e-mail address. - $surgeons = array_keys($form->get_field('surgeon')->get_options()); - $surgeons_options = array_combine($surgeons, $surgeons); - @endphp - {!! $form->field('surgeon', [ - 'class' => 'mt-4', - 'show_title' => false, - 'options' => $surgeons_options, - 'placeholder' => [ - '' => __('Sélectionner', 'ccv') // First select option - ] - ]) !!} -
-
- -
- - {!! - $form->button(__('Envoyer votre demande', 'ccv'), [ - 'class' => 'btn block mt-1v ml-auto', - 'loading_text' => __('Envoi en cours...', 'ccv'), - ]) - !!} - -
- - -@push('afterform') - - -@endpush - -{{-- Custom classes for form message container --}} -@push('message_class') - py-2v pl-4v pr-3v xs:px-2v -@endpush +@include('partials.content-form') diff --git a/wp-content/themes/CCV/resources/views/partials/content-form.blade.php b/wp-content/themes/CCV/resources/views/partials/content-form.blade.php new file mode 100644 index 0000000..1e3b120 --- /dev/null +++ b/wp-content/themes/CCV/resources/views/partials/content-form.blade.php @@ -0,0 +1,411 @@ +@php /* @var $form \Cube\Forms\Builder\Form */ @endphp +{{-- SYMPTOMS --}} +
+

{{ __('1. Vos symptômes', 'ccv') }}

+ + @php $date_placeholder = __('JJ/MM/AAAA', 'ccv'); @endphp + +
+ +
    +
  • {!! $form->field('main-problem') !!}
  • +
  • + {!! + $form->field('date-first-symptoms', [ + 'placeholder' => $date_placeholder, + 'class' => 'flex items-center spaced-horizontal', + 'title_class' => 'mb-0', + 'input_class' => 'date-field-compact', + 'flatpickr' => [ + 'maxDate' => 'today' + ] + ]) + !!} +
  • +
  • + {!! + $form->field('date-pain-since', [ + 'placeholder' => $date_placeholder, + 'class' => 'flex items-center spaced-horizontal', + 'title_class' => 'mb-0', + 'input_class' => 'date-field-compact', + 'flatpickr' => [ + 'maxDate' => 'today' + ] + ]) + !!} +
  • +
  • + {!! $form->field('pain-arms-legs') !!} + +
    + {!! $form->title('pain-arms-legs-detail', ['title_class' => 'pr-4']) !!} +
    +
    + + + {{ __('Droite', 'ccv') }} + {{ __('Gauche', 'ccv') }} + + @foreach ($form->get_field('pain-arms-legs-detail')->get_options() as $option) + + @endforeach +
    +
    +
    + +
  • +
  • {!! $form->field('main-pain') !!}
  • +
+ +
    +
  • {!! $form->field('tingling-numbness') !!}
  • +
  • + {!! + $form->field('tingling-numbness-date', [ + 'placeholder' => $date_placeholder, + 'class' => 'flex items-center spaced-horizontal', + 'title_class' => 'mb-0', + 'input_class' => 'date-field-compact', + 'flatpickr' => [ + 'maxDate' => 'today' + ] + ]) + !!} +
  • +
  • {!! $form->field('strength-loss') !!}
  • +
  • + {!! + $form->field('strength-loss-date', [ + 'placeholder' => $date_placeholder, + 'class' => 'flex items-center spaced-horizontal', + 'title_class' => 'mb-0', + 'input_class' => 'date-field-compact', + 'flatpickr' => [ + 'maxDate' => 'today' + ] + ]) + !!} +
  • + {!! $form->field('symptoms', ['title_class' => 'font-light']) !!} +
+ +
+ +
+ +{{-- TREATMENTS --}} +
+

{{ __('2. Vos traitements réalisés', 'ccv') }}

+ +
+ {!! $form->field('medication', ['title_class' => 'font-light']) !!} + +
+ {!! $form->field('kine-osteo') !!} + {!! $form->field('corset') !!} + {!! $form->field('hospitalisation') !!} + {!! $form->field('infiltration') !!} +
+ + {!! $form->field('rheumatological') !!} + + {!! $form->field('surgeries', ['title_class' => 'font-light']) !!} +
+ +
+ +{{-- IMAGERY --}} +
+

{{ __('3. Votre imagerie', 'ccv') }}

+ +
+ +
+ +

+ {{ __("Faites-nous parvenir également vos imageries les plus récentes (Scanner, Radiographies...) en utilisant l'une des méthodes suivantes :", 'ccv') }} +

+ +
+ + {{-- IMAGES FROM CD --}} +
+ + +
+
+ {{ __('Vos images sont sur un CD ?', 'ccv') }} +
+

+ {{ __("Envoyez-nous l'ensemble des fichiers contenus sur votre CD :", "ccv") }} +

+ + {{ __('Parcourir', 'ccv') }} + + {{-- IMAGE UPLOAD POPUP --}} +
+ +

+ {{ __('Envoyez vos images au CCV Montpellier en vue d’une téléconsultation', 'ccv') }} +

+ +

+ {{ __('1. Munissez-vous du CD de votre examen (scanner, IRM, etc) et copiez-le sur votre ordinateur. Un dossier avec le nom du CD va être automatiquement généré.', 'ccv') }} +

+ +

+ {{ __('2. Glissez ce dossier dans la zone ci-dessous. Ou cliquez sur le bouton « Folders and Disks » et sélectionnez le dossier entier correspondant à votre CD.', 'ccv') }} +
+ {{ __('Le téléchargement des images se fait automatiquement.', 'ccv') }} +

+ +

+ {{ __('Les fichiers de scanner et IRM comportent souvent de nombreuses images et le téléchargement peut prendre plusieurs minutes, c’est normal.', 'ccv') }} +

+ + + + {{-- --}} + +

+ {{ __('3. Une fois vos images envoyées, la barre de chargement disparait et le descriptif des images apparaît. Le CCV Montpellier aura accès de son côté à vos images.', 'ccv') }} +

+ +

+ {{ __('4. Vous pouvez fermer cette fenêtre et terminer de compléter le formulaire de demande d’avis médical.', 'ccv') }} +

+
+ +
+
+ + {{-- IMAGES SENT BY POST --}} +
+ + +
+
+ {{ __('Vous pouvez aussi nous envoyer vos images par courrier :', 'ccv') }} +
+

+ CCV MONTPELLIER
+ AVIS MEDICAL
+ Clinique du parc - 50 Rue Emile Combes,
+ 34170 Castelnau-le-Lez
+

+ +
+ +
+
+
+
+
+ {{-- IMAGES ONLINE --}} +
+
+ + +
+
+ {{ __('Vous avez reçu un lien pour consulter vos images en ligne ?', 'ccv') }} +
+

+ {{ __('Collez votre lien ci-dessous ainsi que vos identifiant et mot de passe :', 'ccv') }} +

+
+
+
+
+ @for($i = 1; $i < 5; $i++) + + @endfor +
+
+
+
+

+ {{ __("Aucune demande d’avis ne pourra être étudiée sans imagerie médicale associée.", 'ccv') }} +

+
+ + +{{-- CONTACT DETAILS --}} +
+

{{ __('4. Vos informations', 'ccv') }}

+ +
+ +
+ {!! $form->field('last-name', ['show_title' => false]) !!} + {!! $form->field('first-name', ['show_title' => false]) !!} + {!! $form->field('sex', ['class' => 'flex items-center spaced-horizontal', 'title_class' => 'font-light mb-0']) !!} +
+ {!! $form->field('size', [ + 'class' => 'flex items-center spaced-horizontal', + 'title_class' => 'font-light mb-0', + 'input_class' => 'flex items-center w-24', + 'placeholder' => '', + 'field_after' => __('cm', 'ccv') + ]) !!} + {!! $form->field('weight', [ + 'class' => 'flex items-center spaced-horizontal', + 'title_class' => 'font-light mb-0', + 'input_class' => 'flex items-center w-24', + 'placeholder' => '', + 'field_after' => __('kg', 'ccv') + ]) !!} +
+ {!! $form->field('profession', ['show_title' => false]) !!} + + {!! $form->field('work-accident', [ + 'class' => 'flex items-center spaced-horizontal', + 'placeholder' => $date_placeholder, + 'title_class' => 'font-light mb-0', + ]) !!} + {!! $form->field('postcode', ['show_title' => false]) !!} + {!! $form->field('city', ['show_title' => false]) !!} + {!! $form->field('country', ['show_title' => false]) !!} +
+ +
+ {!! $form->field('phone', ['show_title' => false]) !!} + {!! $form->field('email', ['show_title' => false]) !!} +
+ {!! $form->field('chirurgical-solutions', [ + 'input_class' => 'flex flex-col' + ]) !!} +
+ {!! $form->field('message', ['class' => 'mt-6', 'title_class' => 'font-light']) !!} + +
+
+ +
+ {{ __("ou je souhaite l'envoyer à un chirurgien spécifique :", 'ccv') }} + + @php + // The options for this field contains the e-mail address as the value but we don't want to expose that here + // so we override options with a new array made up of just their names as both the key and value. + // Once the form is processed, this will be used to look up the e-mail address. + $surgeons = array_keys($form->get_field('surgeon')->get_options()); + $surgeons_options = array_combine($surgeons, $surgeons); + @endphp + {!! $form->field('surgeon', [ + 'class' => 'mt-4', + 'show_title' => false, + 'options' => $surgeons_options, + 'placeholder' => [ + '' => __('Sélectionner', 'ccv') // First select option + ] + ]) !!} +
+
+ +
+ + {!! + $form->button(__('Envoyer votre demande', 'ccv'), [ + 'class' => 'btn block mt-1v ml-auto', + 'loading_text' => __('Envoi en cours...', 'ccv'), + ]) + !!} + +
+ + +@push('afterform') + + +@endpush + +{{-- Custom classes for form message container --}} +@push('message_class') + py-2v pl-4v pr-3v xs:px-2v +@endpush