add type=button to button elements
This commit is contained in:
@@ -243,6 +243,7 @@
|
|||||||
Find Workshops
|
Find Workshops
|
||||||
</router-link>
|
</router-link>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
title="Toggle nav"
|
title="Toggle nav"
|
||||||
id="navbar-toggle"
|
id="navbar-toggle"
|
||||||
class="leading-0 ml-4 mr-2 bg-transparent cursor-pointer"
|
class="leading-0 ml-4 mr-2 bg-transparent cursor-pointer"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
autofocus />
|
autofocus />
|
||||||
</template>
|
</template>
|
||||||
<template #footer-space-between>
|
<template #footer-space-between>
|
||||||
<button @click="handleClickCancel">Cancel</button>
|
<button type="button" @click="handleClickCancel">Cancel</button>
|
||||||
<input role="button" type="submit" value="Update" />
|
<input role="button" type="submit" value="Update" />
|
||||||
</template>
|
</template>
|
||||||
</SMFormCard>
|
</SMFormCard>
|
||||||
|
|||||||
@@ -8,11 +8,13 @@
|
|||||||
<p class="mb-4" v-html="props.text"></p>
|
<p class="mb-4" v-html="props.text"></p>
|
||||||
<div class="flex flex-justify-between pt-4">
|
<div class="flex flex-justify-between pt-4">
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="font-medium px-6 py-1.5 rounded-md hover:shadow-md transition text-sm bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
class="font-medium px-6 py-1.5 rounded-md hover:shadow-md transition text-sm bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
||||||
@click="handleClickCancel()">
|
@click="handleClickCancel()">
|
||||||
{{ props.cancel.label }}
|
{{ props.cancel.label }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="font-medium px-6 py-1.5 rounded-md hover:shadow-md transition text-sm bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
class="font-medium px-6 py-1.5 rounded-md hover:shadow-md transition text-sm bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
||||||
@click="handleClickConfirm()">
|
@click="handleClickConfirm()">
|
||||||
{{ props.confirm.label }}
|
{{ props.confirm.label }}
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
@blur="handleSearch">
|
@blur="handleSearch">
|
||||||
<template #append>
|
<template #append>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="font-medium px-4 py-3.1 rounded-r-2 hover:shadow-md transition bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
class="font-medium px-4 py-3.1 rounded-r-2 hover:shadow-md transition bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
||||||
@click="handleSearch">
|
@click="handleSearch">
|
||||||
<svg
|
<svg
|
||||||
@@ -104,6 +105,7 @@
|
|||||||
backgroundImage: `url(${uploadPreview})`,
|
backgroundImage: `url(${uploadPreview})`,
|
||||||
}"></div>
|
}"></div>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
v-if="props.allowUpload"
|
v-if="props.allowUpload"
|
||||||
@click="handleClickSelectFile">
|
@click="handleClickSelectFile">
|
||||||
Select File
|
Select File
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
@blur="handleSearch">
|
@blur="handleSearch">
|
||||||
<template #append
|
<template #append
|
||||||
><button
|
><button
|
||||||
|
type="button"
|
||||||
class="font-medium px-4 py-3.1 rounded-r-2 hover:shadow-md transition bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
class="font-medium px-4 py-3.1 rounded-r-2 hover:shadow-md transition bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
||||||
@click="handleSearch">
|
@click="handleSearch">
|
||||||
<svg
|
<svg
|
||||||
|
|||||||
@@ -83,6 +83,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="mt-4 font-medium px-6 py-1.5 rounded-md hover:shadow-md transition text-sm bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
class="mt-4 font-medium px-6 py-1.5 rounded-md hover:shadow-md transition text-sm bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
||||||
@click="handleClickButton">
|
@click="handleClickButton">
|
||||||
Copy curve
|
Copy curve
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
@keyup.enter="handleSearch">
|
@keyup.enter="handleSearch">
|
||||||
<template #append>
|
<template #append>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="font-medium px-4 py-3.1 rounded-r-2 hover:shadow-md transition bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
class="font-medium px-4 py-3.1 rounded-r-2 hover:shadow-md transition bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
||||||
@click="handleSearch">
|
@click="handleSearch">
|
||||||
<svg
|
<svg
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
@keyup.enter="handleSearch">
|
@keyup.enter="handleSearch">
|
||||||
<template #append>
|
<template #append>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="font-medium px-4 py-3.1 rounded-r-2 hover:shadow-md transition bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
class="font-medium px-4 py-3.1 rounded-r-2 hover:shadow-md transition bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
||||||
@click="handleSearch">
|
@click="handleSearch">
|
||||||
<svg
|
<svg
|
||||||
@@ -60,6 +61,7 @@
|
|||||||
<SMTable :headers="headers" :items="items">
|
<SMTable :headers="headers" :items="items">
|
||||||
<template #item-actions="item">
|
<template #item-actions="item">
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="bg-transparent cursor-pointer hover:text-sky-5"
|
class="bg-transparent cursor-pointer hover:text-sky-5"
|
||||||
title="Edit"
|
title="Edit"
|
||||||
@click="handleEdit(item)">
|
@click="handleEdit(item)">
|
||||||
@@ -73,6 +75,7 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="bg-transparent cursor-pointer hover:text-red-7"
|
class="bg-transparent cursor-pointer hover:text-red-7"
|
||||||
title="Delete"
|
title="Delete"
|
||||||
@click="handleDelete(item)">
|
@click="handleDelete(item)">
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
</SMTabGroup>
|
</SMTabGroup>
|
||||||
</SMColumn>
|
</SMColumn>
|
||||||
</SMRow>
|
</SMRow>
|
||||||
<button @click="loadData">Reload Logs</button>
|
<button type="button" @click="loadData">Reload Logs</button>
|
||||||
</SMContainer>
|
</SMContainer>
|
||||||
</SMPage>
|
</SMPage>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
@keyup.enter="handleSearch">
|
@keyup.enter="handleSearch">
|
||||||
<template #append>
|
<template #append>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="font-medium px-4 py-3.1 rounded-r-2 hover:shadow-md transition bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
class="font-medium px-4 py-3.1 rounded-r-2 hover:shadow-md transition bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
||||||
@click="handleSearch">
|
@click="handleSearch">
|
||||||
<svg
|
<svg
|
||||||
@@ -65,6 +66,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #item-actions="item">
|
<template #item-actions="item">
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="bg-transparent cursor-pointer hover:text-sky-5"
|
class="bg-transparent cursor-pointer hover:text-sky-5"
|
||||||
title="Edit"
|
title="Edit"
|
||||||
@click="handleEdit(item)">
|
@click="handleEdit(item)">
|
||||||
@@ -78,6 +80,7 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="bg-transparent cursor-pointer hover:text-sky-5"
|
class="bg-transparent cursor-pointer hover:text-sky-5"
|
||||||
title="View"
|
title="View"
|
||||||
@click="handleView(item)">
|
@click="handleView(item)">
|
||||||
@@ -91,6 +94,7 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="bg-transparent cursor-pointer hover:text-sky-5"
|
class="bg-transparent cursor-pointer hover:text-sky-5"
|
||||||
title="Duplicate"
|
title="Duplicate"
|
||||||
@click="handleDuplicate(item)">
|
@click="handleDuplicate(item)">
|
||||||
@@ -104,6 +108,7 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="bg-transparent cursor-pointer hover:text-red-7"
|
class="bg-transparent cursor-pointer hover:text-red-7"
|
||||||
title="Delete"
|
title="Delete"
|
||||||
@click="handleDelete(item)">
|
@click="handleDelete(item)">
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
@keyup.enter="handleSearch">
|
@keyup.enter="handleSearch">
|
||||||
<template #append>
|
<template #append>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="font-medium px-4 py-3.1 rounded-r-2 hover:shadow-md transition bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
class="font-medium px-4 py-3.1 rounded-r-2 hover:shadow-md transition bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
||||||
@click="handleSearch">
|
@click="handleSearch">
|
||||||
<svg
|
<svg
|
||||||
@@ -75,6 +76,7 @@
|
|||||||
>
|
>
|
||||||
<template #item-actions="item">
|
<template #item-actions="item">
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="bg-transparent cursor-pointer hover:text-sky-5"
|
class="bg-transparent cursor-pointer hover:text-sky-5"
|
||||||
title="Edit"
|
title="Edit"
|
||||||
@click="handleEdit(item)">
|
@click="handleEdit(item)">
|
||||||
@@ -88,6 +90,7 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="bg-transparent cursor-pointer hover:text-sky-5"
|
class="bg-transparent cursor-pointer hover:text-sky-5"
|
||||||
title="Download"
|
title="Download"
|
||||||
@click="handleDownload(item)">
|
@click="handleDownload(item)">
|
||||||
@@ -101,6 +104,7 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="bg-transparent cursor-pointer hover:text-red-7"
|
class="bg-transparent cursor-pointer hover:text-red-7"
|
||||||
title="Delete"
|
title="Delete"
|
||||||
@click="handleDelete(item)">
|
@click="handleDelete(item)">
|
||||||
@@ -118,15 +122,13 @@
|
|||||||
<div class="align-items-center">
|
<div class="align-items-center">
|
||||||
<div>
|
<div>
|
||||||
<button
|
<button
|
||||||
type="danger"
|
type="button"
|
||||||
label="Delete Selected"
|
|
||||||
:disabled="computedSelectedCount == 0"
|
:disabled="computedSelectedCount == 0"
|
||||||
@click="handleDeleteSelected">
|
@click="handleDeleteSelected">
|
||||||
Delete Selected
|
Delete Selected
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
type="primary"
|
type="button"
|
||||||
label="Edit Selected"
|
|
||||||
:disabled="computedSelectedCount == 0"
|
:disabled="computedSelectedCount == 0"
|
||||||
@click="handleEditSelected">
|
@click="handleEditSelected">
|
||||||
Edit Selected
|
Edit Selected
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
@keyup.enter="handleSearch">
|
@keyup.enter="handleSearch">
|
||||||
<template #append>
|
<template #append>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="font-medium px-4 py-3.1 rounded-r-2 hover:shadow-md transition bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
class="font-medium px-4 py-3.1 rounded-r-2 hover:shadow-md transition bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
||||||
@click="handleSearch">
|
@click="handleSearch">
|
||||||
<svg
|
<svg
|
||||||
@@ -62,6 +63,7 @@
|
|||||||
:items="items">
|
:items="items">
|
||||||
<template #item-actions="item">
|
<template #item-actions="item">
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="bg-transparent cursor-pointer hover:text-sky-5"
|
class="bg-transparent cursor-pointer hover:text-sky-5"
|
||||||
title="Edit"
|
title="Edit"
|
||||||
@click="handleEdit(item)">
|
@click="handleEdit(item)">
|
||||||
@@ -75,6 +77,7 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="bg-transparent cursor-pointer hover:text-sky-5"
|
class="bg-transparent cursor-pointer hover:text-sky-5"
|
||||||
title="Copy Shortlink"
|
title="Copy Shortlink"
|
||||||
@click="handleCopy(item)">
|
@click="handleCopy(item)">
|
||||||
@@ -88,6 +91,7 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="bg-transparent cursor-pointer hover:text-red-7"
|
class="bg-transparent cursor-pointer hover:text-red-7"
|
||||||
title="Delete"
|
title="Delete"
|
||||||
@click="handleDelete(item)">
|
@click="handleDelete(item)">
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<div class="flex flex-justify-between mt-8">
|
<div class="flex flex-justify-between mt-8">
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
v-if="!isCreating"
|
v-if="!isCreating"
|
||||||
class="font-medium px-6 py-1.5 rounded-md hover:shadow-md transition text-sm bg-white border-1 border-sky-500 text-sky-500 cursor-pointer"
|
class="font-medium px-6 py-1.5 rounded-md hover:shadow-md transition text-sm bg-white border-1 border-sky-500 text-sky-500 cursor-pointer"
|
||||||
@click="handleChangePassword">
|
@click="handleChangePassword">
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
@keyup.enter="handleSearch">
|
@keyup.enter="handleSearch">
|
||||||
<template #append>
|
<template #append>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="font-medium px-4 py-3.1 rounded-r-2 hover:shadow-md transition bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
class="font-medium px-4 py-3.1 rounded-r-2 hover:shadow-md transition bg-sky-600 hover:bg-sky-500 text-white cursor-pointer"
|
||||||
@click="handleSearch">
|
@click="handleSearch">
|
||||||
<svg
|
<svg
|
||||||
@@ -59,6 +60,7 @@
|
|||||||
<SMTable :headers="headers" :items="items">
|
<SMTable :headers="headers" :items="items">
|
||||||
<template #item-actions="item">
|
<template #item-actions="item">
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="bg-transparent cursor-pointer hover:text-sky-5"
|
class="bg-transparent cursor-pointer hover:text-sky-5"
|
||||||
title="Edit"
|
title="Edit"
|
||||||
@click="handleEdit(item)">
|
@click="handleEdit(item)">
|
||||||
@@ -72,6 +74,7 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
class="bg-transparent cursor-pointer hover:text-red-7"
|
class="bg-transparent cursor-pointer hover:text-red-7"
|
||||||
title="Delete"
|
title="Delete"
|
||||||
@click="handleDelete(item)">
|
@click="handleDelete(item)">
|
||||||
|
|||||||
Reference in New Issue
Block a user