diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-03-27 22:20:46 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-03-27 22:20:46 +0200 |
| commit | dda2c7a7ae28eab27ac1bcaf38513ff44343278b (patch) | |
| tree | 3125e28848c9c7924c2b4c3525e178289bcb79ca | |
| parent | 2df470b2376b79d67ab3f962ef6bd18adc653999 (diff) | |
| download | phorkie-dda2c7a7ae28eab27ac1bcaf38513ff44343278b.tar.gz phorkie-dda2c7a7ae28eab27ac1bcaf38513ff44343278b.zip | |
create paste layout
| -rw-r--r-- | data/templates/index.htm | 54 | ||||
| -rw-r--r-- | www/phorkie.css | 5 |
2 files changed, 37 insertions, 22 deletions
diff --git a/data/templates/index.htm b/data/templates/index.htm index 26a22c3..9b158bb 100644 --- a/data/templates/index.htm +++ b/data/templates/index.htm @@ -3,27 +3,37 @@ {% block content %} <form method="post" action="/"> - <p> - <label for="description">Description</label> - <input type="text" name="description" id="description" value="{{description}}"/> - </p> - <p> - <label for="filename_1">Filename</label> - <input type="text" name="file[1][name]" id="filename_1" value="{{ file[1]['name'] }}"/> - </p> - <p> - <label for="type_1">Type</label> - <select name="file[1][type]" id="type_1"> - <option value="css">CSS</option> - <option value="php">PHP</option> - <option value="xml">XML</option> - </select> - </p> - <p> - <textarea name="file[1][content]" id="content_1" cols="80" rows="10">{{ file[1]['content'] }}</textarea> - </p> - <p> - <input type="submit" value="Go"/> - </p> + <div class="control-group well pastedata"> + <label for="description" class="control-label">Description</label> + <div class="controls"> + <input type="text" name="description" id="description" value="{{description}}"/> + </div> + </div> + + <div class="well"> + <div class="row-fluid"> + <div class="span6"> + <label for="filename_1">Filename</label> + <input type="text" name="file[1][name]" id="filename_1" value="{{ file[1]['name'] }}"/> + </div> + <div class="span6" style="text-align: right"> + <label for="type_1">Type</label> + <select name="file[1][type]" id="type_1"> + <option value="css">CSS</option> + <option value="php">PHP</option> + <option value="xml">XML</option> + </select> + </div> + </div> + <textarea name="file[1][content]" id="content_1" cols="80" rows="10" class="content">{{ file[1]['content'] }}</textarea> + </div> + + <div class="well" style="text-align: right"> + <button class="btn btn-primary" type="submit"> + <i class="icon-check icon-white"></i> + Create + </button> + </div> + </form> {% endblock %} diff --git a/www/phorkie.css b/www/phorkie.css index 34ada5d..abe1262 100644 --- a/www/phorkie.css +++ b/www/phorkie.css @@ -44,4 +44,9 @@ a.anchorlink { } ul.pager { margin-top: 2ex; +} + +form textarea.content { + width: 100%; + box-sizing: border-box; }
\ No newline at end of file |
