Removed unused field in form (#3023)
This commit is contained in:
		
							parent
							
								
									033ad9a79f
								
							
						
					
					
						commit
						013db70fce
					
				@ -362,10 +362,9 @@ func (f *EditReleaseForm) Validate(ctx *macaron.Context, errs binding.Errors) bi
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// NewWikiForm form for creating wiki
 | 
					// NewWikiForm form for creating wiki
 | 
				
			||||||
type NewWikiForm struct {
 | 
					type NewWikiForm struct {
 | 
				
			||||||
	OldTitle string
 | 
						Title   string `binding:"Required"`
 | 
				
			||||||
	Title    string `binding:"Required"`
 | 
						Content string `binding:"Required"`
 | 
				
			||||||
	Content  string `binding:"Required"`
 | 
						Message string
 | 
				
			||||||
	Message  string
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Validate validates the fields
 | 
					// Validate validates the fields
 | 
				
			||||||
 | 
				
			|||||||
@ -13,12 +13,11 @@
 | 
				
			|||||||
		</div>
 | 
							</div>
 | 
				
			||||||
		<form class="ui form" action="{{.Link}}" method="post">
 | 
							<form class="ui form" action="{{.Link}}" method="post">
 | 
				
			||||||
			{{.CsrfTokenHtml}}
 | 
								{{.CsrfTokenHtml}}
 | 
				
			||||||
			<input type="hidden" name="old_title" value="{{.old_title}}">
 | 
					 | 
				
			||||||
			<div class="field {{if .Err_Title}}error{{end}}">
 | 
								<div class="field {{if .Err_Title}}error{{end}}">
 | 
				
			||||||
				<input name="title" value="{{.title}}" autofocus required>
 | 
									<input name="title" value="{{.title}}" autofocus required>
 | 
				
			||||||
			</div>
 | 
								</div>
 | 
				
			||||||
			<div class="field">
 | 
								<div class="field">
 | 
				
			||||||
				<textarea id="edit_area" name="content" data-id="wiki-{{.old_title}}" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.RepoLink}}/wiki">{{if .PageIsWikiEdit}}{{.content}}{{else}}{{.i18n.Tr "repo.wiki.welcome"}}{{end}}</textarea required>
 | 
									<textarea id="edit_area" name="content" data-id="wiki-{{.title}}" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.RepoLink}}/wiki">{{if .PageIsWikiEdit}}{{.content}}{{else}}{{.i18n.Tr "repo.wiki.welcome"}}{{end}}</textarea required>
 | 
				
			||||||
			</div>
 | 
								</div>
 | 
				
			||||||
			<div class="field">
 | 
								<div class="field">
 | 
				
			||||||
				<input name="message" placeholder="{{.i18n.Tr "repo.wiki.default_commit_message"}}">
 | 
									<input name="message" placeholder="{{.i18n.Tr "repo.wiki.default_commit_message"}}">
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user