URL and Text documents passed in the first submission endpoint #388.
This commit is contained in:
parent
a60b8fbf5e
commit
375fb7d17f
|
@ -32,23 +32,10 @@
|
|||
border-radius: 4px;
|
||||
border: 1px solid rgba(200, 200, 200, 0.3);
|
||||
overflow: hidden; }
|
||||
.wp-block-tainacan-item-submission-form .item-submission-form-placeholder .form-columns {
|
||||
display: flex; }
|
||||
.wp-block-tainacan-item-submission-form .item-submission-form-placeholder .form-columns > div:first-child {
|
||||
padding-right: 4.1666667%; }
|
||||
.wp-block-tainacan-item-submission-form .item-submission-form-placeholder .form-columns > div {
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
flex-basis: 50%; }
|
||||
@media screen and (max-width: 768px) {
|
||||
.wp-block-tainacan-item-submission-form .item-submission-form-placeholder .form-columns {
|
||||
flex-wrap: wrap; }
|
||||
.wp-block-tainacan-item-submission-form .item-submission-form-placeholder .form-columns > div {
|
||||
flex-basis: 100%; } }
|
||||
.wp-block-tainacan-item-submission-form .item-submission-form-placeholder .fake-text {
|
||||
background-color: var(--tainacan-label-color, rgba(200, 200, 200, 0.3));
|
||||
height: 0.2em;
|
||||
width: 24%;
|
||||
width: 15%;
|
||||
min-width: 1.25em;
|
||||
border-radius: 2px;
|
||||
display: inline-block; }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"version": 3,
|
||||
"mappings": "AAEA,uBAAwB;EACpB,MAAM,EAAE,kBAAkB;EAE1B,sDAA+B;IAC3B,WAAW,EAAE,IAAI;IACjB,SAAS,EAAE,OAAO;IAClB,KAAK,EAAE,oCAAmC;;AAGlD,uCAAwC;EACpC,MAAM,EAAE,QAAQ;EAGhB,0DAAmB;IACf,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,GAAG;IACZ,OAAO,EAAE,IAAI;IACb,eAAe,EAAE,MAAM;IACvB,WAAW,EAAE,MAAM;IACnB,KAAK,EAAE,oCAAmC;EAG9C,wDAAiB;IACb,KAAK,EAAE,IAAI;IACX,SAAS,EA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AM;MAEtB,0GAAe;QACX,OAAO,EAAE,IAAI;QACb,cAAc,EAAE,MAAM;QACtB,SAAS,EAAE,MAAM;QAEjB,sHAAY;UACR,KAAK,EAAE,IAAI;UACX,SAAS,EAAE,IAAI;UACf,MAAM,EAAE,gBAAgB;QAE5B,uHAAe;UACX,aAAa,EAAE,sEAAoE;UACnF,aAAa,EAAE,KAAK;IAIhC,sFAAa;MACT,OAAO,EAAE,WAAW;MACpB,OAAO,EAAE,IAAI;MACb,WAAW,EAAE,MAAM;MACnB,eAAe,EAAE,aAAa;MAE9B,mGAAa;QACT,gBAAgB,EAAE,oDAAkD;MAExE,mGAAa;QACT,MAAM,EAAE,KAAK;MAEjB,2GAAqB;QACjB,WAAW,EAAE,IAAI",
|
||||
"sources": ["../../views/gutenberg-blocks/tainacan-items/item-submission-form/item-submission-form.scss"],
|
||||
"names": [],
|
||||
"file": "tainacan-gutenberg-block-item-submission-form.css"
|
||||
|
|
|
@ -326,7 +326,9 @@ export const submitItemSubmission = ({ commit }, { itemSubmission, itemSubmissio
|
|||
let item = JSON.parse(JSON.stringify(itemSubmission)); // Use a copy as the next request will need document, attchment and thumbnail
|
||||
|
||||
for (let key of Object.keys(item)) {
|
||||
if (['document', 'attachments', 'thumbnail'].includes(key) )
|
||||
if (['attachments', 'thumbnail'].includes(key) )
|
||||
delete item[key];
|
||||
else if (key === 'document' && itemSubmission.document_type === 'attachment' )
|
||||
delete item[key];
|
||||
}
|
||||
|
||||
|
@ -350,7 +352,7 @@ export const finishItemSubmission = ({ commit }, { itemSubmission, fakeItemId })
|
|||
const formData = new FormData();
|
||||
|
||||
for (let key of Object.keys(itemSubmission)) {
|
||||
if (['document','thumbnail'].includes(key) )
|
||||
if (key === 'thumbnail' || (key === 'document' && itemSubmission.document_type === 'attachment') )
|
||||
formData.append(key, itemSubmission[key]);
|
||||
else if (key === 'attachments') {
|
||||
for (let i = 0; i < itemSubmission[key].length; i++)
|
||||
|
|
|
@ -548,7 +548,7 @@ registerBlockType('tainacan/item-submission-form', {
|
|||
'--tainacan-secondary': secondaryColor
|
||||
}}
|
||||
class="item-submission-form-placeholder">
|
||||
<div class="form-columns">
|
||||
|
||||
<div>
|
||||
{
|
||||
(!hideFileModalButton || !hideTextModalButton || !hideLinkModalButton) ?
|
||||
|
@ -567,14 +567,7 @@ registerBlockType('tainacan/item-submission-form', {
|
|||
(
|
||||
<div style={{ display: 'flex', flexDirection: 'column' }}>
|
||||
<span class="fake-text section-label"></span>
|
||||
<div class="thumbnail-section">
|
||||
<div
|
||||
style={{
|
||||
backgroundImage: tainacan_plugin ? 'url("' + tainacan_plugin.base_url + '/assets/images/placeholder_square.png")' : ''
|
||||
}}
|
||||
class="fake-image"></div>
|
||||
<span class="fake-button"><span class="fake-icon"></span></span>
|
||||
</div>
|
||||
<div class="fake-switch"><span class="fake-icon"></span><span class="fake-text"></span></div>
|
||||
</div>
|
||||
) : null
|
||||
}
|
||||
|
@ -623,7 +616,7 @@ registerBlockType('tainacan/item-submission-form', {
|
|||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-footer">
|
||||
<span class="fake-text"></span>
|
||||
<span class="fake-button outline"><span class="fake-text"></span></span>
|
||||
|
|
|
@ -42,30 +42,10 @@
|
|||
border: 1px solid rgba(200,200,200, 0.3);
|
||||
overflow: hidden;
|
||||
|
||||
.form-columns {
|
||||
display: flex;
|
||||
|
||||
&>div:first-child {
|
||||
padding-right: 4.1666667%;
|
||||
}
|
||||
&>div {
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
flex-basis: 50%;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
flex-wrap: wrap;
|
||||
&>div {
|
||||
flex-basis: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.fake-text {
|
||||
background-color: var(--tainacan-label-color, rgba(200,200,200, 0.3));
|
||||
height: 0.2em;
|
||||
width: 24%;
|
||||
width: 15%;
|
||||
min-width: 1.25em;
|
||||
border-radius: 2px;
|
||||
display: inline-block;
|
||||
|
|
Loading…
Reference in New Issue