Skip to content

Commit 059641c

Browse files
committed
Remove id-s from forms
1 parent 7bfb11f commit 059641c

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

coreui/src/views/notes/CreateNote.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
({{dismissCountDown}}) {{ message }}
1515
</CAlert>
1616

17-
<CInput label="Title" type="text" id="title" placeholder="Title" v-model="note.title"></CInput>
17+
<CInput label="Title" type="text" placeholder="Title" v-model="note.title"></CInput>
1818

19-
<CInput textarea="true" label="Content" id="content" :rows="9" placeholder="Content.." v-model="note.content"></CInput>
19+
<CInput textarea="true" label="Content" :rows="9" placeholder="Content.." v-model="note.content"></CInput>
2020

21-
<CInput label="Applies to date" type="date" id="applies_to_date" v-model="note.applies_to_date"></CInput>
21+
<CInput label="Applies to date" type="date" v-model="note.applies_to_date"></CInput>
2222

23-
<CSelect id="status_id"
23+
<CSelect
2424
label="Status"
2525
:value.sync="note.status_id"
2626
:plain="true"
2727
:options="statuses"
2828
>
2929
</CSelect>
30-
<CInput label="Note type" type="text" id="note_type" v-model="note.note_type"></CInput>
30+
<CInput label="Note type" type="text" v-model="note.note_type"></CInput>
3131

3232
<CButton color="primary" @click="store()">Create</CButton>
3333
<CButton color="primary" @click="goBack">Back</CButton>

coreui/src/views/notes/EditNote.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
>
1414
({{dismissCountDown}}) {{ message }}
1515
</CAlert>
16-
<CInput label="Title" type="text" id="title" placeholder="Title" v-model="note.title"/>
16+
<CInput label="Title" type="text" placeholder="Title" v-model="note.title"/>
1717
<CInput
1818
label="Content"
1919
placeholder="Content.."
@@ -22,15 +22,13 @@
2222
rows="9"
2323
v-model="note.content"
2424
/>
25-
<CInput label="Applies to date" type="date" id="applies_to_date" v-model="note.applies_to_date"/>
25+
<CInput label="Applies to date" type="date" v-model="note.applies_to_date"/>
2626
<CSelect
27-
id="status_id"
2827
:value.sync="note.status_id"
2928
:options="statuses"
3029
label="Status"
3130
/>
32-
<CInput label="Note type" type="text" id="note_type" v-model="note.note_type"></CInput>
33-
31+
<CInput label="Note type" type="text" v-model="note.note_type"/>
3432
<CButton color="primary" @click="update()">Edit</CButton>
3533
<CButton color="primary" @click="goBack">Back</CButton>
3634
</CCardBody>

coreui/src/views/users/EditUser.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
</CAlert>
1717
<b-form-group>
1818
<label for="name">Name</label>
19-
<CInput type="text" id="company" placeholder="Name" v-model="name"></CInput>
19+
<CInput type="text" placeholder="Name" v-model="name"></CInput>
2020
</b-form-group>
2121
<b-form-group>
2222
<label for="email">Email</label>
23-
<CInput type="text" id="email" placeholder="Email" v-model="email"></CInput>
23+
<CInput type="text" placeholder="Email" v-model="email"></CInput>
2424
</b-form-group>
2525

2626
<CButton color="primary" @click="update()">Edit</CButton>

0 commit comments

Comments
 (0)