Skip to content

Commit

Permalink
#99 [TimeSpent] add: missing update modal timespent
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Jan 13, 2023
1 parent 5aff5f6 commit 42036e1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 0 additions & 4 deletions view/timespent_month.php
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,6 @@
<br/>
<div class="title"><strong><i class="far fa-comment-alt"></i> <?php echo $langs->trans('Comment'); ?></strong></div>
<textarea class="timespent-comment maxwidth100onsmartphone" name="timespent-comment" rows="6"></textarea>

</div>
</div>
<!-- Modal-Footer -->
Expand All @@ -719,9 +718,6 @@
<div class="wpeo-button timespent-create button-green" value="">
<i class="fas fa-save"></i>
</div>
<div class="wpeo-button button-grey modal-close">
<i class="fas fa-times"></i>
</div>
<?php else : ?>
<div class="wpeo-button button-grey wpeo-tooltip-event" aria-label="<?php echo $langs->trans('PermissionDenied') ?>">
<i class="fas fa-save"></i>
Expand Down
24 changes: 14 additions & 10 deletions view/timespent_week.php
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@
<!-- TIMESPENT ADD MODAL -->
<div class="timespent-add-modal">
<div class="wpeo-modal modal-timespent" id="timespent">
<div class="modal-container wpeo-modal-event" style="max-width: 300px; max-height: 250px;">
<div class="modal-container wpeo-modal-event" style="max-width: 400px; max-height: 300px;">
<!-- Modal-Header -->
<div class="modal-header">
<div class="modal-close"><i class="fas fa-times"></i></div>
Expand All @@ -687,12 +687,19 @@
<input type="hidden" class="timespent-taskid" value="">
<input type="hidden" class="timespent-timestamp" value="">
<input type="hidden" class="timespent-cell" value="">
<div class="title"><?php echo $langs->trans('Date') . ' : '; ?><span class="timespent-date"></span></div>
<span><input class="flat maxwidth50 timespent-datehour" type="number" placeholder="H" min="0" max="23"> : <input class="flat maxwidth50 timespent-datemin" type="number" placeholder="mn" min="0" max="59"></span>
<div class="title"><?php echo $langs->trans('Comment'); ?></div>
<textarea class="timespent-comment maxwidth100onsmartphone" name="timespent-comment" rows="4"></textarea>
<div class="title"><?php echo $langs->trans('Duration'); ?></div>
<span><input class="flat maxwidth50 timespent-hour" type="number" placeholder="H" min="0" max="23"> : <input class="flat maxwidth50 timespent-min" type="number" placeholder="mn" min="0" max="59"></span>
<div class="wpeo-gridlayout grid-3">
<div class="gridw-2">
<div class="title"><strong><i class="far fa-calendar-alt"></i> <?php echo $langs->trans('Date'); ?></strong></div>
<span><span class="timespent-date"></span> <input class="flat maxwidth50 timespent-datehour" type="number" placeholder="H" min="0" max="23"> : <input class="flat maxwidth50 timespent-datemin" type="number" placeholder="mn" min="0" max="59"></span>
</div>
<div>
<div class="title"><strong><i class="far fa-clock"></i> <?php echo $langs->trans('Duration'); ?></strong></div>
<span><input class="flat maxwidth50 timespent-hour" type="number" placeholder="H" min="0" max="23"> : <input class="flat maxwidth50 timespent-min" type="number" placeholder="mn" min="0" max="59"></span>
</div>
</div>
<br/>
<div class="title"><strong><i class="far fa-comment-alt"></i> <?php echo $langs->trans('Comment'); ?></strong></div>
<textarea class="timespent-comment maxwidth100onsmartphone" name="timespent-comment" rows="6"></textarea>
</div>
</div>
<!-- Modal-Footer -->
Expand All @@ -701,9 +708,6 @@
<div class="wpeo-button timespent-create button-green" value="">
<i class="fas fa-save"></i>
</div>
<div class="wpeo-button button-grey modal-close">
<i class="fas fa-times"></i>
</div>
<?php else : ?>
<div class="wpeo-button button-grey wpeo-tooltip-event" aria-label="<?php echo $langs->trans('PermissionDenied') ?>">
<i class="fas fa-save"></i>
Expand Down

0 comments on commit 42036e1

Please sign in to comment.