Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve appointment booking modal #3659

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions src/components/Appointments/AppointmentDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,16 @@
<span class="booking__time">{{ startTime }} - {{ endTime }}</span>
</div>
<div class="appointment-details">
<h2>{{ $t('calendar', 'Enter details') }}</h2>
<div>
{{ $t('calendar', 'Name') }}
{{ $t('calendar', 'Your name') }}
</div>
<input id="name"
v-model="name"
type="text"
class="no-close"
required>
<div>
{{ $t('calendar', 'Email') }}
{{ $t('calendar', 'Your email address') }}
</div>
<input ref="email"
v-model="email"
Expand All @@ -45,6 +44,7 @@
<textarea
id="biography"
v-model="description"
v-autosize="true"
rows="8"
autocapitalize="none"
autocomplete="off" />
Expand All @@ -61,6 +61,7 @@
<script>
import Avatar from '@nextcloud/vue/dist/Components/Avatar'
import Modal from '@nextcloud/vue/dist/Components/Modal'
import autosize from '../../directives/autosize'

import { timeStampToLocaleTime } from '../../utils/localeTime'

Expand All @@ -70,6 +71,9 @@ export default {
Avatar,
Modal,
},
directives: {
autosize,
},
props: {
config: {
required: true,
Expand Down Expand Up @@ -122,22 +126,25 @@ export default {
height: calc(100vh - 120px) !important;
max-width: 600px !important;
max-height: 500px !important;
overflow: auto !important;
}

.booking-appointment-details {
display: flex;
flex-direction: row;
padding: 30px;
}

.booking-details {
padding-left: 30px;
padding-top: 80px;
white-space: nowrap;
}

.appointment-details {
padding-left: 120px;
padding-top: 40px;

input {
width: 100%;
}
}

.add-guest {
Expand All @@ -146,15 +153,12 @@ export default {
background-color: transparent;
}

.meeting-info {
padding-right: 10px;
}

.meeting-text {
display: grid;
align-items: center;

textarea {
display: block;
resize: vertical;
grid-area: 1 / 1;
width: 100%;
Expand Down