Implemented holiday selector for calendars.
This commit is contained in:
parent
fdea787b2f
commit
fc601e1fce
2 changed files with 39 additions and 0 deletions
|
@ -0,0 +1,6 @@
|
||||||
|
# coffeelint: disable=camel_case_classes
|
||||||
|
class App.UiElement.user_autocompletion_search
|
||||||
|
@render: (attributeOrig) ->
|
||||||
|
attribute = _.clone(attributeOrig)
|
||||||
|
attribute.disableCreateUser = true
|
||||||
|
new App.UserOrganizationAutocompletion( attribute: attribute ).element()
|
33
app/assets/javascripts/app/views/generic/ical_feed.jst.eco
Normal file
33
app/assets/javascripts/app/views/generic/ical_feed.jst.eco
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
<div class="settings-row">
|
||||||
|
<label class="inline-label">
|
||||||
|
<span class="radio-replacement radio-replacement--inline">
|
||||||
|
<input type="radio" name="holiday-radio" value="list" class="js-check js-checkList">
|
||||||
|
<%- @Icon('radio', 'icon-unchecked') %>
|
||||||
|
<%- @Icon('radio-checked', 'icon-checked') %>
|
||||||
|
</span>
|
||||||
|
<%- @T('Subscribe to public holidays in') %>
|
||||||
|
</label>
|
||||||
|
<div class="u-inlineBlock u-positionOrigin">
|
||||||
|
<select class="form-control form-control--small js-list">
|
||||||
|
<option>-</option>
|
||||||
|
<% for url, name of @ical_feeds: %>
|
||||||
|
<option value="<%= url %>" <% if @attribute.value is url: %>selected<%end%>><%- @T(name) %></option>
|
||||||
|
<% end %>
|
||||||
|
</select>
|
||||||
|
<%- @Icon('arrow-down', 'dropdown-arrow') %>
|
||||||
|
</div>
|
||||||
|
<span class="text-small text-muted">(<%- @T('iCalendar links from Google, will get fetched once a day') %>)</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="settings-row">
|
||||||
|
<label class="inline-label">
|
||||||
|
<span class="radio-replacement radio-replacement--inline">
|
||||||
|
<input type="radio" name="holiday-radio" value="manual" class="js-check js-checkManual">
|
||||||
|
<%- @Icon('radio', 'icon-unchecked') %>
|
||||||
|
<%- @Icon('radio-checked', 'icon-checked') %>
|
||||||
|
</span>
|
||||||
|
<%- @T('Subscribe to iCalendar feed') %>
|
||||||
|
</label>
|
||||||
|
<input class="form-control form-control--small form-control--inline js-manual" type="url" placeholder="<%= @attribute.placeholder %>">
|
||||||
|
<input type="hidden" class="js-shadow" name="<%= @attribute.name %>" value="<%= @attribute.value %>">
|
||||||
|
</div>
|
Loading…
Reference in a new issue