Adds private icon to metadatum and filters list. Adds status icons do their edition form as well.

This commit is contained in:
mateuswetah 2020-03-27 12:25:22 -03:00
parent 2cd9aafec9
commit bb4f48f956
7 changed files with 78 additions and 27 deletions

View File

@ -47,6 +47,7 @@
<b-input
type="textarea"
name="description"
:rows="3"
v-model="editForm.description"
@focus="clearErrors('description')" />
</b-field>
@ -68,6 +69,9 @@
name="status"
v-model="editForm.status"
native-value="publish">
<span class="icon has-text-gray3">
<i class="tainacan-icon tainacan-icon-public"/>
</span>
{{ $i18n.get('publish_visibility') }}
</b-radio>
<br>
@ -77,6 +81,9 @@
name="status"
v-model="editForm.status"
native-value="private">
<span class="icon has-text-gray3">
<i class="tainacan-icon tainacan-icon-private"/>
</span>
{{ $i18n.get('private_visibility') }}
</b-radio>
</div>
@ -325,13 +332,23 @@ export default {
column-count: 2;
column-gap: 4em;
column-rule: none;
padding-bottom: 1.5em;
padding-bottom: 0.5em;
&>.field, &>section {
-webkit-column-break-inside: avoid;
page-break-inside: avoid;
break-inside: avoid;
}
.field > .field:not(:last-child) {
margin-bottom: 0em;
}
.help-wrapper {
font-size: 1.25em;
}
}
.form-submit {
margin-bottom: 0.75em;
}
}

View File

@ -1571,7 +1571,7 @@ export default {
}
.icon {
font-size: 1.125em !important;
color: var(--tainacan-gray3);
color: var(--tainacan-info-color);
}
}
}

View File

@ -48,6 +48,7 @@
<b-input
type="textarea"
name="description"
rows="3"
v-model="editForm.description"
@focus="clearErrors('description')"/>
</b-field>
@ -85,6 +86,9 @@
name="status"
v-model="editForm.status"
native-value="publish">
<span class="icon has-text-gray3">
<i class="tainacan-icon tainacan-icon-public"/>
</span>
{{ $i18n.get('publish_visibility') }}
</b-radio>
</b-field>
@ -95,6 +99,9 @@
name="status"
v-model="editForm.status"
native-value="private">
<span class="icon has-text-gray3">
<i class="tainacan-icon tainacan-icon-private"/>
</span>
{{ $i18n.get('private_visibility') }}
</b-radio>
</b-field>
@ -385,31 +392,43 @@
<style lang="scss" scoped>
form#metadatumEditForm.inCollapse {
padding: 1.5em var(--tainacan-one-column) 0.5em var(--tainacan-one-column);
border-top: 1px solid var(--tainacan-gray2);
border-bottom: 1px solid var(--tainacan-gray2);
margin-top: 1.0em;
font-size: 1.1em;
}
form#metadatumEditForm .options-columns {
-moz-column-count: 2;
-moz-column-gap: 0;
-moz-column-rule: none;
-webkit-column-count: 2;
-webkit-column-gap: 0;
-webkit-column-rule: none;
column-count: 2;
column-gap: 4em;
column-rule: none;
padding-bottom: 1.5em;
form#metadatumEditForm {
&>.field, &>section {
-webkit-column-break-inside: avoid;
page-break-inside: avoid;
break-inside: avoid;
&.inCollapse {
padding: 1.5em var(--tainacan-one-column) 0.5em var(--tainacan-one-column);
border-top: 1px solid var(--tainacan-gray2);
border-bottom: 1px solid var(--tainacan-gray2);
margin-top: 1.0em;
font-size: 1.1em;
}
.options-columns {
-moz-column-count: 2;
-moz-column-gap: 0;
-moz-column-rule: none;
-webkit-column-count: 2;
-webkit-column-gap: 0;
-webkit-column-rule: none;
column-count: 2;
column-gap: 4em;
column-rule: none;
padding-bottom: 0.25em;
&>.field, &>section {
-webkit-column-break-inside: avoid;
page-break-inside: avoid;
break-inside: avoid;
}
.field > .field:not(:last-child) {
margin-bottom: 0em;
}
.help-wrapper {
font-size: 1.25em;
}
}
.form-submit {
margin-bottom: 0.75em;
}
}
</style>

View File

@ -531,7 +531,7 @@
align-items: center;
}
.tainacan-form>.columns {
margin-bottom: 76px;
margin-bottom: var(--tainacan-container-padding);
}
.tainacan-form .column {
padding: 1em var(--tainacan-one-column);

View File

@ -92,6 +92,11 @@
v-if="(editForms[metadatum.id] != undefined && editForms[metadatum.id].saved != true) || metadatum.status == 'auto-draft'">
{{ $i18n.get('info_not_saved') }}
</span>
<span
v-if="metadatum.status == 'private'"
class="icon">
<i class="tainacan-icon tainacan-icon-private"/>
</span>
</span>
<span
class="loading-spinner"

View File

@ -95,6 +95,11 @@
v-if="(editForms[filter.id] != undefined && editForms[filter.id].saved != true) ||filter.status == 'auto-draft'">
{{ $i18n.get('info_not_saved') }}
</span>
<span
v-if="filter.status == 'private'"
class="icon">
<i class="tainacan-icon tainacan-icon-private"/>
</span>
</span>
<span
class="loading-spinner"

View File

@ -113,6 +113,11 @@
v-if="(editForms[metadatum.id] != undefined && editForms[metadatum.id].saved != true) || metadatum.status == 'auto-draft'">
{{ $i18n.get('info_not_saved') }}
</span>
<span
v-if="metadatum.status == 'private'"
class="icon">
<i class="tainacan-icon tainacan-icon-private"/>
</span>
</span>
<span
class="loading-spinner"
@ -593,7 +598,7 @@ export default {
padding-bottom: 0;
.tainacan-page-title {
margin-bottom: 32px;
margin-bottom: 18px;
display: flex;
flex-wrap: wrap;
align-items: flex-end;