Skip to content

Commit

Permalink
カード情報・編集ページを削除
Browse files Browse the repository at this point in the history
請求情報ページが代わりにできたので。
  • Loading branch information
komagata committed Apr 18, 2022
1 parent 5a39c88 commit 4b67190
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 161 deletions.
71 changes: 0 additions & 71 deletions app/controllers/card_controller.rb

This file was deleted.

File renamed without changes.
10 changes: 1 addition & 9 deletions app/views/application/_user_menu.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,9 @@
li.header-dropdown__item
= link_to edit_current_user_path, class: 'header-dropdown__item-link' do
| 登録情報変更
- if !current_user.adviser? && !current_user.mentor? && !current_user.trainee?
- if current_user.card?
- if current_user.card?
li.header-dropdown__item
= link_to 'お支払い情報', billing_portal_path, method: :post, class: 'header-dropdown__item-link'
li.header-dropdown__item
= link_to 'クレジットカード情報', card_path, class: 'header-dropdown__item-link'
li.header-dropdown__item
= link_to 'クレジットカード変更', edit_card_path, class: 'header-dropdown__item-link'
- else
li.header-dropdown__item
= link_to 'クレジットカード登録', new_card_path, class: 'header-dropdown__item-link'
li.header-dropdown__item
= link_to logout_path, class: 'header-dropdown__item-link' do
| ログアウト
Expand Down
18 changes: 0 additions & 18 deletions app/views/card/_form.html.slim

This file was deleted.

16 changes: 0 additions & 16 deletions app/views/card/edit.html.slim

This file was deleted.

17 changes: 0 additions & 17 deletions app/views/card/new.html.slim

This file was deleted.

28 changes: 0 additions & 28 deletions app/views/card/show.html.slim

This file was deleted.

2 changes: 1 addition & 1 deletion app/views/users/form/_card.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
br
| プリペイドのクレジットカードは登録できない場合があります。
#card-errors(role='alert')
= render '/card/notice'
= render 'card_notice'
1 change: 0 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
draw :reports
resources :announcements
resource :retirement, only: %i(show new create), controller: "retirement"
resource :card, only: %i(show new create edit update), controller: "card"
resource :current_user, only: %i(edit update), controller: "current_user" do
resource :password, only: %i(edit update), controller: "current_user/password"
end
Expand Down

0 comments on commit 4b67190

Please sign in to comment.