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

some changes #15

Open
wants to merge 1 commit into
base: main
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
2 changes: 2 additions & 0 deletions src/frontend/PetSpotR/Data/PetModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class PetModel
public string ID { get; set; }
public string State { get; set; }
public List<string> Images { get; set; }
public string Location { get; set; }


// Constructor
Expand All @@ -23,6 +24,7 @@ public PetModel()
ID = Guid.NewGuid().ToString();
State = "new";
Images = new();
Location = "";
}

public async Task SavePetStateAsync(DaprClient daprClient, string storeName)
Expand Down
26 changes: 26 additions & 0 deletions src/frontend/PetSpotR/Pages/LostPet.razor
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
<InputSelect id="type" @bind-Value="petModel.Type">
<option>Dog</option>
<option>Cat</option>
<option>Bird</option>
<option>Rabbit</option>
<option>Other</option>
</InputSelect>
</div>
</div>
Expand All @@ -48,6 +51,29 @@
</label>
</div>
</div>
<h3>Step 3: Where did you lose your pet?</h3>
<div class="form-group row justify-content-center">
<label for="petLocation" class="col-2 col-form-label">Pet Location</label>
<div class="col-4">
<InputSelect id="location" @bind-Value="petModel.Location">
<option value="">Select a location</option>
// add a drop down list of locations, for suburbs in Auckland, NZ
<option value="Albany">Albany</option>
<option value="Avondale">Avondale</option>
<option value="Birkenhead">Birkenhead</option>
<option value="Blockhouse Bay">Blockhouse Bay</option>
<option value="Browns Bay">Browns Bay</option>
<option value="Devonport">Devonport</option>
<option value="Ellerslie">Ellerslie</option>
<option value="Epsom">Epsom</option>
<option value="Glenfield">Glenfield</option>
<option value="Glen Innes">Glen Innes</option>
<option value="Grey Lynn">Grey Lynn</option>
<option value="Henderson">Henderson</option>
<option value="Hobsonville">Hobsonville</option>
</InputSelect>
</div>
</div>
@if (isLoading)
{
<p>Uploading...</p>
Expand Down