Files
pomysloweprezenty.pl/templates/shop-client/address-edit.php
Jacek Pyziak 3ecbe628dc Add view classes for articles, banners, languages, menu, newsletter, containers, shop categories, clients, payment methods, products, and search
- Created Articles.php for rendering article views including full articles, miniature lists, and news sections.
- Added Banners.php for handling banner displays.
- Introduced Languages.php for rendering language options.
- Implemented Menu.php for dynamic menu rendering.
- Developed Newsletter.php for newsletter view rendering.
- Created Scontainers.php for rendering specific containers.
- Added ShopCategory.php for category descriptions and product listings.
- Introduced ShopClient.php for managing client-related views such as address editing and order history.
- Implemented ShopPaymentMethod.php for displaying payment methods in the basket.
- Created ShopProduct.php for generating product URLs.
- Added ShopSearch.php for rendering a simple search form.
- Added .htaccess file to enhance security by restricting access to sensitive files and directories.
2026-02-21 23:00:15 +01:00

33 lines
2.3 KiB
PHP

<div class="client-panel address-edit box">
<?= \front\Views\ShopClient::clientMenu( [
'active_page' => 'addresses'
] );?>
<div class="box-title">
<?= ucfirst( \Shared\Helpers\Helpers::lang( 'adresy-do-wysylki' ) );?>
</div>
<form method="POST" class="box-mini" action="/shopClient/address_save" id="f-new-address">
<? if ( $this -> address['id'] ):?>
<input type="hidden" name="address_id" value="<?= $this -> address['id'];?>">
<? endif;?>
<div class="form-group">
<input type="text" name="name" required class="form-control" placeholder="<?= ucfirst( \Shared\Helpers\Helpers::lang( 'imie' ) );?>" value="<?= htmlspecialchars( $this -> address['name'] );?>">
</div>
<div class="form-group">
<input type="text" name="surname" required class="form-control" placeholder="<?= ucfirst( \Shared\Helpers\Helpers::lang( 'nazwisko' ) );?>" value="<?= htmlspecialchars( $this -> address['surname'] );?>">
</div>
<div class="form-group">
<input type="text" name="street" required class="form-control" placeholder="<?= ucfirst( \Shared\Helpers\Helpers::lang( 'ulica-i-numer' ) );?>" value="<?= htmlspecialchars( $this -> address['street'] );?>">
</div>
<div class="form-group row-flex">
<input type="text" name="postal_code" required class="form-control" pattern="[0-9]{2}-[0-9]{3}" title="Format xx-xxx" placeholder="<?= ucfirst( \Shared\Helpers\Helpers::lang( 'kod-pocztowy' ) );?>" value="<?= htmlspecialchars( $this -> address['postal_code'] );?>">
<input type="text" name="city" required class="form-control" placeholder="<?= ucfirst( \Shared\Helpers\Helpers::lang( 'miejscowosc' ) );?>" value="<?= htmlspecialchars( $this -> address['city'] );?>">
</div>
<div class="form-group">
<input type="text" name="phone" required class="form-control" placeholder="<?= ucfirst( \Shared\Helpers\Helpers::lang( 'numer-telefonu' ) );?>" value="<?= htmlspecialchars( $this -> address['phone'] );?>">
</div>
<div class="form-group row-flex">
<a href="/panel-klienta/adresy" class="btn btn-dark"><?= ucfirst( \Shared\Helpers\Helpers::lang( 'anuluj' ) );?></a>
<button type="submit" class="btn btn-success"><?= ucfirst( \Shared\Helpers\Helpers::lang( 'zapisz' ) );?></button>
</div>
</form>
</div>