What are these changes for? Can't we get rid of them?
> </div>
> - {{ field.errors }}
> - </div>
> + {% endif %}
>
> {% endfor %}
> +
> + <br>
> + If the config URL above points to a Bazaar repository that is only
> + available to authenticated users, you should add a user and private SSH
> + key to give the builder access. The SSH key will never be revealed. It
> + can be changed or deleted later. It should not be passphrase protected.
> +
> + {% if form.lp_fields_set %}
> + To update or delete these details, use
> + {% else %}
> + If you would like to add these details,
> + {% endif %}
> + <a href="+editcredentials">use this form.</a>
> +
> <div class="submit-row" style="overflow: auto;">
> <input type="submit" value="Save" class="default" name="_save"/>
> <input type="button" value="Cancel" class="default" name="_cancel" OnClick="window.location.href = '{% url offspring.web.queuemanager.views.project_details project.name %}';"/>
>
On Thu, 2011-11-03 at 22:21 +0000, James Tunnicliffe wrote: web/templates/ queuemanager/ project_ create. html' web/templates/ queuemanager/ project_ create. html 2011-02-28 22:48:46 +0000 web/templates/ queuemanager/ project_ create. html 2011-11-03 22:20:29 +0000 javascript" src="/media/ js/admin/ RelatedObjectLo okups.js" ></script> javascript" src="/media/ js/admin/ RelatedObjectLo okups.js" ></script> javascript" src="/media/ js/jquery. min.js" ></script> javascript" src="/assets/ js/jquery. placeholder. js"></script> javascript" > opup(triggering Link) { ngs">{% csrf_token %} length_ is:"1" %} class="field-box"{% endif %}> length_ is:"1" %} class="field-box"{% endif %}> field.help_ text %} field.help_ text|safe }}</p> field.help_ text %} field.help_ text|safe }}</p>
> === modified file 'lib/offspring/
> --- lib/offspring/
> +++ lib/offspring/
> @@ -5,7 +5,9 @@
> {% endblock %}
>
> {% block header_js %}
> -<script type="text/
> +<script type="text/
> +<script type="text/
> +<script type="text/
> <script type="text/
> /* Override showAddAnotherPopup to use custom height and width. */
> function showAddAnotherP
> @@ -29,29 +31,68 @@
> {% endblock %}
>
> {% block content %}
> - <form method="POST" action="">{% csrf_token %}
> + <form method="POST" action="" name="projsetti
> <div class="module aligned ">
> {% for field in form %}
> - <div class="form-row {% if line.errors %} errors{% endif %} {{ field.name }}">
> - <div{% if not line.fields|
> - {% if field.is_checkbox %}
> - {{ field }}{{ field.label_tag }}
> - {% else %}
> - {{ field.label_tag }}
> - {% if field.is_readonly %}
> - <p>{{ field.contents }}</p>
> + {% if field.html_name == "lp_user" or field.html_name == "lp_ssh_key_input" %}
> + <!-- This catches lp_user and lp_ssh_key_input so they aren't shown in the top of
> + the page. They are displayed below in their own section after some help text -->
> + {% else %}
> + <div class="form-row {% if line.errors %} errors{% endif %} {{ field.name }}">
> + <div{% if not line.fields|
> + {% if field.is_checkbox %}
> + {{ field }}{{ field.label_tag }}
> {% else %}
> - {{ field }}
> - {% endif %}
> - {% endif %}
> - {% if field.field.
> - <p class="help">{{ field.field.
> - {% endif %}
> + {{ field.label_tag }}
> + {% if field.is_readonly %}
> + <p>{{ field.contents }}</p>
> + {% else %}
> + {{ field }}
> + {% endif %}
> + {% endif %}
> + {% if field.field.
> + <p class="help">{{ field.field.
> + {% endif %}
> + </div>
> + {{ field.errors }}
> </div>
> - {{ field.errors }}
> - </div>
> + {% endif %}
>
> {% endfor %}
> +
> + <br>
> + If the config URL above points to a Bazaar repository that is only
> + available to authenticated users, you should add a user and private SSH
> + key to give the builder access. The SSH key will never be revealed. It
> + can be changed or deleted later. It should not be passphrase protected.
> + If you would like to add these details, tick here:
Hmm. There's nothing to tick here anymore, right?
> + user.label_ tag }} ssh_key_ input.name }}"> ssh_key_ input.label_ tag }} lp_ssh_ key_input" rows="4" cols="70" name="lp_ ssh_key_ input" ssh_set_ message }}{% else %}{{ form.lp_ ssh_clear_ meessage }}{% endif %}"></textarea> ssh_key_ input.help_ text %} ssh_key_ input.help_ text|safe }}</p> ssh_key_ input.errors| linebreaksbr }} "window. location. href = '/';"/> web/templates/ queuemanager/ project_ edit.html' web/templates/ queuemanager/ project_ edit.html 2011-03-03 01:50:40 +0000 web/templates/ queuemanager/ project_ edit.html 2011-11-03 22:20:29 +0000 javascript" src="/media/ js/admin/ RelatedObjectLo okups.js" ></script> javascript" src="/media/ js/admin/ RelatedObjectLo okups.js" ></script> javascript" > opup(triggering Link) { ngs">{% csrf_token %} length_ is:"1" %} class="field-box"{% endif %}> key_input" %}
> + <br>
> +
> + <div class="form-row {{ form.lp_user.name }}">
> + <div class="field-box">
> + {{ form.lp_
> + <br>
> + {{ form.lp_user }}
> + </div>
> + {{ form.lp_user.errors }}
> + </div>
> +
> + <div class="form-row {{ form.lp_
> + <div class="field-box">
> + {{ form.lp_
> + <br>
> + <textarea id="id_
> + placeholder="{% if form.lp_ssh_set %}{{ form.lp_
> + {% if form.lp_
> + <p class="help">{{ form.lp_
> + {% endif %}
> + </div>
> + {{ form.lp_
> + </div>
> +
> + <br>
> +
> <div class="submit-row" style="overflow: auto;">
> <input type="submit" value="Save" class="default" name="_save"/>
> <input type="button" value="Cancel" class="default" name="_cancel" OnClick=
>
> === modified file 'lib/offspring/
> --- lib/offspring/
> +++ lib/offspring/
> @@ -5,7 +5,7 @@
> {% endblock %}
>
> {% block header_js %}
> -<script type="text/
> +<script type="text/
> <script type="text/
> /* Override showAddAnotherPopup to use custom height and width. */
> function showAddAnotherP
> @@ -29,29 +29,46 @@
> {% endblock %}
>
> {% block content %}
> - <form method="POST" action="">{% csrf_token %}
> + <form method="POST" action="" name="projsetti
> <div class="module aligned ">
> {% for field in form %}
> - <div class="form-row {% if line.errors %} errors{% endif %} {{ field.name }}">
> - <div{% if not line.fields|
> - {% if field.is_checkbox %}
> - {{ field }}{{ field.label_tag }}
> - {% else %}
> - {{ field.label_tag }}
> - {% if field.is_readonly %}
> - <p>{{ field.contents }}</p>
> + {% if field.html_name == "lp_user" or field.html_name == "lp_ssh_
This is no longer needed, right? We've agreed on that in the previous
review already, IIRC.
> + {% else %} length_ is:"1" %} class="field-box"{% endif %}> field.help_ text %} field.help_ text|safe }}</p> text|safe }}</p>
> + <div class="form-row {% if line.errors %} errors{% endif %} {{ field.name }}">
> + <div{% if not line.fields|
> + {% if field.is_checkbox %}
> + {{ field }}{{ field.label_tag }}
> {% else %}
> - {{ field }}
> - {% endif %}
> - {% endif %}
> - {% if field.field.
> - <p class="help">{{ field.field.
> - {% endif %}
> + {{ field.label_tag }}
> + {% if field.is_readonly %}
> + <p>{{ field.contents }}</p>
> + {% else %}
> + {{ field }}
> + {% endif %}
> + {% endif %}
> + {% if field.help_text %}
> + <p class="help">{{ field.help_
> + {% endif %}
> + </div>
> + {{ field.errors }}
What are these changes for? Can't we get rid of them?
> </div> editcredentials ">use this form.</a> "window. location. href = '{% url offspring. web.queuemanage r.views. project_ details project.name %}';"/>
> - {{ field.errors }}
> - </div>
> + {% endif %}
>
> {% endfor %}
> +
> + <br>
> + If the config URL above points to a Bazaar repository that is only
> + available to authenticated users, you should add a user and private SSH
> + key to give the builder access. The SSH key will never be revealed. It
> + can be changed or deleted later. It should not be passphrase protected.
> +
> + {% if form.lp_fields_set %}
> + To update or delete these details, use
> + {% else %}
> + If you would like to add these details,
> + {% endif %}
> + <a href="+
> +
> <div class="submit-row" style="overflow: auto;">
> <input type="submit" value="Save" class="default" name="_save"/>
> <input type="button" value="Cancel" class="default" name="_cancel" OnClick=
>