Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: attach form #1612

Open
wants to merge 2 commits into
base: test-server
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h3 class="heading">Select a type of form you want to attach</h3>
class="registration-type"
(click)="selectedRegistrationType = rt; openDialogBox()"
>
<span> {{ rt.name | titlecase }}</span>
<div><fa-icon [icon]="icons.faPlus"></fa-icon> {{ rt.name | titlecase }} Form</div>
</div>
</div>
</div>
Expand All @@ -26,7 +26,7 @@ <h3 class="heading">Select a type of form you want to attach</h3>
class="registration-type"
[ngClass]="{ active: selectedRegistrationType.id === rt.id }"
>
<span> {{ rt.name | titlecase }}</span>
<div><fa-icon [icon]="icons.faPlus"></fa-icon> {{ rt.name | titlecase }} Form</div>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,22 @@
.registration-types {
@apply com-grid lg:com-grid-cols-4 md:com-grid-cols-3 com-grid-cols-2 com-gap-4;
.registration-type {
@apply com-border com-border-solid com-border-Bright-Gray com-rounded-2xl com-w-full com-h-20 com-text-center hover:com-border-primary-500 hover:com-bg-sky-50 hover:com-cursor-pointer;
@apply com-border com-border-solid com-border-Bright-Gray com-rounded-2xl com-w-full com-h-86px com-text-center hover:com-border-primary-500 hover:com-bg-sky-50 hover:com-cursor-pointer;
&.active {
@apply com-border-primary-500 com-bg-sky-50;
span {
div {
@apply com-text-tYankees-Blue;
}
}
span {
@apply com-flex com-justify-center com-items-center com-h-full com-text-xl com-font-semibold;
div {
@apply com-flex com-justify-center com-items-center com-h-full com-text-xl com-font-semibold com-flex-wrap com-cursor-pointer;
fa-icon {
@apply com-text-sm com-mr-0 md:com-mr-1;
}
}
}
.registration-type:hover {
span {
div {
@apply com-text-tYankees-Blue;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @nrwl/nx/enforce-module-boundaries */
import { Component, EventEmitter, Input, OnInit, Output, TemplateRef, ViewChild } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { ICommunity, IEvent } from '@commudle/shared-models';
Expand All @@ -11,6 +12,7 @@ import { UserDetailsCheckboxFormComponent } from 'apps/shared-components/user-de
import { EditDataFormComponent } from 'apps/shared-components/edit-data-form/edit-data-form.component';
import { DataFormsService } from 'apps/commudle-admin/src/app/services/data_forms.service';
import { NewDataFormComponent } from 'apps/shared-components/new-data-form/new-data-form.component';
import { faPlus } from '@fortawesome/free-solid-svg-icons';
@Component({
selector: 'commudle-new-form-attach-groups',
templateUrl: './new-form-attach-groups.component.html',
Expand All @@ -32,6 +34,9 @@ export class NewFormAttachGroupsComponent implements OnInit {
selectedRegistrationType: IRegistrationType;
eventDataFormEntityGroupForm: FormGroup;
userDetailsFormValues: object;
icons = {
faPlus,
};

constructor(
private nbDialogBox: NbDialogService,
Expand Down