Parent: [d187c1] (diff)

Child: [84c18d] (diff)

Download this file

project_overview.html    133 lines (126 with data), 5.7 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{% extends g.theme.master %}
{% block title %}{{c.project.name}} / Overview{% endblock %}
{% block header %}Project Admin{% endblock %}
{% block content %}
{% if c.project.deleted %}
<div class="notice">This project has been deleted and is not visible to non-admin users</div>
{% endif %}
{% if not h.has_project_access('update')() %}
<div class="grid-9">
<label>Name:</label>
{{c.project.name}}
</div>
<div class="grid-9">
<label>Category:</label>
{{c.project.category and c.project.category.label or 'Uncategorized'}}
</div>
<div class="grid-9">
<label>Unixname:</label>
{{c.project.shortname}}
</div>
<div class="grid-9">
<label>Labels:</label>
{{c.project.labels and ', '.join(c.project.labels) or "No Labels"}}
</div>
<div class="grid-9">
<label>Summary:</label>
<br>
<pre>{{c.project.short_description}}</pre>
</div>
<div class="grid-9">
<label>Icon:</label>
<br>
{% if c.project.icon %}
<img src="{{c.project.url()}}icon"/>
{% else %}
<span>No icon has been created.</span>
{% endif %}
</div>
{% else %} {# has_project_access('update') #}
<form method="POST" action="update" enctype="multipart/form-data">
<div class="grid-9">
<label for="name">Name:</label>
<br>
<input type="text" name="name" id="name" value="{{c.project.name}}"
title="This is the publicly viewable name of the project, and will appear on project listings.
It should be what you want to see as the project title in search listing.">
</div>
<div class="grid-9">
<label for="category">Category:</label>
<br>
<select name="category" id="category" title="This will determine which pages the project will appear under in the SourceForge Directory.">
<option value="">Uncategorized</option>
{% for cat in categories %}
<option value="{{cat._id}}" {% if c.project.category and c.project.category._id == cat._id %}selected="selected"{% endif%}>{{cat.label}}</option>
{% for subcat in cat.subcategories %}
<option value="{{subcat._id}}" {% if c.project.category and c.project.category._id == subcat._id %}selected="selected"{% endif %}>-- {{subcat.label}}</option>
{% endfor %}
{% endfor %}
</select>
</div>
<div style="clear: both"></div>
<div class="grid-9">
<label>Unixname:</label>
<br>
<input type="text" disabled="disabled" value="{{c.project.shortname}}">
</div>
<div class="grid-9">
<label for="labels">Labels:</label>
<br>
{{c.label_edit.display(name='labels', value=c.project.labels, id='labels',
title="Free-form labels to describe your project.
These can be used to search for similar projects.")}}
</div>
<div class="grid-9">
<label for="short_description_textarea">Summary:</label>
<br>
<textarea name="short_description" id="short_description_textarea" style="height: 100px;"
title="Add a short one or two sentence summary for your project.">{{c.project.short_description}}</textarea>
</div>
<div class="grid-9">
<label for="icon">Icon:</label>
<br>
<div class="editable viewing">
{% if c.project.icon %}
<div class="viewer"><img src="{{c.project.url()}}/icon"/></div>
{% else %}
<div class="viewer">
No icon has been created.{% if c.project.private_project_of() %} A gravatar image associated with your primary email
address will be used instead if you have created one at <a href="http://gravatar.com/">gravatar.com</a>.{% endif %}
</div>
{% endif %}
<div class="editor">{{lib.file_field('icon', '')}}</div>
</div>
{% if c.project.icon %}
<div>
<input type="submit" name="delete_icon" value="Delete Icon">
</div>
{% endif %}
</div>
<hr class="grid-19" style="margin-top: 1em; margin-bottom: 1em;">
<div class="grid-15">
<input type="submit" value="Save">
</div>
{% if not c.project.deleted %}
<input type="submit" value="Delete Project" name="delete" class="fright">
{% elif config.get('auth.method', 'local') != 'sfx' %}
<input type="submit" value="Undelete Project" name="undelete" class="fright">
{% endif %}
</form>
{% endif %}
{% endblock %}
{% block extra_js %}
<script type="text/javascript" src="{{g.forge_static('js/jquery.maxlength-min.js')}}"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#short_description_textarea').maxlength({maxCharacters: 250});
});
</script>
{% endblock %}
{% block extra_css %}
<style type="text/css">
.grid-9 input[type="text"], .grid-9 select, .grid-9 textarea{
width: 95%
}
</style>
{% endblock %}