Débug et ajout de la page addedit_project
This commit is contained in:
parent
46f48230a9
commit
a448d0e2b4
14 changed files with 186 additions and 124 deletions
27
views/addedit_project.tpl
Normal file
27
views/addedit_project.tpl
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{extends file="views/layout.tpl"}
|
||||
|
||||
{block name="content"}
|
||||
<section>
|
||||
<form method="post" enctype="multipart/form-data" >
|
||||
<p>
|
||||
<label>Titre:</label>
|
||||
<input name="title" value="{$objArticle->getTitle()}"
|
||||
class="form-control {if (isset($arrError['title'])) } is-invalid {/if} " type="text" >
|
||||
</p>
|
||||
<p>
|
||||
<label>Contenu:</label>
|
||||
<textarea name="content" class="form-control {if (isset($arrError['content'])) } is-invalid {/if} " >{$objArticle->getContent()}</textarea>
|
||||
</p>
|
||||
<p>
|
||||
<label>Image:</label>
|
||||
{if (!$objArticle->getId()|is_null)}
|
||||
<img src="assests/images/{$objArticle->getImg()}">
|
||||
{/if}
|
||||
<input name="img" class="form-control {if (isset($arrError['img'])) } is-invalid {/if}" type="file">
|
||||
</p>
|
||||
<p>
|
||||
<input class="form-control btn btn-primary" type="submit" >
|
||||
</p>
|
||||
</form>
|
||||
</section>
|
||||
{/block}
|
||||
Loading…
Add table
Add a link
Reference in a new issue