/** * Renderize the view. * * @return null */ public function render(Story $story) { ?> <p> <?php echo REQUIRED_FIELDS_TEXT; ?> </p> <form action="<?php echo $this->generateURL('story', 'edit', $story->getIdStory()); ?> " method="post"> <fieldset> <div class="row"> <div class="col-md-6"> <div> <label for="title"> Título <small>(*)</small> </label> <input name="title" type="text" required value="<?php echo $story->getTitle(); ?> " /> </div> </div> <div class="col-md-6"> <div> <label for="body"> Cuerpo <small>(*)</small> </label> <textarea name="body" required><?php echo $story->getBody(); ?> </textarea> </div> <div> <input type="submit" value="Modificar" /> </div> </div> </div> </fieldset> </form> <?php }