add custom checkbox to calendar subscriptions
This commit is contained in:
parent
724cf36007
commit
641a9ef59e
1 changed files with 19 additions and 4 deletions
|
@ -22,10 +22,25 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
<% for stateType, options of @preferences: %>
|
<% for stateType, options of @preferences: %>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-transform: capitalize"><%= @translationTable[stateType] %>
|
<td style="text-transform: capitalize">
|
||||||
<td><label class="inline-label"><input type="checkbox" name="<%= stateType %>/own"<%= if options.own then ' checked' %>> <%= @T('own tickets') %></label>
|
<%= @translationTable[stateType] %>
|
||||||
<td><label class="inline-label"><input type="checkbox" name="<%= stateType %>/not_assigned"<%= if options.not_assigned then ' checked' %>> <%= @T('not assigned tickets') %></label>
|
<td>
|
||||||
<td><div class="btn btn--table btn--text js-showLink"><%= @T('Show') %></div><input class="form-control form-control--borderless js-select is-hidden" readonly value="<%= @baseurl %>/ical/tickets/<%= stateType %>">
|
<label class="inline-label checkbox-replacement">
|
||||||
|
<input type="checkbox" name="<%= stateType %>/own"<%= if options.own then ' checked' %>>
|
||||||
|
<%- @Icon('checkbox', 'icon-unchecked') %>
|
||||||
|
<%- @Icon('checkbox-checked', 'icon-checked') %>
|
||||||
|
<span class="label-text"><%= @T('own tickets') %></span>
|
||||||
|
</label>
|
||||||
|
<td>
|
||||||
|
<label class="inline-label checkbox-replacement">
|
||||||
|
<input type="checkbox" name="<%= stateType %>/not_assigned"<%= if options.not_assigned then ' checked' %>>
|
||||||
|
<%- @Icon('checkbox', 'icon-unchecked') %>
|
||||||
|
<%- @Icon('checkbox-checked', 'icon-checked') %>
|
||||||
|
<span class="label-text"><%= @T('not assigned tickets') %></span>
|
||||||
|
</label>
|
||||||
|
<td>
|
||||||
|
<div class="btn btn--table btn--text js-showLink"><%= @T('Show') %></div>
|
||||||
|
<input class="form-control form-control--borderless js-select is-hidden" readonly value="<%= @baseurl %>/ical/tickets/<%= stateType %>">
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in a new issue