Add id attribute to text input fields

This commit is contained in:
Néstor de Dios Fernández
2018-11-16 15:58:46 +01:00
parent 83ca9c2e8c
commit a21b4e73b6
2 changed files with 3 additions and 1 deletions
@@ -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);
+1
View File
@@ -7,6 +7,7 @@
{% block field %}
<editor-text
:id="'{{ id }}'"
:value="{{ value|json_encode() }}"
:name="'{{ name }}'"
:type="'{{ class }}'"