diff options
| author | 2013-03-17 21:34:14 +0100 | |
|---|---|---|
| committer | 2013-03-17 21:34:14 +0100 | |
| commit | caf8d18c1d887f0c918ba181d1c48d9e08af6ea0 (patch) | |
| tree | b6d778c7c852432ca060470c41c44d7db7b1cab2 /app/views/entry/note.phtml | |
| parent | dbb0de4e368b814f8cab9e7e1a1462a2839471dc (diff) | |
Début fix bug #22 : possibilité d'ajouter des notes à des articles et les mettre ou non en public
Diffstat (limited to 'app/views/entry/note.phtml')
| -rw-r--r-- | app/views/entry/note.phtml | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/app/views/entry/note.phtml b/app/views/entry/note.phtml new file mode 100644 index 000000000..fe330f9b4 --- /dev/null +++ b/app/views/entry/note.phtml @@ -0,0 +1,63 @@ +<?php $this->partial ('aside_flux'); ?> + +<div class="post"> + <form method="post" action="<?php echo _url ('entry', 'note', 'id', $this->entry->id ()); ?>"> + <legend>Note</legend> + + <div class="form-group"> + <label class="group-name" for="note">Ajouter une note</label> + <div class="group-controls"> + <textarea rows="5" cols="80" name="note" id="note"><?php echo $this->entry->notes (); ?></textarea> + </div> + </div> + <div class="form-group"> + <label class="group-name" for="public_note">Article public ?</label> + <div class="group-controls"> + <label class="checkbox" for="public"> + <input type="checkbox" name="public" id="public" value="yes"<?php echo $this->entry->isPublic () ? ' checked="checked"' : ''; ?> /> Oui + </label> + </div> + </div> + + <div class="form-group form-actions"> + <div class="group-controls"> + <button type="submit" class="btn btn-important">Sauvegarder</button> + <button type="reset" class="btn">Annuler</button> + </div> + </div> + + <legend>Article</legend> + + <div class="form-group"> + <label class="group-name">Titre</label> + <div class="group-controls"> + <span class="control"><a href="<?php echo $this->entry->link (); ?>"><?php echo $this->entry->title (); ?></a></span> + </div> + </div> + + <?php + $author = $this->entry->author (); + if ($author) { ?> + <div class="form-group"> + <label class="group-name">Auteur</label> + <div class="group-controls"> + <span class="control"><?php echo $author; ?></span> + </div> + </div> + <?php } ?> + + <div class="form-group"> + <label class="group-name">Date de publication</label> + <div class="group-controls"> + <span class="control"><?php echo $this->entry->date (); ?></span> + </div> + </div> + + <div class="form-group"> + <label class="group-name">Article</label> + <div class="group-controls"> + <span class="control"><?php echo $this->entry->content (); ?></span> + </div> + </div> + </form> +</div> |
