-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added buttons types and convert to formdata
- Loading branch information
Showing
8 changed files
with
112 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 31 additions & 1 deletion
32
stubs/interface/resources/js/components/Messenger/Template/Forms/Buttons/Url.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,33 @@ | ||
<template> | ||
|
||
<div class="flex gap-2 w-full"> | ||
<div class="form-control w-1/3"> | ||
<label for="name">Tipo de acción</label> | ||
<select v-model="field.type" class="select select-bordered w-full"> | ||
<option value="URL">Ir al sitio web</option> | ||
</select> | ||
</div> | ||
<div class="form-control w-1/3"> | ||
<label for="name">Texto del botón</label> | ||
<input v-model="field.text" id="header-text" type="text" class="input input-bordered w-full" /> | ||
</div> | ||
<div class="form-control w-1/3"> | ||
<label for="name">Tipo de url</label> | ||
<select v-model="field.isDynamic" class="select select-bordered w-full"> | ||
<option selected :value="false">Estática</option> | ||
<option :value="true">Dinámica</option> | ||
</select> | ||
</div> | ||
<div class="form-control w-1/3"> | ||
<label for="name">Url del sitio web</label> | ||
<input v-model="field.url" id="header-text" type="text" class="input input-bordered w-full" /> | ||
</div> | ||
</div> | ||
</template> | ||
<script setup> | ||
const props = defineProps({ | ||
field: { | ||
type: Object, | ||
required: true | ||
} | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters