| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
|---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml" |
|---|
| 3 | xmlns:py="http://genshi.edgewall.org/" |
|---|
| 4 | xmlns:xi="http://www.w3.org/2001/XInclude"> |
|---|
| 5 | |
|---|
| 6 | <head> |
|---|
| 7 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15"/> |
|---|
| 8 | <title>Project Details: $project</title> |
|---|
| 9 | </head> |
|---|
| 10 | |
|---|
| 11 | <body> |
|---|
| 12 | <h1>Project Details: $project</h1> |
|---|
| 13 | |
|---|
| 14 | <form method="post" enctype="multipart/form-data"> |
|---|
| 15 | |
|---|
| 16 | <!-- repository choice --> |
|---|
| 17 | <div py:if="len(repositories) > 1"> |
|---|
| 18 | <h2>Source Repository</h2> |
|---|
| 19 | |
|---|
| 20 | <p py:for="index, repository in enumerate(repositories)" |
|---|
| 21 | py:with="options = [option for option in repository.options if |
|---|
| 22 | option.name not in excluded_fields.get(repository.name, ())]"> |
|---|
| 23 | <input type="radio" |
|---|
| 24 | name="repository" |
|---|
| 25 | py:attrs="{'checked': not index and 'true' or None }" |
|---|
| 26 | value="${repository.name}"/> |
|---|
| 27 | ${repository.description}<py:if test="len(options)">: |
|---|
| 28 | <py:choose test="len(options)"> |
|---|
| 29 | <py:when test="1"> |
|---|
| 30 | <input type="text" |
|---|
| 31 | name="${repository.name}_${options[0].name}" |
|---|
| 32 | value="${options[0].default}"/> |
|---|
| 33 | </py:when> |
|---|
| 34 | <py:otherwise> |
|---|
| 35 | <ul> |
|---|
| 36 | <li py:for="option in options"> |
|---|
| 37 | <input type="text" |
|---|
| 38 | name="${repository.name}_${option.name}" |
|---|
| 39 | value="${option.default}"/> |
|---|
| 40 | <b><small>${option.description}</small></b> |
|---|
| 41 | </li> |
|---|
| 42 | </ul> |
|---|
| 43 | </py:otherwise> |
|---|
| 44 | </py:choose> |
|---|
| 45 | </py:if> |
|---|
| 46 | </p> |
|---|
| 47 | |
|---|
| 48 | </div> |
|---|
| 49 | |
|---|
| 50 | <!-- database choice --> |
|---|
| 51 | <div py:if="len(databases) > 1"> |
|---|
| 52 | <h2>Database</h2> |
|---|
| 53 | <p py:for="index, database in enumerate(databases)"> |
|---|
| 54 | <input type="radio" |
|---|
| 55 | name="database" |
|---|
| 56 | py:attrs="{'checked': not index and 'true' or None }" |
|---|
| 57 | value="${database.name}"/> |
|---|
| 58 | ${database.description}: <tt>${db_string[database.name]}</tt> |
|---|
| 59 | </p> |
|---|
| 60 | |
|---|
| 61 | </div> |
|---|
| 62 | |
|---|
| 63 | <!-- mailing lists setup [TODO] --> |
|---|
| 64 | |
|---|
| 65 | <input type="hidden" name="project" value="$project"/> |
|---|
| 66 | |
|---|
| 67 | <input type="submit" value="Next >>"/> |
|---|
| 68 | |
|---|
| 69 | </form> |
|---|
| 70 | </body> |
|---|
| 71 | </html> |
|---|