mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
add recipient to add fields hint
This commit is contained in:
@ -6,6 +6,8 @@ import { createOrUpdateField, deleteField } from "@documenso/lib/api";
|
|||||||
import { createField } from "@documenso/features/editor";
|
import { createField } from "@documenso/features/editor";
|
||||||
import RecipientSelector from "./recipient-selector";
|
import RecipientSelector from "./recipient-selector";
|
||||||
import FieldTypeSelector from "./field-type-selector";
|
import FieldTypeSelector from "./field-type-selector";
|
||||||
|
import { InformationCircleIcon } from "@heroicons/react/24/outline";
|
||||||
|
import Link from "next/link";
|
||||||
const stc = require("string-to-color");
|
const stc = require("string-to-color");
|
||||||
|
|
||||||
const PDFViewer = dynamic(() => import("./pdf-viewer"), {
|
const PDFViewer = dynamic(() => import("./pdf-viewer"), {
|
||||||
@ -48,6 +50,36 @@ export default function PDFEditor(props: any) {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div>
|
<div>
|
||||||
|
<div className="rounded-md bg-blue-50 p-4">
|
||||||
|
<div className="flex">
|
||||||
|
<div className="flex-shrink-0">
|
||||||
|
<InformationCircleIcon
|
||||||
|
className="h-5 w-5 text-blue-400"
|
||||||
|
aria-hidden="true"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="ml-3 flex-1 md:flex md:justify-between">
|
||||||
|
<p className="text-sm text-blue-700">
|
||||||
|
This document does not have any recipients. Add recipient to
|
||||||
|
create fields.
|
||||||
|
</p>
|
||||||
|
<p className="mt-3 text-sm md:mt-0 md:ml-6">
|
||||||
|
<Link
|
||||||
|
href={
|
||||||
|
NEXT_PUBLIC_WEBAPP_URL +
|
||||||
|
"/documents/" +
|
||||||
|
props.document.id +
|
||||||
|
"/recipients"
|
||||||
|
}
|
||||||
|
className="whitespace-nowrap font-medium text-blue-700 hover:text-blue-600"
|
||||||
|
>
|
||||||
|
Add Recipients
|
||||||
|
<span aria-hidden="true"> →</span>
|
||||||
|
</Link>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<PDFViewer
|
<PDFViewer
|
||||||
style={{
|
style={{
|
||||||
cursor: `url("https://place-hold.it/110x64/37f095/FFFFFF&text=${selectedFieldType}") 55 32, auto`,
|
cursor: `url("https://place-hold.it/110x64/37f095/FFFFFF&text=${selectedFieldType}") 55 32, auto`,
|
||||||
|
|||||||
Reference in New Issue
Block a user