diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-06-01 18:46:12 +0200 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-06-01 18:46:12 +0200 |
| commit | af6dd5f8f9844596e85db25a8e97df9e08cb795c (patch) | |
| tree | 8408e754dd335571635bcde041bbce69213af592 /templates/categoryedit.tpl | |
| parent | be50d9ed4ba2b844bbc29686cee46b1dc149372a (diff) | |
| download | Catalog-af6dd5f8f9844596e85db25a8e97df9e08cb795c.tar.gz Catalog-af6dd5f8f9844596e85db25a8e97df9e08cb795c.zip | |
Port alls sites to smarty and use the inheritance model
Diffstat (limited to 'templates/categoryedit.tpl')
| -rw-r--r-- | templates/categoryedit.tpl | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/templates/categoryedit.tpl b/templates/categoryedit.tpl new file mode 100644 index 0000000..c02962d --- /dev/null +++ b/templates/categoryedit.tpl @@ -0,0 +1,36 @@ +{extends file="layout.tpl"} +{block name=title}{$category->getName()}{/block} +{block name=navigation} +<dl> + <dt><a href="contact.php">Contact us</a></dt> + <dt><a href=".">Home</a></dt> + <dt><a href="categories.php">Back</a></dt> + {if $loggedin} + <dt><a href="login.php?logout">Logout</a></dt> + {else} + <dt><a href="login.php">Login</a></dt> + {/if} +</dl> +{/block} +{block name=content} +<form action="categoryedit.php?{$type}={$category->getId()}" method="post"> + <h1>Category</h1> + <div class="row"> + <label for="name"><u>N</u>ame:</label> <input class="formw" type="text" + placeholder="Name" id="name" name="name" accesskey="n" + maxlength="100" value="{$category->getName()}"> + </div> + <div class="row"> + <label for="desc"><u>D</u>escription:</label> + <textarea class="formw" placeholder="Description" id="desc" name="desc" + accesskey="d" maxlength="1000">{$category->getDescription()}</textarea> + </div> + <div class="spacer"> </div> + <button type="submit"> + {$type|capitalize} + </button> + <button type="reset"> + Reset + </button> +</form> +{/block}
\ No newline at end of file |
