diff --git a/create_date_poll.php b/create_date_poll.php index 2cffcda..5ad011e 100644 --- a/create_date_poll.php +++ b/create_date_poll.php @@ -218,84 +218,30 @@ if (!isset($_SESSION['form']->title) || !isset($_SESSION['form']->admin_name) || // Step 2/4 : Select dates of the poll } else { - Utils::print_header(__('Step 2 date', 'Poll dates (2 on 3)')); - bandeau_titre(__('Step 2 date', 'Poll dates (2 on 3)')); - echo ' -
- - - - '."\n"; - - bandeau_pied(); + $smarty->display('create_date_poll_step_2.tpl'); } } diff --git a/js/app/date_poll.js b/js/app/date_poll.js index 7faf044..67c71a0 100644 --- a/js/app/date_poll.js +++ b/js/app/date_poll.js @@ -15,7 +15,8 @@ * Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaƫl DROZ * Auteurs de Framadate/OpenSondage : Framasoft (https://github.com/framasoft) */ -(function () { + +$(document).ready(function () { // Global variables @@ -200,4 +201,4 @@ if ($selected_days.find('fieldset').length > 1) { $removeaday_and_copyhours.removeClass('disabled'); } -})(); \ No newline at end of file +}); \ No newline at end of file diff --git a/tpl/create_date_poll_step_2.tpl b/tpl/create_date_poll_step_2.tpl new file mode 100644 index 0000000..82d22b0 --- /dev/null +++ b/tpl/create_date_poll_step_2.tpl @@ -0,0 +1,102 @@ +{extends file='page.tpl'} + +{block name="header"} + + +{/block} + +{block name=main} + +{/block}