diff options
Diffstat (limited to 'ideas.html')
-rw-r--r-- | ideas.html | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -38,14 +38,33 @@ color: #bcbcbc; } +.error { + color: red; +} + </style> </head> <body> + {{ with .Error }} + <p class="error">{{.}}</p> + {{ end}} + <form action="/create/" method="post"> + <input name="title" type="text" placeholder="Title"></br> + <input name="text" type="text" placeholder="Idea description..."></br> + <input name="author" type="text" placeholder="Your Name"></br> + <input type="submit" value="Post"> + </form> + <hr> + <form action="/delete/" method="post"> + <input type="text" placeholder="Title" name="title"></br> + <input type="submit" value="Delete"> + </form> + <hr> <ul> {{ range .Ideas }} <div class="idea"> <h2 class="title">{{.Title}}</h2> - <p class="description">{{.Description}}</p> + <p class="text">{{.Text}}</p> <p class="creation">by <span class="author">{{.Author}}</span> on <span class="date">{{.CreatedAt}}</span></p> </div> {{ end }} |