SyncMadeEasy/force-app/main/default/aura/ShopifyHeader/ShopifyHeader.cmp

125 lines
7.7 KiB
Plaintext

<aura:component controller="AddDeleteController" implements="home:availableForDesktop" access="GLOBAL">
<aura:attribute name="url" type="String" default =""/>
<aura:attribute name="OpenModel" type="boolean" default="false"/>
<aura:attribute name="ShowForm" type="boolean" default="true"/>
<aura:attribute name="SendingMail" type="boolean" default="true"/>
<aura:attribute name="OrgID" type="String" default=""/>
<aura:attribute name="validity" type="Boolean" default="true"/>
<aura:dependency resource="markup://force:navigateToURL" type="EVENT"/>
<aura:handler name="init" value="this" action="{!c.doinit}"/>
<aura:attribute name="pageReference" type="Object"/>
<aura:attribute name="Issue" type="string" />
<div class="slds-scope">
<div style="margin: 1%;">
<div class="slds-grid slds-gutters">
<div class="slds-col slds-size_2-of-3">
<span>
<div > <a href="https://syncmadeasy.com" target="_blank"><img src="{!$Resource.ShopifyMadeEasyLogo}" style="margin-left: 4%;" height="50"/></a>
</div>
</span>
</div>
<div class="slds-col slds-size_1-of-3" style=" cursor: help !important;">
<span style="cursor: help !important; ">
<P style="float: right;
padding-right: 29px;
font-size: small;
text-align: center;">
<b>Need Help? </b><br/>
<a target="_blank" href= "http://support.syncmadeasy.com" >support.syncmadeasy.com</a><br/>
<a target="_blank" onclick="{!c.ContactSupport}">Contact support</a>
</P>
</span>
</div>
</div>
</div>
</div>
<aura:if isTrue="{!v.OpenModel}">
<div class="slds-m-around_xx-large">
<!--Use aura:if tag to display/hide popup based on isModalOpen value-->
<section role="dialog" tabindex="-1" aria-labelledby="modal-heading-01" aria-modal="true" aria-describedby="modal-content-id-1" class="slds-modal slds-fade-in-open">
<div class="slds-modal__container">
<header class="slds-modal__header">
<lightning:buttonIcon iconName="utility:close"
onclick="{! c.closeModel }"
alternativeText="close"
variant="bare-inverse"
class="slds-modal__close"/>
<h2 id="modal-heading-01" class="slds-text-heading_medium slds-hyphenate"><b>Contact Support</b> <!--lightning:Icon iconName="utility:report_issue"
alternativeText="Support"
/--></h2>
</header>
<!--Modal/Popup Box Body Starts here-->
<div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1">
<p>
<!-- CREATE NEW EXPENSE -->
<div aria-labelledby="newexpenseform">
<!-- BOXED AREA -->
<!-- CREATE NEW EXPENSE FORM -->
<form class="slds-form--stacked">
<aura:if isTrue="{!v.ShowForm}">
<div >
<lightning:textarea class="topText" aura:id="issuevalue" value = "{!v.Issue}" required = "true" name="Issue" label="Issue" placeholder="Please write your issue here.."/>
<center>
<lightning:button label="Submit"
class="slds-m-top--medium"
variant="brand"
onclick="{!c.onSubmit}"/>
</center>
</div>
<aura:set attribute="else">
<center>
<aura:if isTrue="{!v.SendingMail}">
<div style="margin: 4%;">
<img src="{!$Resource.SendingMailTrue}" style="height: 10%; width: 12%;" height="50"/>
<div style=" word-wrap: break-word;">
<P style="font-size: x-large;" ><b>Thank you!</b><br/>
We will get back to you shortly.
</P>
</div>
</div>
<aura:set attribute="else">
<img src="{!$Resource.SendingMailFalse}" style="height: 50%; width: 12%;" height="50"/>
<div style="margin:3%">
<p><b>Issue not sent</b><br/>
<b>Please try again or for more help contact us at </b>
<a target="_Top" href= "https://support.syncmadeasy.com/" ><b> support.syncmadeasy.com</b></a><br/>
</p>
</div>
</aura:set>
</aura:if>
</center>
</aura:set>
</aura:if>
</form>
<!-- / CREATE NEW EXPENSE FORM -->
<!-- / BOXED AREA -->
</div>
<!-- / CREATE NEW EXPENSE -->
</p>
</div>
<!--footer class="slds-modal__footer">
<lightning:button variant="neutral"
label="Cancel"
title="Cancel"
onclick="{!c.closeModel}"/>
<lightning:button variant="brand"
label="OK"
title="OK"
onclick="{!c.deleteRecordsFromDataBase}"/>
</footer-->
</div>
</section>
<div class="slds-backdrop slds-backdrop_open"></div>
</div>
</aura:if>
</aura:component>