blob: 5a45019c17a72d7c5142719ccec0dfdf1b0f2ab8 [file] [log] [blame]
{#-
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-#}
<form action="{{action}}" method="POST">
<div class="welcome">
<div class="grid-4" style="text-align: right; padding-top: 7px;">
<label for="{{ widget.context_for(widget.fields.project_name)['id'] }}">
Project Name
</label>
</div>
<div class="grid-10">{{widget.display_field(widget.fields.project_name)}}</div>
<div class="grid-9" style="position:relative; overflow:visible">
<b data-icon="!" class="ico ico-caution error_icon" title="Caution"></b>
<b data-icon="2" class="ico ico-checkcircle success_icon" title="Check"></b>
</div>
<div style="clear:both">&nbsp;</div>
<div class="grid-4" style="text-align: right; padding-top: 7px;">
<label for="{{ widget.context_for(widget.fields.project_unixname)['id'] }}">
URL Name
</label>
</div>
<div class="grid-10">{{widget.display_field(widget.fields.project_unixname)}}
<br/><div id="project_url">http://{{request.environ['HTTP_HOST']}}{{neighborhood.url()}}<span id="url_fragment"></span></div>
</div>
<div class="grid-9" style="position:relative; overflow:visible">
<b data-icon="!" class="ico ico-caution error_icon" title="Caution"></b>
<b data-icon="2" class="ico ico-checkcircle success_icon" title="Check"></b>
</div>
{{widget.display_field(widget.fields.neighborhood)}}
<div style="clear:both">&nbsp;</div>
</div>
{% if not neighborhood.project_template %}
{% for opt in widget.fields.tools.options %}
{% set tool = g.entry_points["tool"][opt.html_value] %}
<div class="tool">
<img src="{{ g.theme.app_icon_url(tool, 48) }}" alt="{{ opt.label }} icon">
<input checked type="checkbox" value="{{ opt.html_value }}"
name="{{ widget.context_for(widget.fields.tools)['rendered_name'] }}"
id="{{ widget.context_for(widget.fields.tools)['rendered_name'] }}_{{ opt.html_value }}">
<h1><label for="{{ widget.context_for(widget.fields.tools)['rendered_name'] }}_{{ opt.html_value }}">{{ opt.label }}</label></h1>
<p>{{ tool.tool_description }}</p>
</div>
{% endfor %}
{% endif %}
{% if h.has_access(neighborhood, 'admin') and not neighborhood.project_template and neighborhood.features['private_projects'] %}
<div style="margin-top:20px">
<div class="grid-16" style="padding-top:4px; padding-left:4px">
{{widget.display_field(widget.fields.private_project)}}
<label for="{{ widget.context_for(widget.fields.private_project)['id'] }}">
Private? Private projects will be unreadable to non-project members and will
not show up in search results.
</label>
</div>
<div style="clear:both"></div>
</div>
{% endif %}
<div class="button-row">
<input type="submit" id="start" value="Create">
</div>
{% if widget.antispam %}{% for fld in g.antispam.extra_fields() %}
{{fld}}{% endfor %}{% endif %}
</form>