<% /* "Delete thing" modal */ %>
<modal v-if="confirmDeleteThingModalOpen && selectedThing" v-cloak key="delete" @close="closeDeleteThingModal()">
<div class="modal-header">
<h5 class="modal-title">Remove this item?</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span>×</span>
</button>
</div>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Replaces assets/styles/pages/things/available-things.less | |
| #available-things { | |
| .page-header { | |
| text-align: center; | |
| padding-top: 25px; | |
| padding-bottom: 35px; | |
| h1 { | |
| .container-sm(); | |
| font-size: 22px; | |
| font-weight: 900; |
Add click event to header button:
<button class="btn btn-outline-primary" @click="clickAddButton()">Add an item</button>Add modal:
<% /* "Upload thing" modal */ %>
<modal v-if="uploadThingModalOpen" v-cloak key="new" @close="closeUploadThingModal()">
<div class="modal-header">Replace <div class="photo-upload-field"...> and everything inside with:
<div class="photo-upload-field row d-flex align-items-center" :class="!uploadFormData.previewImageSrc ? 'justify-content-center' : 'justify-content-start'" >
<div class="photo-preview col">
<div class="image-wrapper" :class="!uploadFormData.previewImageSrc ? 'd-flex align-items-center justify-content-center' : ''">
<img v-if="uploadFormData.previewImageSrc" alt="A preview of the selected item" :src="uploadFormData.previewImageSrc"/>
<span v-else class="placeholder-icon fa fa-picture-o"></span>
</div>
</div>OlderNewer