Change admin announcement edition interface to use datetime-local (#18321)
* Change admin announcement edition interface to use datetime-local * Dynamically set announcement stop date as required if start date is set, set minimum date for stop date * Change `all_day` to not be bound to presence of time-range * Add pattern and placeholder as minimal fallback for browsers not supporting datetime-local * Display datetime-local inputs as local time Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
This commit is contained in:
		
					parent
					
						
							
								10922294ff
							
						
					
				
			
			
				commit
				
					
						d9d722d74b
					
				
			
		
					 5 changed files with 69 additions and 11 deletions
				
			
		|  | @ -405,6 +405,7 @@ code { | |||
|   input[type="email"], | ||||
|   input[type="password"], | ||||
|   input[type="url"], | ||||
|   input[type="datetime-local"], | ||||
|   textarea { | ||||
|     box-sizing: border-box; | ||||
|     font-size: 16px; | ||||
|  | @ -445,7 +446,8 @@ code { | |||
|   input[type="text"], | ||||
|   input[type="number"], | ||||
|   input[type="email"], | ||||
|   input[type="password"] { | ||||
|   input[type="password"], | ||||
|   input[type="datetime-local"] { | ||||
|     &:focus:invalid:not(:placeholder-shown), | ||||
|     &:required:invalid:not(:placeholder-shown) { | ||||
|       border-color: lighten($error-red, 12%); | ||||
|  | @ -461,6 +463,7 @@ code { | |||
|     input[type="number"], | ||||
|     input[type="email"], | ||||
|     input[type="password"], | ||||
|     input[type="datetime-local"], | ||||
|     textarea, | ||||
|     select { | ||||
|       border-color: lighten($error-red, 12%); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue