format business hour table and create response times table style
This commit is contained in:
parent
876109258f
commit
720ba926fa
3 changed files with 203 additions and 155 deletions
|
@ -1284,6 +1284,10 @@ App.Config.set( 'layout_ref/user_list', userListRef, 'Routes' )
|
||||||
|
|
||||||
class slaRef extends App.ControllerContent
|
class slaRef extends App.ControllerContent
|
||||||
|
|
||||||
|
events:
|
||||||
|
'click .js-activateColumn': 'activateColumn'
|
||||||
|
'click .js-activateRow': 'activateRow'
|
||||||
|
|
||||||
constructor: ->
|
constructor: ->
|
||||||
super
|
super
|
||||||
@render()
|
@render()
|
||||||
|
@ -1291,6 +1295,15 @@ class slaRef extends App.ControllerContent
|
||||||
render: ->
|
render: ->
|
||||||
@html App.view('layout_ref/sla')()
|
@html App.view('layout_ref/sla')()
|
||||||
|
|
||||||
|
activateColumn: (event) =>
|
||||||
|
checkbox = @$(event.currentTarget)
|
||||||
|
columnName = checkbox.attr('data-target')
|
||||||
|
@$("[data-column=#{columnName}]").toggleClass('is-active', checkbox.prop('checked'))
|
||||||
|
|
||||||
|
activateRow: (event) =>
|
||||||
|
checkbox = @$(event.currentTarget)
|
||||||
|
checkbox.closest('tr').toggleClass('is-active', checkbox.prop('checked'))
|
||||||
|
|
||||||
App.Config.set( 'layout_ref/sla', slaRef, 'Routes' )
|
App.Config.set( 'layout_ref/sla', slaRef, 'Routes' )
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,9 @@
|
||||||
<h1 class="modal-title">New Service Level Agreement (SLA)</h1>
|
<h1 class="modal-title">New Service Level Agreement (SLA)</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<h2>Define Selector</h2>
|
<h2>Selector</h2>
|
||||||
<p>Create rules that single out the tickets for the Service Level Agreement.</p>
|
<p class="subtle">Create rules that single out the tickets for the Service Level Agreement.</p>
|
||||||
|
<h3>Filters</h3>
|
||||||
<div class="horizontal-filters">
|
<div class="horizontal-filters">
|
||||||
<div class="horizontal-filter">
|
<div class="horizontal-filter">
|
||||||
<div class="horizontal-filter-body">
|
<div class="horizontal-filter-body">
|
||||||
|
@ -19,12 +20,13 @@
|
||||||
<div class="u-positionOrigin">
|
<div class="u-positionOrigin">
|
||||||
<select class="form-control" name="filter_attribute_1">
|
<select class="form-control" name="filter_attribute_1">
|
||||||
<optgroup label="Ticket">
|
<optgroup label="Ticket">
|
||||||
|
<option>Customer</option>
|
||||||
|
<option>Owner</option>
|
||||||
<option>Number</option>
|
<option>Number</option>
|
||||||
<option>Title</option>
|
<option>Title</option>
|
||||||
<option>Group</option>
|
<option>Group</option>
|
||||||
<option>State</option>
|
<option>State</option>
|
||||||
<option>Priority</option>
|
<option>Priority</option>
|
||||||
<option>Owner</option>
|
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup label="Customer">
|
<optgroup label="Customer">
|
||||||
<option>Email</option>
|
<option>Email</option>
|
||||||
|
@ -68,7 +70,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="filter-preview">
|
<div class="filter-preview">
|
||||||
<table class="table table-hover ">
|
<h3>Preview <span class="subtitle">matches <span class="u-highlight">5</span></span></h3>
|
||||||
|
<table class="table table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 28px"></th>
|
<th style="width: 28px"></th>
|
||||||
|
@ -188,7 +191,7 @@
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>Auto Attributes</h2>
|
<!--<h2>Auto Attributes</h2>
|
||||||
<div class="horizontal-filters">
|
<div class="horizontal-filters">
|
||||||
<div class="horizontal-filter">
|
<div class="horizontal-filter">
|
||||||
<div class="horizontal-filter-body">
|
<div class="horizontal-filter-body">
|
||||||
|
@ -277,127 +280,119 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>-->
|
||||||
|
|
||||||
<h2>Schedule</h2>
|
<h2>Schedule</h2>
|
||||||
<h3>Business Hours <span class="subtitle">in European Central Time <a class="btn btn--text btn--subtle" href="#">(change)</a></span></h3>
|
<h3>Business Hours <span class="subtitle">in European Central Time <a class="btn btn--text btn--subtle" href="#">(change)</a></span></h3>
|
||||||
<div class="week">
|
<table class="settings-list settings-list--toggleColumn">
|
||||||
<div class="day">
|
<col class="is-active">
|
||||||
<label class="day-name" for="day-monday">Mo</label>
|
<col class="is-active">
|
||||||
<input class="day-checkbox" type="checkbox" id="day-monday" checked>
|
<col data-colum="wednesday" class="is-active">
|
||||||
<div class="day-times">
|
<col data-colum="thursday" class="is-active">
|
||||||
<div class="form-group">
|
<col data-colum="friday" class="is-active">
|
||||||
|
<col data-colum="saturday">
|
||||||
|
<col data-colum="sunday">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style="text-align: center">
|
||||||
|
<label class="day-name"><input class="js-activateColumn" data-target="monday" type="checkbox" checked> Mo</label>
|
||||||
|
<th style="text-align: center">
|
||||||
|
<label class="day-name"><input class="js-activateColumn" data-target="tuesday" type="checkbox" checked> Tu</label>
|
||||||
|
<th style="text-align: center">
|
||||||
|
<label class="day-name"><input class="js-activateColumn" data-target="wednesday" type="checkbox" checked> We</label>
|
||||||
|
<th style="text-align: center">
|
||||||
|
<label class="day-name"><input class="js-activateColumn" data-target="thursday" type="checkbox" checked> Th</label>
|
||||||
|
<th style="text-align: center">
|
||||||
|
<label class="day-name"><input class="js-activateColumn" data-target="friday" type="checkbox" checked> Fr</label>
|
||||||
|
<th style="text-align: center">
|
||||||
|
<label class="day-name"><input class="js-activateColumn" data-target="saturday" type="checkbox"> Sa</label>
|
||||||
|
<th style="text-align: center">
|
||||||
|
<label class="day-name"><input class="js-activateColumn" data-target="sunday" type="checkbox"> Su</label>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td data-column="monday" class="form-group day-time is-active">
|
||||||
<label for="monday_start_time">from</label>
|
<label for="monday_start_time">from</label>
|
||||||
<input type="time" id="monday_start_time" value="07:00">
|
<input type="time" id="monday_start_time" value="07:00" step="600">
|
||||||
</div>
|
<td data-column="tuesday" class="form-group day-time is-active">
|
||||||
<div class="form-group">
|
|
||||||
<label for="monday_end_time">till</label>
|
|
||||||
<input type="time" id="monday_end_time" value="18:00">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="day">
|
|
||||||
<label class="day-name" for="day-tuesday">Tu</label>
|
|
||||||
<input class="day-checkbox" type="checkbox" id="day-tuesday" checked>
|
|
||||||
<div class="day-times">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="tuesday_start_time">from</label>
|
<label for="tuesday_start_time">from</label>
|
||||||
<input type="time" id="tuesday_start_time" value="07:00">
|
<input type="time" id="tuesday_start_time" value="07:00" step="600">
|
||||||
</div>
|
<td data-column="wednesday" class="form-group day-time is-active">
|
||||||
<div class="form-group">
|
|
||||||
<label for="tuesday_end_time">till</label>
|
|
||||||
<input type="time" id="tuesday_end_time" value="18:00">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="day">
|
|
||||||
<label class="day-name" for="day-wednesday">We</label>
|
|
||||||
<input class="day-checkbox" type="checkbox" id="day-wednesday" checked>
|
|
||||||
<div class="day-times">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="wednesday_start_time">from</label>
|
<label for="wednesday_start_time">from</label>
|
||||||
<input type="time" id="wednesday_start_time" value="07:00">
|
<input type="time" id="wednesday_start_time" value="07:00" step="600">
|
||||||
</div>
|
<td data-column="thursday" class="form-group day-time is-active">
|
||||||
<div class="form-group">
|
|
||||||
<label for="wednesday_end_time">till</label>
|
|
||||||
<input type="time" id="wednesday_end_time" value="18:00">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="day">
|
|
||||||
<label class="day-name" for="day-thursday">Th</label>
|
|
||||||
<input class="day-checkbox" type="checkbox" id="day-thursday" checked>
|
|
||||||
<div class="day-times">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="thursday_start_time">from</label>
|
<label for="thursday_start_time">from</label>
|
||||||
<input type="time" id="thursday_start_time" value="07:00">
|
<input type="time" id="thursday_start_time" value="07:00" step="600">
|
||||||
</div>
|
<td data-column="friday" class="form-group day-time is-active">
|
||||||
<div class="form-group">
|
|
||||||
<label for="thursday_end_time">till</label>
|
|
||||||
<input type="time" id="thursday_end_time" value="18:00">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="day">
|
|
||||||
<label class="day-name" for="day-friday">Fr</label>
|
|
||||||
<input class="day-checkbox" type="checkbox" id="day-friday" checked>
|
|
||||||
<div class="day-times">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="friday_start_time">from</label>
|
<label for="friday_start_time">from</label>
|
||||||
<input type="time" id="friday_start_time" value="07:00">
|
<input type="time" id="friday_start_time" value="07:00" step="600">
|
||||||
</div>
|
<td data-column="saturday" class="form-group day-time">
|
||||||
<div class="form-group">
|
|
||||||
<label for="friday_end_time">till</label>
|
|
||||||
<input type="time" id="friday_end_time" value="13:00">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="day">
|
|
||||||
<label class="day-name" for="day-saturday">Sa</label>
|
|
||||||
<input class="day-checkbox" type="checkbox" id="day-saturday">
|
|
||||||
<div class="day-times">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="saturday_start_time">from</label>
|
<label for="saturday_start_time">from</label>
|
||||||
<input type="time" id="saturday_start_time" value="09:00">
|
<input type="time" id="saturday_start_time" value="09:00" step="600">
|
||||||
</div>
|
<td data-column="sunday" class="form-group day-time">
|
||||||
<div class="form-group">
|
|
||||||
<label for="saturday_end_time">till</label>
|
|
||||||
<input type="time" id="saturday_end_time" value="16:00">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="day">
|
|
||||||
<label class="day-name" for="day-sunday">Su</label>
|
|
||||||
<input class="day-checkbox" type="checkbox" id="day-sunday">
|
|
||||||
<div class="day-times">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="sunday_start_time">from</label>
|
<label for="sunday_start_time">from</label>
|
||||||
<input type="time" id="sunday_start_time">
|
<input type="time" id="sunday_start_time" step="600">
|
||||||
</div>
|
</tr>
|
||||||
<div class="form-group">
|
<tr>
|
||||||
|
<td data-column="monday" class="form-group day-time is-active">
|
||||||
|
<label for="monday_end_time">till</label>
|
||||||
|
<input type="time" id="monday_end_time" value="18:00" step="600">
|
||||||
|
<td data-column="tuesday" class="form-group day-time is-active">
|
||||||
|
<label for="tuesday_end_time">till</label>
|
||||||
|
<input type="time" id="tuesday_end_time" value="18:00" step="600">
|
||||||
|
<td data-column="wednesday" class="form-group day-time is-active">
|
||||||
|
<label for="wednesday_end_time">till</label>
|
||||||
|
<input type="time" id="wednesday_end_time" value="18:00" step="600">
|
||||||
|
<td data-column="thursday" class="form-group day-time is-active">
|
||||||
|
<label for="thursday_end_time">till</label>
|
||||||
|
<input type="time" id="thursday_end_time" value="18:00" step="600">
|
||||||
|
<td data-column="friday" class="form-group day-time is-active">
|
||||||
|
<label for="friday_end_time">till</label>
|
||||||
|
<input type="time" id="friday_end_time" value="13:00" step="600">
|
||||||
|
<td data-column="saturday" class="form-group day-time">
|
||||||
|
<label for="saturday_end_time">till</label>
|
||||||
|
<input type="time" id="saturday_end_time" value="16:00" step="600">
|
||||||
|
<td data-column="sunday" class="form-group day-time">
|
||||||
<label for="sunday_end_time">till</label>
|
<label for="sunday_end_time">till</label>
|
||||||
<input type="time" id="sunday_end_time">
|
<input type="time" id="sunday_end_time" step="600">
|
||||||
</div>
|
</tr>
|
||||||
</div>
|
</tbody>
|
||||||
</div>
|
</table>
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3>Response Times <span class="subtitle">in Business Hours</span></h3>
|
<h3>Response Times <span class="subtitle">in Business Hours</span></h3>
|
||||||
<div>
|
<table class="settings-list settings-list--toggleRow">
|
||||||
<input type="checkbox" checked id="first_response_time">
|
<thead>
|
||||||
<label class="inline-label" for="first_response_time">First Response Time</label>
|
<tr>
|
||||||
<input type="time">
|
<th>Active
|
||||||
</div>
|
<th>Type
|
||||||
<div>
|
<th>Time <span class="text-muted">in hours</span>
|
||||||
<input type="checkbox" checked id="update_time">
|
</tr>
|
||||||
<label class="inline-label" for="update_time">Update Time</label>
|
</thead>
|
||||||
<input type="time">
|
<tbody>
|
||||||
</div>
|
<tr class="is-active">
|
||||||
<div>
|
<td style="text-align: center"><input type="checkbox" checked class="js-activateRow" id="first_response_time">
|
||||||
<input type="checkbox" id="solution_time"> <label
|
<td>
|
||||||
class="inline-label" for="solution_time">Solution Time</label>
|
<label class="inline-label" for="first_response_time">First Response Time</label>
|
||||||
<input type="time">
|
<p class="subtle">Timeframe for the first response.</p>
|
||||||
</div>
|
<td><input type="time" step="600" max="259200">
|
||||||
|
</tr>
|
||||||
|
<tr class="is-active">
|
||||||
|
<td style="text-align: center"><input type="checkbox" checked class="js-activateRow" id="update_time">
|
||||||
|
<td>
|
||||||
|
<label class="inline-label" for="update_time">Update Time</label>
|
||||||
|
<p class="subtle">Timeframe for every following response.</p>
|
||||||
|
<td><input type="time" step="600" max="259200">
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center"><input type="checkbox" id="solution_time" class="js-activateRow">
|
||||||
|
<td>
|
||||||
|
<label class="inline-label" for="solution_time">Solution Time</label>
|
||||||
|
<p class="subtle">Timeframe for solving the problem.</p>
|
||||||
|
<td><input type="time" step="600" max="259200">
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer horizontal">
|
<div class="modal-footer horizontal">
|
||||||
<a class="subtle-link standalone js-cancel" href="#/">Cancel & Go Back</a>
|
<a class="subtle-link standalone js-cancel" href="#/">Cancel & Go Back</a>
|
||||||
|
|
|
@ -28,6 +28,10 @@ body {
|
||||||
p {
|
p {
|
||||||
margin: 14px 0;
|
margin: 14px 0;
|
||||||
color: hsl(60,1%,34%);
|
color: hsl(60,1%,34%);
|
||||||
|
|
||||||
|
&.subtle {
|
||||||
|
color: hsl(60,1%,74%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.u-highlight {
|
.u-highlight {
|
||||||
|
@ -5210,15 +5214,15 @@ label + .wizard-buttonList {
|
||||||
border: 1px solid hsl(198,19%,86%);
|
border: 1px solid hsl(198,19%,86%);
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
border-radius: 5px 5px 0 0;
|
border-radius: 3px 3px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
border-radius: 0 0 5px 5px;
|
border-radius: 0 0 3px 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:only-child {
|
&:only-child {
|
||||||
border-radius: 5px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
& + .horizontal-filter {
|
& + .horizontal-filter {
|
||||||
|
@ -5228,6 +5232,8 @@ label + .wizard-buttonList {
|
||||||
.horizontal-filter-body {
|
.horizontal-filter-body {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.controls,
|
.controls,
|
||||||
|
@ -5250,7 +5256,6 @@ label + .wizard-buttonList {
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-controls {
|
.filter-controls {
|
||||||
margin-left: auto;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
@ -5294,58 +5299,93 @@ label + .wizard-buttonList {
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.week {
|
.day-name {
|
||||||
display: flex;
|
text-align: center;
|
||||||
margin: 0 0 20px;
|
margin-bottom: 0;
|
||||||
|
color: inherit;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.day {
|
.form-group.day-time {
|
||||||
text-align: center;
|
padding: 10px 10px 0;
|
||||||
border: 1px solid hsl(198,19%,86%);
|
|
||||||
|
input {
|
||||||
|
border-left: none;
|
||||||
|
border-right: none;
|
||||||
|
border-radius: 0;
|
||||||
|
margin: 0 -10px;
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.settings-list {
|
||||||
|
border-collapse: separate;
|
||||||
|
|
||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
|
margin-bottom: 34px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.settings-list--toggleRow {
|
||||||
|
tr:not(.is-active) td * {
|
||||||
|
opacity: 0.33;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.settings-list--toggleColumn {
|
||||||
|
td:not(.is-active) * {
|
||||||
|
opacity: 0.33;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
th, td {
|
||||||
|
padding: 10px;
|
||||||
|
border: 1px solid hsl(198,18%,86%);
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
font-weight: normal;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 12px;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
background: hsl(197,20%,93%);
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-muted {
|
||||||
|
text-transform: none;
|
||||||
|
font-size: 10px;
|
||||||
|
letter-spacing: 0;
|
||||||
|
color: hsl(198,18%,72%);
|
||||||
|
}
|
||||||
|
|
||||||
|
th:not(:last-child),
|
||||||
|
td:not(:last-child) {
|
||||||
border-right: none;
|
border-right: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:first-child {
|
tr:not(:last-child) td {
|
||||||
border-radius: 5px 0 0 5px;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:last-child {
|
thead th:first-child {
|
||||||
border-radius: 0 5px 5px 0;
|
border-top-left-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
thead th:last-child {
|
||||||
text-align: center;
|
border-top-right-radius: 3px;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.day-name {
|
tbody tr:last-child td:first-child {
|
||||||
color: hsl(0,0%,33%);
|
border-bottom-left-radius: 3px;
|
||||||
text-transform: none;
|
|
||||||
font-size: 16px;
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.day-checkbox:not(:checked) + .day-times * {
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.day-times {
|
|
||||||
margin-top: 5px;
|
|
||||||
background: hsl(197,20%,93%);
|
|
||||||
|
|
||||||
label {
|
|
||||||
color: hsl(0,0%,60%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group {
|
tbody tr:last-child td:last-child {
|
||||||
padding: 7px;
|
border-bottom-right-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
&:not(:last-child) {
|
|
||||||
padding-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue