File tree Expand file tree Collapse file tree 6 files changed +40
-3
lines changed
Expand file tree Collapse file tree 6 files changed +40
-3
lines changed Original file line number Diff line number Diff line change 106106if (empty ($ v_min )) {
107107 $ v_min = "" ;
108108}
109+
110+ // Get current system time
111+ exec (HESTIA_CMD . "v-get-sys-timezone " , $ output , $ return_var );
112+ date_default_timezone_set ($ output [0 ]);
113+ $ current_timestamp = time ();
114+
109115// Render
110116render_page ($ user , $ TAB , "add_cron " );
111117
Original file line number Diff line number Diff line change 159159 align-items : center !important ;
160160}
161161
162+ .u-side-by-side-tablet {
163+ @media (--viewport-small) {
164+ display : flex !important ;
165+ justify-content : space-between !important ;
166+ align-items : center !important ;
167+ }
168+ }
169+
162170.u-list-bulleted {
163171 list-style : disc !important ;
164172 padding-left : 40px !important ;
Original file line number Diff line number Diff line change 9090 }
9191}
9292
93+ // Get current system time
94+ exec (HESTIA_CMD . "v-get-sys-timezone " , $ output , $ return_var );
95+ date_default_timezone_set ($ output [0 ]);
96+ $ current_timestamp = time ();
97+
9398// Render page
9499render_page ($ user , $ TAB , "edit_cron " );
95100
Original file line number Diff line number Diff line change 2222 <input type="hidden" name="ok" value="Add">
2323
2424 <div class="form-container form-container-wide">
25- <h1 class="u-mb20"><?= _ ("Add Cron Job " ) ?> </h1>
25+ <div class="u-side-by-side-tablet u-mb20">
26+ <h1><?= _ ("Add Cron Job " ) ?> </h1>
27+ <p>
28+ <?= _ ('System time ' ) ?> : <span class="u-text-bold">
29+ <time datetime="<?= date ("c " , $ current_timestamp ) ?> ">
30+ <?= date ("d M Y, H:i " , $ current_timestamp ) ?>
31+ </time>
32+ </span>
33+ </p>
34+ </div>
2635 <?php show_alert_message ($ _SESSION ); ?>
2736 <div class="u-mb20">
2837 <label for="v_cmd" class="form-label"><?= _ ("Command " ) ?> </label>
Original file line number Diff line number Diff line change 2222 <input type="hidden" name="save" value="save">
2323
2424 <div class="form-container form-container-wide">
25- <h1 class="u-mb20"><?= _ ("Edit Cron Job " ) ?> </h1>
25+ <div class="u-side-by-side-tablet u-mb20">
26+ <h1><?= _ ("Edit Cron Job " ) ?> </h1>
27+ <p>
28+ <?= _ ('System time ' ) ?> : <span class="u-text-bold">
29+ <time datetime="<?= date ("c " , $ current_timestamp ) ?> ">
30+ <?= date ("d M Y, H:i " , $ current_timestamp ) ?>
31+ </time>
32+ </span>
33+ </p>
34+ </div>
2635 <?php show_alert_message ($ _SESSION ); ?>
2736 <div class="u-mb20">
2837 <label for="v_cmd" class="form-label"><?= _ ("Command " ) ?> </label>
Original file line number Diff line number Diff line change 4747 </label>
4848 <input type="text" class="form-control" name="v_org" id="v_org" value="<?= htmlentities (trim ($ v_org , "' " )) ?> ">
4949 </div>
50- <div class="u-side-by-side" >
50+ <div>
5151 <button type="submit" class="button" name="generate">
5252 <?= _ ("Generate " ) ?>
5353 </button>
You can’t perform that action at this time.
0 commit comments