shift73k/lib/shift73k_web/live/user/settings/calendar_url.html.leex

34 lines
1.1 KiB
Text
Raw Normal View History

<div id="<%= @id %>" class="col-12 col-sm-10 col-md-9 col-lg-8 col-xl-7 col-xxl-6 mt-1">
<h3>Calendar URL</h3>
<p><%= @current_user.calendar_slug %></p>
<%= form_for :calendar_slug, "#", [phx_submit: :save, phx_target: @myself], fn csf -> %>
<%= submit "Generate new", class: "btn btn-primary" %>
<% end %>
<%#= form_for :calendar_view, "#", [phx_change: :changed, phx_submit: :save, phx_target: @myself], fn cvf -> %>
<%#= label cvf, :week_start_at, class: "form-label" %>
<%# <div class="inner-addon left-addon mb-3"> %>
<%#= icon_div @socket, "bi-calendar2-range", [class: "icon is-left text-muted fs-5"] %>
<%#= select cvf, :week_start_at, week_start_options(),
value: @current_user.week_start_at,
class: "form-select"
%>
<%# </div> %>
<%# <div class="mb-3"> %>
<%#= submit "Save",
class: "btn btn-primary",
disabled: @form_week_start_at == @current_user.week_start_at,
aria_disabled: (@form_week_start_at == @current_user.week_start_at) && "true" || false,
phx_disable_with: "Saving..."
%>
<%# </div> %>
<%# end %>
</div>