Skip to content
Snippets Groups Projects
Unverified Commit 7f708cd6 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

Merge branch 'main' of github.com:noesya/osuny

parents 7edbd4a4 08833d79
No related branches found
No related tags found
No related merge requests found
......@@ -36,4 +36,12 @@
</div>
</div>
<%= submit f %>
<% end %>
\ No newline at end of file
<% if current_user.visitor? %>
<%# we don't want the osuny priviledged account to be able to get deleted through extranet %>
<h3 class="mt-5 mb-4"><%= t("devise.registrations.edit.cancel_my_account") %></h3>
<p><%= t("devise.registrations.edit.unhappy") %> <%= link_to t("devise.registrations.edit.cancel_my_account"), registration_path(current_user), data: { confirm: t("devise.registrations.edit.are_you_sure") }, method: :delete %></p>
<% end %>
<% end %>
......@@ -12,7 +12,9 @@
</div>
</div>
<div class="col-lg-6">
<%= f.association :organization, include_blank: false %>
<%= f.association :organization,
include_blank: false,
collection: current_extranet.organizations.ordered %>
</div>
</div>
<%= submit f %>
......
......@@ -53,7 +53,7 @@
<div class="col-md-3">
<dl>
<dt><%= University::Organization.human_attribute_name(:kind) %></dt>
<dd><%= @organization.kind %></dd>
<dd><%= @organization.kind_i18n %></dd>
<% if @organization.phone.present? %>
<dt><%= University::Organization.human_attribute_name(:phone) %></dt>
<dd><a href="tel:<%= @organization.phone %>" target="_blank" rel="noreferrer"><%= @organization.phone %></a></dd>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment