diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index f30309b9e2..ac5ae1f5a8 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -200,6 +200,7 @@ table { .mr-8 { margin-right: 2rem; } .mt-2 { margin-top: .5rem; } .mt-5 { margin-top: 1.25rem; } +.mt-14 { margin-top: 3.5rem; } .mb-1 { margin-bottom: .25rem; } /* --------- */ diff --git a/packages/ui/src/components/Link.svelte b/packages/ui/src/components/Link.svelte index 61dbd806fe..f0acdfb718 100644 --- a/packages/ui/src/components/Link.svelte +++ b/packages/ui/src/components/Link.svelte @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. --> + + +
+
+
Applications
+ +
+ {#if applications.length > 0} + + {:else} +
+ +
+
+
+ +
+
+ {/if} + + + diff --git a/plugins/recruit-resources/src/components/Attachments.svelte b/plugins/recruit-resources/src/components/Attachments.svelte index bd1eeb5543..6928df11be 100644 --- a/plugins/recruit-resources/src/components/Attachments.svelte +++ b/plugins/recruit-resources/src/components/Attachments.svelte @@ -24,7 +24,7 @@ import { Table } from '@anticrm/view-resources' import { uploadFile } from '../utils' - import Upload from './icons/Upload.svelte' + import UploadDuo from './icons/UploadDuo.svelte' import chunter from '@anticrm/chunter' @@ -101,7 +101,7 @@ on:drop|preventDefault|stopPropagation={fileDrop} on:click={ () => { inputFile.click() } } > - +
There are no attachments for this candidate.
Upload or drop files here diff --git a/plugins/recruit-resources/src/components/EditCandidate.svelte b/plugins/recruit-resources/src/components/EditCandidate.svelte index 7b135411dd..67ebce234a 100644 --- a/plugins/recruit-resources/src/components/EditCandidate.svelte +++ b/plugins/recruit-resources/src/components/EditCandidate.svelte @@ -27,8 +27,7 @@ import Edit from './icons/Edit.svelte' import SocialEditor from './SocialEditor.svelte' import AttributesBar from './AttributesBar.svelte' - import CreateApplication from './CreateApplication.svelte' - import { Table } from '@anticrm/view-resources' + import Applications from './Applications.svelte' import core from '@anticrm/core' @@ -98,28 +97,12 @@
-
-
-
Applications
- { showPopup(CreateApplication, { candidate: object._id, preserveCandidate: true }, ev.target) } } /> -
-
+
+
-
- +
+
@@ -139,15 +122,4 @@ margin-top: .75rem; span { margin-left: .5rem; } } - - .group { - margin-top: 3.5rem; - - .caption { - margin-right: .75rem; - font-weight: 500; - font-size: 1.25rem; - color: var(--theme-caption-color); - } - } diff --git a/plugins/recruit-resources/src/components/icons/FileDuo.svelte b/plugins/recruit-resources/src/components/icons/FileDuo.svelte new file mode 100644 index 0000000000..b505a7919b --- /dev/null +++ b/plugins/recruit-resources/src/components/icons/FileDuo.svelte @@ -0,0 +1,29 @@ + + + + + + + + + + + + diff --git a/plugins/recruit-resources/src/components/icons/Upload.svelte b/plugins/recruit-resources/src/components/icons/UploadDuo.svelte similarity index 100% rename from plugins/recruit-resources/src/components/icons/Upload.svelte rename to plugins/recruit-resources/src/components/icons/UploadDuo.svelte diff --git a/plugins/recruit-resources/src/plugin.ts b/plugins/recruit-resources/src/plugin.ts index a2dea02bc8..dc5baf0093 100644 --- a/plugins/recruit-resources/src/plugin.ts +++ b/plugins/recruit-resources/src/plugin.ts @@ -39,6 +39,8 @@ export default mergeIds(recruitId, recruit, { CandidatesName: '' as IntlString, CandidatesDescription: '' as IntlString, CreateCandidate: '' as IntlString, + CreateAnApplication: '' as IntlString, + NoApplicationsForCandidate: '' as IntlString, FirstName: '' as IntlString, LastName: '' as IntlString,