소스 검색

Fix post edit form action

master
Nano 6 일 전
부모
커밋
c8e4b3de78
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      app/views/Posts/edit.asp
  2. +4
    -0
      core/helpers.asp

+ 1
- 1
app/views/Posts/edit.asp 파일 보기

@@ -4,7 +4,7 @@
<div class="card-body">
<h1 class="h3 mb-4">Edit Post</h1>
<form method="post" action="<%= PostEditUrl(post.PostID) %>">
<form method="post" action="<%= PostUpdateUrl(post.PostID) %>">
<div class="mb-3">
<label class="form-label" for="Title">Title</label>
<input class="form-control" type="text" id="Title" name="Title" value="<%= H(post.Title) %>" required>


+ 4
- 0
core/helpers.asp 파일 보기

@@ -267,6 +267,10 @@ Function PostEditUrl(ByVal postId)
PostEditUrl = "/posts/" & Server.URLEncode(CStr(postId)) & "/edit"
End Function

Function PostUpdateUrl(ByVal postId)
PostUpdateUrl = "/posts/" & Server.URLEncode(CStr(postId))
End Function

Function PostDeleteUrl(ByVal postId)
PostDeleteUrl = "/posts/" & Server.URLEncode(CStr(postId)) & "/delete"
End Function


불러오는 중...
취소
저장

Powered by TurnKey Linux.