-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created crud of warehouses,products,suppliers
- Loading branch information
1 parent
8352561
commit 3820ee8
Showing
85 changed files
with
3,642 additions
and
2,080 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,57 @@ | ||
{{yield}} | ||
<Overlay | ||
@onLoad={{this.setOverlayContext}} | ||
@position="right" | ||
@noBackdrop={{true}} | ||
@fullHeight={{true}} | ||
@isResizeble={{or this.isResizable @isResizable}} | ||
@width={{or this.width @width "600px"}} | ||
> | ||
<Overlay::Header | ||
@title={{if this.warehouse.public_id this.warehouse.name "New Warehouse"}} | ||
@status={{this.warehouse.public_id}} | ||
@hideStatusDot={{true}} | ||
@createdAt={{this.warehouse.createdAt}} | ||
@titleWrapperClass="leading-5" | ||
> | ||
<div class="flex flex-1 justify-end"> | ||
<Button @icon={{if this.warehouse.id "save" "check"}} @type="primary" @text={{if this.warehouse.id "Save Warehouse" "Create Warehouse"}} @onClick={{this.save}} @wrapperClass="mr-2" /> | ||
<Button @type="default" @icon="times" @helpText={{if this.warehouse.id "Cancel edit warehouse" "Cancel new warehouse"}} @onClick={{this.onPressCancel}} /> | ||
</div> | ||
</Overlay::Header> | ||
|
||
<Overlay::Body @wrapperClass="new-service-rate-overlay-body px-4 space-y-4 pt-4" @increaseInnerBodyHeightBy={{1000}}> | ||
<div class="grid grid-cols-3 gap-1 text-xs dark:text-gray-100"> | ||
<InputGroup @name="Name" @wrapperClass="col-span-2"> | ||
<Input @value={{this.warehouse.name}} @type="text" class="w-full form-input" placeholder="Name" /> | ||
</InputGroup> | ||
<InputGroup @name="Street 1" @value={{this.warehouse.street1}} @wrapperClass="col-span-3"> | ||
<AutocompleteInput @value={{this.warehouse.street1}} @fetchUrl="places/lookup" @onSelect={{this.onAutocomplete}} placeholder="Street 1" class="w-full" as |result|> | ||
{{result.address}} | ||
</AutocompleteInput> | ||
</InputGroup> | ||
<InputGroup @name="Street 2" @autocomplete="nope" @value={{this.warehouse.street2}} @wrapperClass="col-span-3" /> | ||
<InputGroup @name="Neighborhood" @autocomplete="nope" @value={{this.warehouse.neighborhood}} /> | ||
<InputGroup @name="Building" @autocomplete="nope" @value={{this.warehouse.building}} /> | ||
<InputGroup @name="Security Access Code" @autocomplete="nope" @value={{this.warehouse.security_access_code}} /> | ||
<InputGroup @name="Postal Code" @autocomplete="nope" @value={{this.warehouse.postal_code}} /> | ||
<InputGroup @name="City" @autocomplete="nope" @value={{this.warehouse.city}} /> | ||
<InputGroup @name="State" @autocomplete="nope" @value={{this.warehouse.province}} /> | ||
<InputGroup @name="Country" @wrapperClass="col-span-2"> | ||
<CountrySelect class="w-full form-input form-select form-datalist" @value={{this.warehouse.country}} @onChange={{fn (mut this.warehouse.country)}} warehouseholder="Country" /> | ||
</InputGroup> | ||
<InputGroup @name="Coordinates" @wrapperClass="col-span-2"> | ||
<CoordinatesInput | ||
@value={{this.warehouse.location}} | ||
@onChange={{this.updateWarehouseCoordinates}} | ||
@onGeocode={{this.onAutocomplete}} | ||
@onUpdatedFromMap={{this.onReverseGeocode}} | ||
@onInit={{this.setCoordinatesInput}} | ||
/> | ||
</InputGroup> | ||
<div class="col-span-1"></div> | ||
<InputGroup @name="Phone"> | ||
<PhoneInput @value={{this.warehouse.phone}} @autocomplete="nope" @onInput={{this.phone}} class="form-input w-full" /> | ||
</InputGroup> | ||
</div> | ||
</Overlay::Body> | ||
</Overlay> |
Oops, something went wrong.