mirror of
https://github.com/jbcr/core.git
synced 2026-04-24 09:08:08 +02:00
Add id attribute to text input fields
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<input
|
||||
:id="id"
|
||||
class="form-control"
|
||||
:class="getType"
|
||||
:name="name"
|
||||
@@ -17,7 +18,7 @@ import field from '../../../mixins/value';
|
||||
|
||||
export default {
|
||||
name: "editor-text",
|
||||
props: ['value', 'label', 'name', 'type', 'disabled'],
|
||||
props: ['value', 'label', 'name', 'type', 'disabled', 'id'],
|
||||
mixins: [field],
|
||||
mounted() {
|
||||
this.$root.$on('generate-from-title', data => this.generate = data);
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
{% block field %}
|
||||
<editor-text
|
||||
:id="'{{ id }}'"
|
||||
:value="{{ value|json_encode() }}"
|
||||
:name="'{{ name }}'"
|
||||
:type="'{{ class }}'"
|
||||
|
||||
Reference in New Issue
Block a user