mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	enhance(client): 🎨 gallery/:id/edit
This commit is contained in:
		
							parent
							
								
									44ba2fd7cb
								
							
						
					
					
						commit
						b8b91b39f4
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		| 
						 | 
					@ -2,7 +2,7 @@
 | 
				
			||||||
<MkStickyContainer>
 | 
					<MkStickyContainer>
 | 
				
			||||||
	<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
 | 
						<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
 | 
				
			||||||
	<MkSpacer :content-max="800" :margin-min="16" :margin-max="32">
 | 
						<MkSpacer :content-max="800" :margin-min="16" :margin-max="32">
 | 
				
			||||||
		<FormSuspense :p="init">
 | 
							<FormSuspense :p="init" class="_gaps">
 | 
				
			||||||
			<MkInput v-model="title">
 | 
								<MkInput v-model="title">
 | 
				
			||||||
				<template #label>{{ i18n.ts.title }}</template>
 | 
									<template #label>{{ i18n.ts.title }}</template>
 | 
				
			||||||
			</MkInput>
 | 
								</MkInput>
 | 
				
			||||||
| 
						 | 
					@ -11,7 +11,7 @@
 | 
				
			||||||
				<template #label>{{ i18n.ts.description }}</template>
 | 
									<template #label>{{ i18n.ts.description }}</template>
 | 
				
			||||||
			</MkTextarea>
 | 
								</MkTextarea>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			<div class="">
 | 
								<div class="_gaps_s">
 | 
				
			||||||
				<div v-for="file in files" :key="file.id" class="wqugxsfx" :style="{ backgroundImage: file ? `url(${ file.thumbnailUrl })` : null }">
 | 
									<div v-for="file in files" :key="file.id" class="wqugxsfx" :style="{ backgroundImage: file ? `url(${ file.thumbnailUrl })` : null }">
 | 
				
			||||||
					<div class="name">{{ file.name }}</div>
 | 
										<div class="name">{{ file.name }}</div>
 | 
				
			||||||
					<button v-tooltip="i18n.ts.remove" class="remove _button" @click="remove(file)"><i class="ti ti-x"></i></button>
 | 
										<button v-tooltip="i18n.ts.remove" class="remove _button" @click="remove(file)"><i class="ti ti-x"></i></button>
 | 
				
			||||||
| 
						 | 
					@ -21,10 +21,12 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			<MkSwitch v-model="isSensitive">{{ i18n.ts.markAsSensitive }}</MkSwitch>
 | 
								<MkSwitch v-model="isSensitive">{{ i18n.ts.markAsSensitive }}</MkSwitch>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			<MkButton v-if="postId" primary @click="save"><i class="ti ti-device-floppy"></i> {{ i18n.ts.save }}</MkButton>
 | 
								<div class="_buttons">
 | 
				
			||||||
			<MkButton v-else primary @click="save"><i class="ti ti-device-floppy"></i> {{ i18n.ts.publish }}</MkButton>
 | 
									<MkButton v-if="postId" primary @click="save"><i class="ti ti-device-floppy"></i> {{ i18n.ts.save }}</MkButton>
 | 
				
			||||||
 | 
									<MkButton v-else primary @click="save"><i class="ti ti-device-floppy"></i> {{ i18n.ts.publish }}</MkButton>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			<MkButton v-if="postId" danger @click="del"><i class="ti ti-trash"></i> {{ i18n.ts.delete }}</MkButton>
 | 
									<MkButton v-if="postId" danger @click="del"><i class="ti ti-trash"></i> {{ i18n.ts.delete }}</MkButton>
 | 
				
			||||||
 | 
								</div>
 | 
				
			||||||
		</FormSuspense>
 | 
							</FormSuspense>
 | 
				
			||||||
	</MkSpacer>
 | 
						</MkSpacer>
 | 
				
			||||||
</MkStickyContainer>
 | 
					</MkStickyContainer>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue