diff --git a/app/assets/stylesheets/components/buttons.css b/app/assets/stylesheets/components/buttons.css index a0cd22e..da79cec 100644 --- a/app/assets/stylesheets/components/buttons.css +++ b/app/assets/stylesheets/components/buttons.css @@ -11,7 +11,11 @@ .btn-sm { @apply btn; - @apply py-1 px-2 text-sm shadow-sm; + @apply py-1 px-2 text-sm; + } + + .btn-icon { + @apply px-3; } .btn-gray { @@ -28,4 +32,8 @@ @apply bg-red-600 hover:bg-red-700 text-white focus:ring-red-500 focus:ring-opacity-75; } + + input[type=text]:disabled { + @apply text-gray-700; + } } diff --git a/app/controllers/settings/profile_controller.rb b/app/controllers/settings/profile_controller.rb index 23bdee5..645bd20 100644 --- a/app/controllers/settings/profile_controller.rb +++ b/app/controllers/settings/profile_controller.rb @@ -1,6 +1,11 @@ class Settings::ProfileController < SettingsController def index + @user = current_user + end + + def update + end end diff --git a/app/views/icons/_copy.html.erb b/app/views/icons/_copy.html.erb index 4e0b09f..e3e8227 100644 --- a/app/views/icons/_copy.html.erb +++ b/app/views/icons/_copy.html.erb @@ -1 +1 @@ - \ No newline at end of file + diff --git a/app/views/settings/profile/index.html.erb b/app/views/settings/profile/index.html.erb index b6cc307..7a8dd33 100644 --- a/app/views/settings/profile/index.html.erb +++ b/app/views/settings/profile/index.html.erb @@ -3,7 +3,30 @@ <%= render MainWithSidenavComponent.new(sidenav_partial: 'shared/sidenav_settings') do %>

Profile

-

+

+ <%= label :user_address, 'User address', class: 'font-bold' %>

+

+ disabled="disabled" /> + +

+

+ Your user address for Chat and Lightning Network. +

+ + <%# <%= form_for(@user, as: "profile", url: settings_profile_path) do |f| %> + <%#

+ <%# <%= f.submit "Save changes", class: 'btn-md btn-blue w-full sm:w-auto' %> + <%#

+ <%# <% end %>
<% end %> diff --git a/config/routes.rb b/config/routes.rb index 70662af..ef8d65b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -12,6 +12,7 @@ Rails.application.routes.draw do namespace :settings do get 'profile', to: 'profile#index' + post 'profile', to: 'profile#update' get 'account', to: 'account#index' post 'reset_password', to: 'account#reset_password' end