Skip to content

Commit

Permalink
#99 [TimeSpent] add: Modal Design
Browse files Browse the repository at this point in the history
  • Loading branch information
eoxia-amandine committed Jan 13, 2023
1 parent be3093d commit 5aff5f6
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 8 deletions.
22 changes: 22 additions & 0 deletions css/dolisirh.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
@charset "UTF-8";
.modal-timespent {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.modal-timespent * {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.modal-timespent .timespent-comment {
width: 100%;
border: 1px solid rgba(0, 0, 0, 0.4);
}
.modal-timespent .timespent-date {
margin-right: 4px;
}
.modal-timespent .timespent-datehour, .modal-timespent .timespent-datemin, .modal-timespent .timespent-hour, .modal-timespent .timespent-min {
max-width: 35px !important;
}
.modal-timespent .modal-footer {
padding-top: 0 !important;
}

/*--------------------------------------------------------------
Module : Dropdown
Version : 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion css/dolisirh.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions css/scss/element/_element.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "modal-timespent";
20 changes: 20 additions & 0 deletions css/scss/element/_modal-timespent.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.modal-timespent {
box-sizing: border-box;
* {
box-sizing: border-box;
}

.timespent-comment {
width: 100%;
border: 1px solid rgba(0,0,0,0.4);
}
.timespent-date {
margin-right: 4px;
}
.timespent-datehour, .timespent-datemin, .timespent-hour, .timespent-min {
max-width: 35px !important;
}
.modal-footer {
padding-top: 0 !important;
}
}
1 change: 1 addition & 0 deletions css/scss/style.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import "element/element";
@import "variable/variable";
@import "module/module";
@import "page/page";
22 changes: 15 additions & 7 deletions view/timespent_month.php
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,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 @@ -697,12 +697,20 @@
<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 Down

0 comments on commit 5aff5f6

Please sign in to comment.