Fixes different padding for creation and edition on collection page. Fixes missing i18n for the same page.
This commit is contained in:
parent
5f0e413eca
commit
0dc3b20638
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="page-container">
|
<div class="page-container" :class="{'primary-page' : isNewCollection }">
|
||||||
<b-tag v-if="collection != null && collection != undefined" :type="'is-' + getStatusColor(collection.status)" v-text="collection.status"></b-tag>
|
<b-tag v-if="collection != null && collection != undefined" :type="'is-' + getStatusColor(collection.status)" v-text="collection.status"></b-tag>
|
||||||
<form v-if="collection != null && collection != undefined" class="tainacan-form" label-width="120px">
|
<form v-if="collection != null && collection != undefined" class="tainacan-form" label-width="120px">
|
||||||
|
|
||||||
|
@ -143,6 +143,7 @@ export default {
|
||||||
}],
|
}],
|
||||||
editFormErrors: {},
|
editFormErrors: {},
|
||||||
formErrorMessage: '',
|
formErrorMessage: '',
|
||||||
|
isNewCollection: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -264,6 +265,7 @@ export default {
|
||||||
|
|
||||||
if (this.$route.fullPath.split("/").pop() == "new") {
|
if (this.$route.fullPath.split("/").pop() == "new") {
|
||||||
this.createNewCollection();
|
this.createNewCollection();
|
||||||
|
this.isNewCollection = true;
|
||||||
} else if (this.$route.fullPath.split("/").pop() == "edit") {
|
} else if (this.$route.fullPath.split("/").pop() == "edit") {
|
||||||
|
|
||||||
this.isLoading = true;
|
this.isLoading = true;
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
:type="formErrors['description'] != undefined ? 'is-danger' : ''"
|
:type="formErrors['description'] != undefined ? 'is-danger' : ''"
|
||||||
:message="formErrors['description'] != undefined ? formErrors['description'] : ''">
|
:message="formErrors['description'] != undefined ? formErrors['description'] : ''">
|
||||||
<label class="label">{{$i18n.get('label_description')}} <a class="help-button"><b-icon size="is-small" icon="help-circle-outline"></b-icon>
|
<label class="label">{{$i18n.get('label_description')}} <a class="help-button"><b-icon size="is-small" icon="help-circle-outline"></b-icon>
|
||||||
<!-- <help-tooltip title="Ajuda Gente!" message="Este é um exemplo de mensagem de ajuda. Aqui vai um monte de informações úteis."></help-tooltip> -->
|
<help-tooltip title="Ajuda Gente!" message="Este é um exemplo de mensagem de ajuda. Aqui vai um monte de informações úteis."></help-tooltip>
|
||||||
</a></label>
|
</a></label>
|
||||||
<b-input type="textarea" name="description" v-model="editForm.description" @focus="clearErrors('description')" ></b-input>
|
<b-input type="textarea" name="description" v-model="editForm.description" @focus="clearErrors('description')" ></b-input>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|
|
@ -103,7 +103,8 @@ return [
|
||||||
'label_parent_term' => __('Parent Term', 'tainacan'),
|
'label_parent_term' => __('Parent Term', 'tainacan'),
|
||||||
'label_add_new_term' => __('Add New Term', 'tainacan'),
|
'label_add_new_term' => __('Add New Term', 'tainacan'),
|
||||||
|
|
||||||
/* translators: alkdjklasdj laksjd klsadj */
|
/* translators: alkdjklasdj laksjd klsadj */
|
||||||
|
'title_collection_page' => __( 'Collection Page', 'tainacan' ),
|
||||||
'title_filter_page' => __( 'Filter Page', 'tainacan' ),
|
'title_filter_page' => __( 'Filter Page', 'tainacan' ),
|
||||||
'title_category_page' => __( 'Category Page', 'tainacan' ),
|
'title_category_page' => __( 'Category Page', 'tainacan' ),
|
||||||
'title_term_page' => __( 'Term Page', 'tainacan' ),
|
'title_term_page' => __( 'Term Page', 'tainacan' ),
|
||||||
|
|
Loading…
Reference in New Issue