updated import-shifts template
This commit is contained in:
parent
e7d93989d3
commit
8cd984adc5
1 changed files with 4 additions and 6 deletions
|
@ -2,10 +2,8 @@
|
||||||
<div class="col-12 col-md-10 col-xl-8">
|
<div class="col-12 col-md-10 col-xl-8">
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
<%= icon_div @socket, "bi-box-arrow-in-left", [class: "icon baseline"] %>
|
<i class="bi bi-box-arrow-in-left me-1"></i> Import Shifts
|
||||||
Import Shifts
|
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<p class="lead">If you have an iCal/ics formatted calendar hosted elsewhere, provide its URL here to import its events.</p>
|
<p class="lead">If you have an iCal/ics formatted calendar hosted elsewhere, provide its URL here to import its events.</p>
|
||||||
|
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
|
@ -17,7 +15,7 @@
|
||||||
<% valid_class = @url_validated && "is-valid" || "" %>
|
<% valid_class = @url_validated && "is-valid" || "" %>
|
||||||
<%= label iimf, :ics_url, "iCal/ics URL", class: "form-label" %>
|
<%= label iimf, :ics_url, "iCal/ics URL", class: "form-label" %>
|
||||||
<div class="inner-addon left-addon mb-3">
|
<div class="inner-addon left-addon mb-3">
|
||||||
<%= icon_div @socket, "bi-link", [class: "icon is-left text-muted fs-5"] %>
|
<i class="bi bi-link icon is-left text-muted fs-5"></i>
|
||||||
<%= url_input iimf, :ics_url,
|
<%= url_input iimf, :ics_url,
|
||||||
class: show_url_error && "form-control is-invalid" || "form-control #{valid_class}",
|
class: show_url_error && "form-control is-invalid" || "form-control #{valid_class}",
|
||||||
phx_debounce: 500,
|
phx_debounce: 500,
|
||||||
|
@ -33,7 +31,7 @@
|
||||||
|
|
||||||
<%= label iimf, :time_zone, class: "form-label" %>
|
<%= label iimf, :time_zone, class: "form-label" %>
|
||||||
<div class="inner-addon left-addon mb-3">
|
<div class="inner-addon left-addon mb-3">
|
||||||
<%= icon_div @socket, "bi-map", [class: "icon is-left text-muted fs-5"] %>
|
<i class="bi bi-map icon is-left text-muted fs-5"></i>
|
||||||
<%= text_input iimf, :time_zone,
|
<%= text_input iimf, :time_zone,
|
||||||
value: Shift73k.app_time_zone(),
|
value: Shift73k.app_time_zone(),
|
||||||
class: @tz_valid && "form-control" || "form-control is-invalid",
|
class: @tz_valid && "form-control" || "form-control is-invalid",
|
||||||
|
@ -43,7 +41,7 @@
|
||||||
%>
|
%>
|
||||||
<datalist id="tz_list">
|
<datalist id="tz_list">
|
||||||
<%= for tz_name <- Tzdata.zone_list() do %>
|
<%= for tz_name <- Tzdata.zone_list() do %>
|
||||||
<option value="<%= tz_name %>"></option>
|
<option value={tz_name}></option>
|
||||||
<% end %>
|
<% end %>
|
||||||
</datalist>
|
</datalist>
|
||||||
<div class="valid-feedback d-block text-primary">Type to search & select from list of known <%= link "IANA tz database", to: "https://en.wikipedia.org/wiki/List_of_tz_database_time_zones", target: "_blank" %> time zones</div>
|
<div class="valid-feedback d-block text-primary">Type to search & select from list of known <%= link "IANA tz database", to: "https://en.wikipedia.org/wiki/List_of_tz_database_time_zones", target: "_blank" %> time zones</div>
|
Loading…
Reference in a new issue