Skip to content

Commit

Permalink
添加返回大学列表
Browse files Browse the repository at this point in the history
  • Loading branch information
zw963 committed Apr 26, 2024
1 parent ee8bc2d commit 6778115
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/universities/edit_page.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ class Universities::EditPage < MainLayout
quick_def page_title, "编辑 #{university.name}"

def content
link "Back to all Universities", Index
br
br

link "返回大学列表", Index

form_for Update.with(university.id) do
mount FormFields, operation
Expand Down
9 changes: 9 additions & 0 deletions src/pages/universities/new_page.cr
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@ class Universities::NewPage < MainLayout
quick_def page_title, "新增学校"

def content
br
br

link "返回大学列表", Index

br

h1 "新学校"

br

form_for Create do
mount FormFields, operation

Expand Down

0 comments on commit 6778115

Please sign in to comment.