forked from External/greenlight
48 lines
1.8 KiB
Plaintext
48 lines
1.8 KiB
Plaintext
<div class="container mt-8">
|
|
<%= render "shared/components/subtitle", subtitle: t("settings.title"), search: false %>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-3 mb-4">
|
|
<div class="list-group list-group-transparent mb-0">
|
|
<button id="account" class="list-group-item list-group-item-action setting-btn active">
|
|
<span class="icon mr-3"><i class="fas fa-user"></i></span><%= t("settings.account.title") %>
|
|
</button>
|
|
|
|
<% if @user.social_uid.nil? %>
|
|
<button id="password" class="list-group-item list-group-item-action setting-btn">
|
|
<span class="icon mr-3"><i class="fas fa-lock"></i></span><%= t("settings.password.title") %>
|
|
</button>
|
|
<% end %>
|
|
|
|
<button id="design" class="list-group-item list-group-item-action setting-btn">
|
|
<span class="icon mr-3"><i class="fas fa-edit"></i></span><%= t("settings.design.title") %>
|
|
</button>
|
|
</div>
|
|
|
|
<% if @user.errors.any? %>
|
|
<h5 class="mt-8"><%= t("errors.title") %>:</h5>
|
|
<ul>
|
|
<% @user.errors.full_messages.each do |err| %>
|
|
<li class="text-danger"><%= err %>.</li>
|
|
<% end %>
|
|
</ul>
|
|
<% end %>
|
|
|
|
<div class="mt-8">
|
|
<%= render 'shared/flash_messages' unless flash.empty? %>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col-lg-9">
|
|
<%= render "shared/settings/setting_view", setting_id: "account", setting_title: t("settings.account.subtitle") %>
|
|
|
|
<% if @user.social_uid.nil? %>
|
|
<%= render "shared/settings/setting_view", setting_id: "password", setting_title: t("settings.password.subtitle") %>
|
|
<% end %>
|
|
|
|
<%= render "shared/settings/setting_view", setting_id: "design", setting_title: t("settings.design.subtitle") %>
|
|
</div>
|
|
</div>
|
|
</div>
|