forked from External/greenlight
localize views
This commit is contained in:
@ -1,26 +1,26 @@
|
||||
<div class="container mt-8">
|
||||
<%= render "shared/components/subtitle", subtitle: "Settings", search: false %>
|
||||
<%= 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>Account
|
||||
<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>Password
|
||||
<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>Design
|
||||
<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">Errors:</h5>
|
||||
<h5 class="mt-8"><%= t("errors.title") %>:</h5>
|
||||
<ul>
|
||||
<% @user.errors.full_messages.each do |err| %>
|
||||
<li class="text-danger"><%= err %>.</li>
|
||||
@ -35,13 +35,13 @@
|
||||
|
||||
|
||||
<div class="col-lg-9">
|
||||
<%= render "shared/settings/setting_view", setting_id: "account", setting_title: "Update your Account Info" %>
|
||||
<%= 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: "Change your Password" %>
|
||||
<%= 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: "Customize GreenLight" %>
|
||||
<%= render "shared/settings/setting_view", setting_id: "design", setting_title: t("settings.design.subtitle") %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -3,33 +3,33 @@
|
||||
<div class="col col-4 offset-4 mx-auto">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h4 class="mt-2">Create an Account</h4>
|
||||
<h4 class="mt-2"><%= t("signup.subtitle") %></h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<%= form_for @user, url: create_user_path, method: :post do |f| %>
|
||||
<div class="form-group">
|
||||
<%= f.label "Fullname", class: "form-label" %>
|
||||
<%= f.text_field :name, class: "form-control #{form_is_invalid?(@user, :name)}", placeholder: "Fullname" %>
|
||||
<%= f.label t("settings.account.fullname"), class: "form-label" %>
|
||||
<%= f.text_field :name, class: "form-control #{form_is_invalid?(@user, :name)}", placeholder: t("settings.account.fullname") %>
|
||||
<div class="invalid-feedback d-block"><%= @user.errors.full_messages_for(:name).first %></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<%= f.label "Email", class: "form-label" %>
|
||||
<%= f.text_field :email, class: "form-control #{form_is_invalid?(@user, :email)}", placeholder: "Email" %>
|
||||
<%= f.label t("email"), class: "form-label" %>
|
||||
<%= f.text_field :email, class: "form-control #{form_is_invalid?(@user, :email)}", placeholder: t("email") %>
|
||||
<div class="invalid-feedback d-block"><%= @user.errors.full_messages_for(:email).first %></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<%= f.label "Password", class: "form-label" %>
|
||||
<%= f.password_field :password, class: "form-control #{form_is_invalid?(@user, :password)}", placeholder: "Password" %>
|
||||
<%= f.label t("password"), class: "form-label" %>
|
||||
<%= f.password_field :password, class: "form-control #{form_is_invalid?(@user, :password)}", placeholder: t("password") %>
|
||||
<div class="invalid-feedback d-block"><%= @user.errors.full_messages_for(:password).first %></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<%= f.label "Password Confirmation", class: "form-label" %>
|
||||
<%= f.password_field :password_confirmation, class: "form-control #{form_is_invalid?(@user, :password_confirmation)}", placeholder: "Password Confirmation" %>
|
||||
<%= f.label t("signup.password_confirm"), class: "form-label" %>
|
||||
<%= f.password_field :password_confirmation, class: "form-control #{form_is_invalid?(@user, :password_confirmation)}", placeholder: t("signup.password_confirm") %>
|
||||
<div class="invalid-feedback d-block"><%= @user.errors.full_messages_for(:password_confirmation).first %></div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<%= f.submit "Sign up", class: "btn btn-primary float-right ml-2" %>
|
||||
<%= link_to "Cancel", root_path, class: "btn btn-danger float-right ml-2" %>
|
||||
<%= f.submit t("signup.title"), class: "btn btn-primary float-right ml-2" %>
|
||||
<%= link_to t("cancel"), root_path, class: "btn btn-danger float-right ml-2" %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
@ -2,14 +2,14 @@
|
||||
<div class="col-md-8 offset-2">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">Terms and Conditions</h3>
|
||||
<h3 class="card-title"><%= t("terms.title") %></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="terms">
|
||||
<p><%= Rails.configuration.terms %></p>
|
||||
</div>
|
||||
<div class="btn-list mt-4 text-right mt-8">
|
||||
<%= button_to "I accept the terms and conditions.", terms_path, params: {accept: true}, class: "btn btn-primary btn-space" %>
|
||||
<%= button_to t("terms.accept"), terms_path, params: {accept: true}, class: "btn btn-primary btn-space" %>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user