-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a7bbebd
Showing
180 changed files
with
86,166 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{include file="$template/includes/alert.tpl" type="info" msg="{lang key='creditcard3dsecure'}" textcenter=true} | ||
|
||
<div class="card"> | ||
<div class="card-body text-center"> | ||
<div id="frmThreeDAuth" class="w-hidden"> | ||
{$code} | ||
</div> | ||
|
||
<iframe name="3dauth" height="500" scrolling="auto" src="about:blank" class="submit-3d p-3"></iframe> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
jQuery("#frmThreeDAuth").find("form:first").attr('target', '3dauth'); | ||
setTimeout("autoSubmitFormByContainer('frmThreeDAuth')", 1000); | ||
</script> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<div class="text-center"> | ||
<div class="card py-3"> | ||
<div class="card-body"> | ||
<h1>{lang key='oops'}!</h1> | ||
<div class="pb-2">{lang key='subaccountpermissiondenied'}</div> | ||
{if !empty($allowedpermissions)} | ||
<div>{lang key='subaccountallowedperms'}</div> | ||
<div class="list-group list-group-flush"> | ||
{foreach $allowedpermissions as $permission} | ||
<div class="list-group-item">{$permission}</div> | ||
{/foreach} | ||
</div> | ||
{/if} | ||
<div>{lang key='subaccountcontactmaster'}</div> | ||
</div> | ||
<div class="buttons pt-2 pb-4"> | ||
<a href="javascript:history.go(-1)" class="btn btn-primary"> | ||
<i class="fas fa-arrow-circle-left"></i> | ||
{lang key='goback'} | ||
</a> | ||
<a href="index.php" class="btn btn-default"> | ||
<i class="fas fa-home"></i> | ||
{lang key='returnhome'} | ||
</a> | ||
</div> | ||
</div> | ||
</div> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
<script src="{$BASE_PATH_JS}/StatesDropdown.js"></script> | ||
|
||
<div class="alert alert-block alert-info"> | ||
<form role="form" method="post" action="{routePath('account-contacts')}"> | ||
<div class="row"> | ||
<label for="inputContactId" class="col-md-3 col-form-label">{lang key='clientareachoosecontact'}</label> | ||
<div class="col-md-6"> | ||
<select name="contactid" id="inputContactId" onchange="submit()" class="form-control custom-select"> | ||
{foreach $contacts as $contact} | ||
<option value="{$contact.id}"{if $contact.id eq $contactid} selected="selected"{/if}>{$contact.name} - {$contact.email}</option> | ||
{/foreach} | ||
<option value="new">{lang key='clientareanavaddcontact'}</option> | ||
</select> | ||
</div> | ||
<div class="col-md-2 mt-2 mt-md-0"> | ||
<button type="submit" class="btn btn-default btn-block">{lang key='go'}</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
<div class="card"> | ||
<div class="card-body"> | ||
|
||
<h3 class="card-title">{lang key="contactDetails"}</h3> | ||
|
||
{include file="$template/includes/flashmessage.tpl"} | ||
{if $errorMessageHtml} | ||
{include file="$template/includes/alert.tpl" type="error" errorshtml=$errorMessageHtml} | ||
{/if} | ||
|
||
<form role="form" method="post" action="{routePath('account-contacts-save')}"> | ||
<input type="hidden" name="contactid" value="{$contactid}" /> | ||
|
||
<div class="row"> | ||
<div class="col-md-6"> | ||
|
||
<div class="form-group"> | ||
<label for="inputFirstName" class="col-form-label">{lang key='clientareafirstname'}</label> | ||
<input type="text" name="firstname" id="inputFirstName" value="{$formdata.firstname}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputLastName" class="col-form-label">{lang key='clientarealastname'}</label> | ||
<input type="text" name="lastname" id="inputLastName" value="{$formdata.lastname}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputCompanyName" class="col-form-label">{lang key='clientareacompanyname'}</label> | ||
<input type="text" name="companyname" id="inputCompanyName" value="{$formdata.companyname}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputEmail" class="col-form-label">{lang key='clientareaemail'}</label> | ||
<input type="email" name="email" id="inputEmail" value="{$formdata.email}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputPhone" class="col-form-label">{lang key='clientareaphonenumber'}</label> | ||
<input type="tel" name="phonenumber" id="inputPhone" value="{$formdata.phonenumber}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputTaxId" class="col-form-label">{lang key=$taxIdLabel}</label> | ||
<input type="text" name="tax_id" id="inputTaxId" class="form-control" value="{$formdata.tax_id}" /> | ||
</div> | ||
|
||
</div> | ||
<div class="col-md-6 col-12 float-right"> | ||
|
||
<div class="form-group"> | ||
<label for="inputAddress1" class="col-form-label">{lang key='clientareaaddress1'}</label> | ||
<input type="text" name="address1" id="inputAddress1" value="{$formdata.address1}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputAddress2" class="col-form-label">{lang key='clientareaaddress2'}</label> | ||
<input type="text" name="address2" id="inputAddress2" value="{$formdata.address2}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputCity" class="col-form-label">{lang key='clientareacity'}</label> | ||
<input type="text" name="city" id="inputCity" value="{$formdata.city}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputState" class="col-form-label">{lang key='clientareastate'}</label> | ||
<input type="text" name="state" id="inputState" value="{$formdata.state}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputPostcode" class="col-form-label">{lang key='clientareapostcode'}</label> | ||
<input type="text" name="postcode" id="inputPostcode" value="{$formdata.postcode}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="col-form-label" for="country">{lang key='clientareacountry'}</label> | ||
{$countriesdropdown} | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
<div class="card"> | ||
<div class="card-body"> | ||
|
||
<h3 class="card-title">{lang key='clientareacontactsemails'}</h3> | ||
<div class="controls form-check"> | ||
{foreach $formdata.emailPreferences as $emailType => $value} | ||
<label> | ||
<input type="hidden" name="email_preferences[{$emailType}]" value="0"> | ||
<input type="checkbox" class="form-check-input" name="email_preferences[{$emailType}]" id="{$emailType}emails" value="1"{if $value} checked="checked"{/if} /> | ||
{lang key="clientareacontactsemails"|cat:$emailType} | ||
</label>{if !($emailType@last)}<br />{/if} | ||
{/foreach} | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
<div class="form-group text-center"> | ||
<input class="btn btn-primary" type="submit" name="save" value="{lang key='clientareasavechanges'}" /> | ||
<input class="btn btn-default" type="reset" value="{lang key='cancel'}" /> | ||
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#modalDeleteContact">{lang key='clientareadeletecontact'}</button> | ||
</div> | ||
|
||
</form> | ||
|
||
<form method="post" action="{routePath('account-contacts-delete')}"> | ||
<input type="hidden" name="contactid" value="{$contactid}"> | ||
<div class="modal fade" id="modalDeleteContact"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header card-header"> | ||
<h4 class="modal-title"> | ||
{lang key="clientareadeletecontact"} | ||
</h4> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | ||
</div> | ||
<div class="modal-body"> | ||
<p>{lang key="clientareadeletecontactareyousure"}</p> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-default" data-dismiss="modal"> | ||
{lang key="cancel"} | ||
</button> | ||
<button type="submit" class="btn btn-primary" id="btnCancelInviteConfirm"> | ||
{lang key="confirm"} | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</form> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
{if $errorMessageHtml} | ||
{include file="$template/includes/alert.tpl" type="error" errorshtml=$errorMessageHtml} | ||
{/if} | ||
|
||
<script> | ||
var stateNotRequired = true; | ||
jQuery(document).ready(function() { | ||
WHMCS.form.register(); | ||
}); | ||
</script> | ||
<script src="{$BASE_PATH_JS}/StatesDropdown.js"></script> | ||
|
||
<div class="alert alert-block alert-info"> | ||
<form role="form" method="post" action="{routePath('account-contacts')}"> | ||
<div class="row"> | ||
<label for="inputContactId" class="col-md-3 col-form-label">{lang key='clientareachoosecontact'}</label> | ||
<div class="col-md-6"> | ||
<select name="contactid" id="inputContactId" onchange="submit()" class="form-control custom-select"> | ||
{foreach $contacts as $contact} | ||
<option value="{$contact.id}">{$contact.name} - {$contact.email}</option> | ||
{/foreach} | ||
<option value="new" selected="selected">{lang key='clientareanavaddcontact'}</option> | ||
</select> | ||
</div> | ||
<div class="col-md-2"> | ||
<button type="submit" class="btn btn-default btn-block mt-2 mt-md-0">{lang key='go'}</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
<div class="card"> | ||
<div class="card-body"> | ||
|
||
<h3 class="card-title">{lang key='clientareanavaddcontact'}</h3> | ||
|
||
<form role="form" method="post" action="{routePath('account-contacts-new')}"> | ||
|
||
<div class="row"> | ||
<div class="col-md-6"> | ||
|
||
<div class="form-group"> | ||
<label for="inputFirstName" class="col-form-label">{lang key='clientareafirstname'}</label> | ||
<input type="text" name="firstname" id="inputFirstName" value="{$formdata.firstname}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputLastName" class="col-form-label">{lang key='clientarealastname'}</label> | ||
<input type="text" name="lastname" id="inputLastName" value="{$formdata.lastname}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputCompanyName" class="col-form-label">{lang key='clientareacompanyname'}</label> | ||
<input type="text" name="companyname" id="inputCompanyName" value="{$formdata.companyname}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputEmail" class="col-form-label">{lang key='clientareaemail'}</label> | ||
<input type="email" name="email" id="inputEmail" value="{$formdata.email}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputPhone" class="col-form-label">{lang key='clientareaphonenumber'}</label> | ||
<input type="tel" name="phonenumber" id="inputPhone" value="{$formdata.phonenumber}" class="form-control" /> | ||
</div> | ||
|
||
{if $showTaxIdField} | ||
<div class="form-group"> | ||
<label for="inputTaxId" class="col-form-label">{lang key=$taxIdLabel}</label> | ||
<input type="text" name="tax_id" id="inputTaxId" class="form-control" value="{$formdata.tax_id}" /> | ||
</div> | ||
{/if} | ||
|
||
</div> | ||
<div class="col-md-6 col-12 float-right"> | ||
|
||
<div class="form-group"> | ||
<label for="inputAddress1" class="col-form-label">{lang key='clientareaaddress1'}</label> | ||
<input type="text" name="address1" id="inputAddress1" value="{$formdata.address1}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputAddress2" class="col-form-label">{lang key='clientareaaddress2'}</label> | ||
<input type="text" name="address2" id="inputAddress2" value="{$formdata.address2}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputCity" class="col-form-label">{lang key='clientareacity'}</label> | ||
<input type="text" name="city" id="inputCity" value="{$formdata.city}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputState" class="col-form-label">{lang key='clientareastate'}</label> | ||
<input type="text" name="state" id="inputState" value="{$formdata.state}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="inputPostcode" class="col-form-label">{lang key='clientareapostcode'}</label> | ||
<input type="text" name="postcode" id="inputPostcode" value="{$formdata.postcode}" class="form-control" /> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="col-form-label" for="country">{lang key='clientareacountry'}</label> | ||
{$countriesdropdown} | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="card"> | ||
<div class="card-body"> | ||
|
||
<h3 class="card-title">{lang key='clientareacontactsemails'}</h3> | ||
<div class="controls form-check"> | ||
{foreach $formdata.emailPreferences as $emailType => $value} | ||
<label> | ||
<input type="hidden" name="email_preferences[{$emailType}]" value="0"> | ||
<input type="checkbox" class="form-check-input" name="email_preferences[{$emailType}]" id="{$emailType}emails" value="1"{if $value} checked="checked"{/if} /> | ||
{lang key="clientareacontactsemails"|cat:$emailType} | ||
</label>{if !($emailType@last)}<br />{/if} | ||
{/foreach} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group text-center"> | ||
<input class="btn btn-primary" type="submit" name="save" value="{lang key='clientareasavechanges'}" /> | ||
<input class="btn btn-default" type="reset" value="{lang key='cancel'}" /> | ||
</div> | ||
|
||
</form> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<div id="innerBillingContactsContainer"> | ||
<label class="form-check form-check-inline billing-contact-0"> | ||
<input | ||
type="radio" | ||
class="icheck-button" | ||
name="billingcontact" | ||
value="0" | ||
{if $payMethod->contactType == 'Client' || ($payMethod->contactType === null && $client->billingContactId === 0)} | ||
checked | ||
{/if}> | ||
<strong class="name">{$client->fullName}</strong> | ||
<span class="address1">{$client->address1}</span>, | ||
{if $client->address2}<span class="address2">{$client->address2}</span>,{/if} | ||
<span class="city">{$client->city}</span>, | ||
<span class="state">{$client->state}</span>, | ||
<span class="postcode">{$client->postcode}</span>, | ||
<span class="country">{$client->country}</span> | ||
</label> | ||
<br> | ||
{foreach $client->contacts()->orderBy('firstname', 'asc')->orderBy('lastname', 'asc')->get() as $contact} | ||
<label class="form-check form-check-inline billing-contact-{$contact->id}"> | ||
<input | ||
type="radio" | ||
class="icheck-button" | ||
name="billingcontact" | ||
value="{$contact->id}" | ||
{if $payMethod->contactType == 'Contact' && $contact->id == $payMethod->getContactId()} | ||
checked | ||
{elseif $payMethod->contactType === null && $client->billingContactId > 0} | ||
{if $contact->id == $client->billingContactId || $contact->id == $selectedContactId} | ||
checked | ||
{/if} | ||
{/if}> | ||
<strong class="name">{$contact->fullName}</strong> | ||
<span class="address1">{$contact->address1}</span>, | ||
{if $contact->address2}<span class="address2">{$contact->address2}</span>,{/if} | ||
<span class="city">{$contact->city}</span>, | ||
<span class="state">{$contact->state}</span>, | ||
<span class="postcode">{$contact->postcode}</span>, | ||
<span class="country">{$contact->country}</span> | ||
</label> | ||
<br> | ||
{/foreach} | ||
</div> | ||
|
||
<script> | ||
jQuery(document).ready(function() { | ||
jQuery('#innerBillingContactsContainer').find('.icheck-button').iCheck({ | ||
inheritID: true, | ||
checkboxClass: 'icheckbox_square-blue', | ||
radioClass: 'iradio_square-blue', | ||
increaseArea: '20%' | ||
}); | ||
}); | ||
</script> |
Oops, something went wrong.