|
|
@ -78,7 +78,7 @@ |
|
|
|
class="block w-full rounded-l border border-r-0 border-slate-400 px-3 py-2 h-10" |
|
|
|
/> |
|
|
|
<button |
|
|
|
class="px-4 rounded-r bg-green-200 border border-l-0 border-green-400" |
|
|
|
class="px-4 rounded-r bg-green-200 border border-green-400" |
|
|
|
@click="onClickNewContact()" |
|
|
|
> |
|
|
|
<font-awesome icon="plus" class="fa-fw" /> |
|
|
@ -86,8 +86,8 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-if="contacts.length > 0" class="flex justify-between"> |
|
|
|
<div class="w-full text-left"> |
|
|
|
<div v-if="!showGiveNumbers"> |
|
|
|
<div class=""> |
|
|
|
<div v-if="!showGiveNumbers" class="flex items-center"> |
|
|
|
<input |
|
|
|
type="checkbox" |
|
|
|
:checked="contactsSelected.length === contacts.length" |
|
|
@ -101,64 +101,63 @@ |
|
|
|
/> |
|
|
|
<button |
|
|
|
v-if="!showGiveNumbers" |
|
|
|
href="" |
|
|
|
class="text-md bg-gradient-to-b shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white ml-3 px-3 py-1.5 rounded-md" |
|
|
|
:style=" |
|
|
|
:class=" |
|
|
|
contactsSelected.length > 0 |
|
|
|
? 'background-image: linear-gradient(to bottom, #3b82f6, #1e40af);' |
|
|
|
: 'background-image: linear-gradient(to bottom, #94a3b8, #374151);' |
|
|
|
? 'text-md bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white ml-3 px-3 py-1.5 rounded-md cursor-pointer' |
|
|
|
: 'text-md bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-slate-300 ml-3 px-3 py-1.5 rounded-md cursor-not-allowed' |
|
|
|
" |
|
|
|
data-testId="copySelectedContactsButtonTop" |
|
|
|
@click="copySelectedContacts()" |
|
|
|
> |
|
|
|
Copy Selections |
|
|
|
Copy |
|
|
|
</button> |
|
|
|
<button @click="showCopySelectionsInfo()"> |
|
|
|
<font-awesome |
|
|
|
@click="showCopySelectionsInfo()" |
|
|
|
icon="circle-info" |
|
|
|
class="text-xl text-blue-500 ml-4" |
|
|
|
class="text-2xl text-blue-500 ml-2" |
|
|
|
/> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="w-full text-right"> |
|
|
|
<div class="flex items-center gap-2"> |
|
|
|
<button |
|
|
|
v-if="showGiveNumbers" |
|
|
|
href="" |
|
|
|
class="text-md bg-gradient-to-b shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-3 py-1.5 rounded-md" |
|
|
|
:class="showGiveAmountsClassNames()" |
|
|
|
@click="toggleShowGiveTotals()" |
|
|
|
> |
|
|
|
{{ |
|
|
|
showGiveTotals |
|
|
|
? "Totals" |
|
|
|
: showGiveConfirmed |
|
|
|
? "Confirmed Amounts" |
|
|
|
: "Unconfirmed Amounts" |
|
|
|
}} |
|
|
|
<font-awesome icon="left-right" class="fa-fw" /> |
|
|
|
</button> |
|
|
|
|
|
|
|
<button |
|
|
|
href="" |
|
|
|
class="text-md bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-3 py-1.5 rounded-md" |
|
|
|
@click="toggleShowContactAmounts()" |
|
|
|
> |
|
|
|
{{ |
|
|
|
showGiveNumbers ? "Hide Hours, Offer, etc" : "See Hours, Offer, etc" |
|
|
|
showGiveNumbers ? "Hide Actions" : "See Actions" |
|
|
|
}} |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="showGiveNumbers" class="flex justify-between mt-1"> |
|
|
|
<div class="w-full text-right"> |
|
|
|
In the following, only the most recent hours are included. To see more, |
|
|
|
<div v-if="showGiveNumbers" class="my-3"> |
|
|
|
<div class="w-full text-center text-sm italic text-slate-600"> |
|
|
|
Only the most recent hours are included. <br />To see more, |
|
|
|
click |
|
|
|
<span |
|
|
|
class="text-sm uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1 py-1 rounded-md" |
|
|
|
class="text-sm uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1 py-0.5 rounded" |
|
|
|
> |
|
|
|
<font-awesome icon="file-lines" class="fa-fw" /> |
|
|
|
<font-awesome icon="file-lines" class="text-xs fa-fw" /> |
|
|
|
</span> |
|
|
|
<br /> |
|
|
|
<button |
|
|
|
href="" |
|
|
|
class="text-md bg-gradient-to-b shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-1 rounded-md mt-1" |
|
|
|
:class="showGiveAmountsClassNames()" |
|
|
|
@click="toggleShowGiveTotals()" |
|
|
|
> |
|
|
|
{{ |
|
|
|
showGiveTotals |
|
|
|
? "Totals" |
|
|
|
: showGiveConfirmed |
|
|
|
? "Confirmed Amounts" |
|
|
|
: "Unconfirmed Amounts" |
|
|
|
}} |
|
|
|
<font-awesome icon="left-right" class="fa-fw" /> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
@ -166,7 +165,7 @@ |
|
|
|
<ul |
|
|
|
v-if="contacts.length > 0" |
|
|
|
id="listContacts" |
|
|
|
class="border-t border-slate-300 mt-1" |
|
|
|
class="border-t border-slate-300 my-2" |
|
|
|
> |
|
|
|
<li |
|
|
|
v-for="contact in filteredContacts()" |
|
|
@ -316,16 +315,14 @@ |
|
|
|
/> |
|
|
|
<button |
|
|
|
v-if="!showGiveNumbers" |
|
|
|
href="" |
|
|
|
class="text-md bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white ml-3 px-3 py-1.5 rounded-md" |
|
|
|
:style=" |
|
|
|
:class=" |
|
|
|
contactsSelected.length > 0 |
|
|
|
? 'background-image: linear-gradient(to bottom, #3b82f6, #1e40af);' |
|
|
|
: 'background-image: linear-gradient(to bottom, #94a3b8, #374151);' |
|
|
|
? 'text-md bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white ml-3 px-3 py-1.5 rounded-md cursor-pointer' |
|
|
|
: 'text-md bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-slate-300 ml-3 px-3 py-1.5 rounded-md cursor-not-allowed' |
|
|
|
" |
|
|
|
@click="copySelectedContacts()" |
|
|
|
> |
|
|
|
Copy Selections |
|
|
|
Copy |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
|
|
|
|