diff options
| author | benal01 <bja4245@rit.edu> | 2025-03-31 17:42:40 -0400 | 
|---|---|---|
| committer | benal01 <bja4245@rit.edu> | 2025-03-31 17:42:40 -0400 | 
| commit | 643afd1d6ffcca3597556d287944eaf487da709c (patch) | |
| tree | dc9f5748a9276123ca8109fa9720f19405b8098f /ufund-ui/src/app | |
| parent | d4dd348e81d3aef4cc62335f1dad5a02452dfadd (diff) | |
| download | JellySolutions-643afd1d6ffcca3597556d287944eaf487da709c.tar.gz JellySolutions-643afd1d6ffcca3597556d287944eaf487da709c.tar.bz2 JellySolutions-643afd1d6ffcca3597556d287944eaf487da709c.zip  | |
frontend description editing and display
Diffstat (limited to '')
| -rw-r--r-- | ufund-ui/src/app/components/cupboard/cupboard.component.html | 5 | ||||
| -rw-r--r-- | ufund-ui/src/app/components/need-list/need-list.component.html | 10 | 
2 files changed, 10 insertions, 5 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html index 89d8fbe..f6a2041 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.html +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html @@ -47,9 +47,10 @@              <label>Physical</label><br>              <input type="checkbox" name="urgent" [(ngModel)]="selectedNeed.urgent">              <label>Urgent</label> <br> -            <input type="submit" value="Submit"> -            <label>Description</label> +            <label>Description</label> <br>              <textarea name="description" [(ngModel)]="selectedNeed.description"></textarea><br> +            <input type="submit" value="Submit"> +                      </form>          <span *ngIf="statusText">{{statusText | async}}</span> diff --git a/ufund-ui/src/app/components/need-list/need-list.component.html b/ufund-ui/src/app/components/need-list/need-list.component.html index 3a4ca9c..d35f2ed 100644 --- a/ufund-ui/src/app/components/need-list/need-list.component.html +++ b/ufund-ui/src/app/components/need-list/need-list.component.html @@ -32,20 +32,24 @@                      <span class="needName">{{need.name}}</span>                      <span class="needType">{{need.type}}</span>                  </div> - +                                  <div class="right">                      <span *ngIf="need.urgent" class="urgent">URGENT</span>                      <span *ngIf="need.location"><span class="icon">location_on</span>{{need.location}}</span>                  </div>              </div> - +                         <div class="prog">                  <span id="hover-status-label-{{need.id}}"> </span>                  <span>{{need.current}}/{{need.maxGoal}} ({{(need.current / need.maxGoal) * 100}}%)</span>                  <progress [value]="need.current" [max]="need.maxGoal"></progress>              </div> -        </div> +            <div class="description"> +                {{need.description}} +            </div> +        </div> +                  <div>              <button *ngIf="isHelper()" (click)="add(need)">Add To Basket</button>              <button *ngIf="isManager()" (click)="select(need)">  | 
