mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Fix project card preview select and template select (#23684)
Now user cannot set Card Previews when creating a new project. Before: https://user-images.githubusercontent.com/15528715/227488883-29bbd636-8b98-45b3-b2f8-de5206b045dc.mp4 After: https://user-images.githubusercontent.com/15528715/227488976-3447f252-805a-4f18-ae0e-1cddd921dcc3.mp4
This commit is contained in:
		@@ -38,7 +38,7 @@
 | 
				
			|||||||
							<input type="hidden" name="board_type" value="{{.type}}">
 | 
												<input type="hidden" name="board_type" value="{{.type}}">
 | 
				
			||||||
							<div class="default text">{{.locale.Tr "repo.projects.template.desc_helper"}}</div>
 | 
												<div class="default text">{{.locale.Tr "repo.projects.template.desc_helper"}}</div>
 | 
				
			||||||
							<div class="menu">
 | 
												<div class="menu">
 | 
				
			||||||
								{{range $element := .ProjectTypes}}
 | 
													{{range $element := .BoardTypes}}
 | 
				
			||||||
									<div class="item" data-id="{{$element.BoardType}}" data-value="{{$element.BoardType}}">{{$.locale.Tr $element.Translation}}</div>
 | 
														<div class="item" data-id="{{$element.BoardType}}" data-value="{{$element.BoardType}}">{{$.locale.Tr $element.Translation}}</div>
 | 
				
			||||||
								{{end}}
 | 
													{{end}}
 | 
				
			||||||
							</div>
 | 
												</div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -54,7 +54,7 @@
 | 
				
			|||||||
					<div class="ui selection dropdown">
 | 
										<div class="ui selection dropdown">
 | 
				
			||||||
						{{svg "octicon-triangle-down" 14 "dropdown icon"}}
 | 
											{{svg "octicon-triangle-down" 14 "dropdown icon"}}
 | 
				
			||||||
						{{range $element := .CardTypes}}
 | 
											{{range $element := .CardTypes}}
 | 
				
			||||||
							{{if or (eq $.card_type $element.CardType) (and (not $.card_type) (eq $element.CardType 2))}}
 | 
												{{if or (eq $.card_type $element.CardType) (and (not $.PageIsEditProjects) (eq $element.CardType 1))}}
 | 
				
			||||||
								<input type="hidden" name="card_type" value="{{$element.CardType}}">
 | 
													<input type="hidden" name="card_type" value="{{$element.CardType}}">
 | 
				
			||||||
								<div class="default text">{{$.locale.Tr $element.Translation}}</div>
 | 
													<div class="default text">{{$.locale.Tr $element.Translation}}</div>
 | 
				
			||||||
							{{end}}
 | 
												{{end}}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user