Skip to content
This repository was archived by the owner on Nov 21, 2023. It is now read-only.

Commit f770348

Browse files
committed
realestates_types to realestates_categories
1 parent cbf24cf commit f770348

File tree

9 files changed

+25
-21
lines changed

9 files changed

+25
-21
lines changed

admin/app.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ label + [class*="-DateTimeControl"] {
148148
margin-top: var(--margin) !important;
149149
}
150150
[class*="ControlContainer"] {
151-
clear: left;
151+
clear: both;
152152
}
153153

154154
[class*="-control"] {
@@ -269,6 +269,10 @@ div[id^=documents-field] {
269269
flex-basis: 100%;
270270
}
271271

272+
/* CONTACT FIELD */
273+
[id^=contact-field] {
274+
background-color: var(--lightgrey) !important;
275+
}
272276

273277
/* INFORMATIONS */
274278
[id^=informations-field] {
@@ -337,7 +341,7 @@ div[id^=documents-field] {
337341
margin-right: 2%;
338342
width: 30%;
339343
}
340-
[class*=-ControlContainer]:has([id^=realestates_types]) {
344+
[class*=-ControlContainer]:has([id^=realestates_categories]) {
341345
clear: none;
342346
float: left;
343347
width: 30%;
@@ -443,6 +447,6 @@ aside [href="#/collections/realestates"] span::before {
443447
aside [href="#/collections/realestates_sellers"] span::before {
444448
content: '\F705';
445449
}
446-
aside [href="#/collections/realestates_types"] span::before {
450+
aside [href="#/collections/realestates_categories"] span::before {
447451
content: '\F1A4';
448452
}

admin/app/content/realestates.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { reference } from '../fields/reference.js'
55
import { title } from '../fields/title.js'
66
import { description } from '../fields/description.js'
77
import { realestates_persons } from '../fields/realestates_persons.js'
8-
import { realestates_types } from '../fields/realestates_types.js'
8+
import { realestates_categories } from '../fields/realestates_categories.js'
99
import { offer } from '../fields/offer.js'
1010
import { informations } from '../fields/realestates-informations.js'
1111
import { address } from '../fields/address.js'
@@ -41,7 +41,7 @@ const realestates = {
4141
title,
4242
description,
4343
reference,
44-
realestates_types,
44+
realestates_categories,
4545
realestates_persons,
4646
offer,
4747
informations,

admin/app/content/realestates_types.js renamed to admin/app/content/realestates_categories.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { isNotIndex } from '../fields/is-not-index.js'
22
import { title } from '../fields/title.js'
33
import {t} from "../i18n/translater.js";
44

5-
const realestates_types = {
6-
name: 'realestates_types',
7-
folder: 'content/realestates_types',
8-
label: t.content.realestates_types.label,
9-
label_singular: t.content.realestates_types.label_singular,
10-
description: t.content.realestates_types.description,
5+
const realestates_categories = {
6+
name: 'realestates_categories',
7+
folder: 'content/realestates_categories',
8+
label: t.content.realestates_categories.label,
9+
label_singular: t.content.realestates_categories.label_singular,
10+
description: t.content.realestates_categories.description,
1111

1212
create: true,
1313
editor: { preview: false },
@@ -26,4 +26,4 @@ const realestates_types = {
2626

2727
}
2828

29-
export default realestates_types
29+
export default realestates_categories

admin/app/fields/realestates_types.js renamed to admin/app/fields/realestates_categories.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import {t} from "../i18n/translater.js";
22

3-
export const realestates_types = {
4-
name: 'realestates_types',
5-
label: t.fields.realestates_types,
3+
export const realestates_categories = {
4+
name: 'realestates_categories',
5+
label: t.fields.realestates_categories,
66
widget: 'relation',
7-
collection: 'realestates_types',
7+
collection: 'realestates_categories',
88
search_fields: ['title'],
99
value_field: 'title',
1010
display_fields: ['title'],

admin/app/i18n/en/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const content = {
8181
label_singular: "Vendeur",
8282
description: "All sellers"
8383
},
84-
realestates_types: {
84+
realestates_categories: {
8585
label: "Types of real estate",
8686
label_singular: "Type",
8787
description: "All real estate types"

admin/app/i18n/en/fields.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ export const fields = {
262262
hint: "Several persons possible"
263263
},
264264
realestates_sellers: "Seller",
265-
realestates_types: "Type of property",
265+
realestates_categories: "Type of property",
266266
realestates_status: {
267267
label: "Status",
268268
hint: "e.g.: Consult us",

admin/app/i18n/fr/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const content = {
8181
label_singular: "Vendeur",
8282
description: "Tous les vendeurs"
8383
},
84-
realestates_types: {
84+
realestates_categories: {
8585
label: "Types d’annonce",
8686
label_singular: "Type",
8787
description: "Tous les types d’annonce"

admin/app/i18n/fr/fields.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export const fields = {
265265
label: "Statut",
266266
hint: "ex: Nous consulter",
267267
},
268-
realestates_types: "Type de bien",
268+
realestates_categories: "Type de bien",
269269
reference: "Référence",
270270
section: "Type de section",
271271
show_color: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hugolify-netlify-cms",
3-
"version": "1.5.3",
3+
"version": "1.6.0",
44
"homepage": "https://www.hugolify.io",
55
"repository": "https://github.com/hugolify/hugolify-netlify-cms",
66
"bugs": {

0 commit comments

Comments
 (0)