-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fff9594
commit 7756925
Showing
5 changed files
with
64 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
<div id="postagens"> | ||
|
||
<h2>CRUD Posts</h2> | ||
|
||
<?php $action = ($action == 'novo') ? 'NOVO POST' : 'EDITAR POST'; ?> | ||
|
||
<p>=== <b> <?php echo $action; ?> </b> ===</p> | ||
|
||
<?php echo Form::open(); ?> | ||
|
||
<div class="block"> | ||
<?php $titulo = isset($post['titulo']) ? $post['titulo'] : ''; ?> | ||
<?php echo Form::label('titulo', 'Titulo', array('title' => 'Titulo')); ?>:<br /> | ||
<?php echo Form::input('titulo', $titulo, array('id' => 'titulo', 'size' => '60')); ?> | ||
</div> | ||
|
||
<div class="block"> | ||
<?php $chamada = isset($post['chamada']) ? $post['chamada'] : ''; ?> | ||
<?php echo Form::label('chamada', 'Chamada', array('title' => 'Chamada')); ?>:<br /> | ||
<?php echo Form::textarea('chamada', $chamada, array('id' => 'chamada' , 'rows' => 5, 'cols' => '60' )); ?> | ||
</div> | ||
|
||
<div class="block"> | ||
<?php $texto = isset($post['texto']) ? $post['texto'] : ''; ?> | ||
<?php echo Form::label('texto', 'Texto', array('title' => 'Texto')); ?>:<br /> | ||
<?php echo Form::textarea('texto', $texto, array('id' => 'texto' , 'rows' => 12, 'cols' => '60' )); ?> | ||
</div> | ||
|
||
<br class="clear" /> | ||
|
||
<?php echo Form::submit('salvar', 'Salvar', array('id' => 'salvar')); ?> | ||
<?php echo Form::submit('cancelar', 'Cancelar', array('id' => 'cancelar')); ?> | ||
|
||
<?php echo Form::close(); ?> | ||
</div> | ||
|
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