mirror of
https://github.com/frappe/books.git
synced 2024-11-10 15:50:56 +00:00
Minor UI Fixes
- Remove top border from Navbar - Link dropdown in Child Table - Form Modal
This commit is contained in:
parent
dc08d8bbbc
commit
f5cdbfa620
@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<div class="frappe-form">
|
||||
<form-actions
|
||||
class="p-3 border-bottom"
|
||||
v-if="shouldRenderForm"
|
||||
:doc="doc"
|
||||
:links="links"
|
||||
@ -8,15 +9,14 @@
|
||||
@submit="submit"
|
||||
@revert="revert"
|
||||
/>
|
||||
<div class="p-3">
|
||||
<form-layout
|
||||
class="p-3"
|
||||
v-if="shouldRenderForm"
|
||||
:doc="doc"
|
||||
:fields="meta.fields"
|
||||
:layout="meta.layout"
|
||||
:invalid="invalid"
|
||||
/>
|
||||
</div>
|
||||
<not-found v-if="notFound" />
|
||||
</div>
|
||||
</template>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="frappe-form-actions d-flex justify-content-between align-items-center p-3 border-bottom">
|
||||
<div class="frappe-form-actions d-flex justify-content-between align-items-center">
|
||||
<h5 class="m-0">{{ title }}</h5>
|
||||
<div class="d-flex">
|
||||
<f-button primary v-if="showSave" :disabled="disableSave" @click="$emit('save')">{{ _('Save') }}</f-button>
|
||||
|
@ -1,15 +1,15 @@
|
||||
<template>
|
||||
<div :class="['modal fade show d-block']"
|
||||
<div :class="['modal fade show d-block']" @click.self="onBackdropClick"
|
||||
tabindex="-1" role="dialog" aria-labelledby="frappe-modal-label" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content shadow">
|
||||
<div class="modal-header">
|
||||
<div class="modal-header" v-if="!noHeader">
|
||||
<h5 class="modal-title">{{ title }}</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close" @click="closeModal">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body modal-height">
|
||||
<div class="modal-body modal-height p-0">
|
||||
<component ref="modalComponent" :is="component" v-bind="props" v-on="events"/>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
@ -39,6 +39,10 @@ export default {
|
||||
},
|
||||
events: {
|
||||
type: Object
|
||||
},
|
||||
noHeader: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@ -47,6 +51,9 @@ export default {
|
||||
},
|
||||
onPrimaryAction() {
|
||||
this.primaryAction.handler(this.$refs.modalComponent);
|
||||
},
|
||||
onBackdropClick(e) {
|
||||
this.closeModal();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -168,5 +168,13 @@ export default {
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.awesomplete > ul {
|
||||
position: fixed;
|
||||
top: auto;
|
||||
left: auto;
|
||||
width: auto;
|
||||
min-width: 120px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<nav class="frappe-navbar navbar navbar-light bg-light row no-gutters border-bottom border-top">
|
||||
<nav class="frappe-navbar navbar navbar-light bg-light row no-gutters border-bottom">
|
||||
<form v-if="showSearch" class="form-inline col-4 pr-3">
|
||||
<input type="text"
|
||||
v-model="searchValue"
|
||||
|
@ -1,4 +1,3 @@
|
||||
import frappe from 'frappejs';
|
||||
import Form from '../components/Form/Form';
|
||||
|
||||
export default function installFormModal(Vue) {
|
||||
@ -19,7 +18,7 @@ export default function installFormModal(Vue) {
|
||||
onClose
|
||||
},
|
||||
modalProps: {
|
||||
title: frappe._('Form Modal')
|
||||
noHeader: true
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user